public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Sync devel from F-11
Date: Fri, 28 Aug 2026 13:29:41 GMT [thread overview]
Message-ID: <178792378140.1.9788505976659545871.rpms-opencv-e7dd52dc7418@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : e7dd52dc74184729c0778a62ae5184e3c5e9fa60
Author : Nicolas Chauvet <kwizart@fedoraproject.org>
Date : 2009-04-23T15:03:05+00:00
Stats : +32/-13 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/e7dd52dc74184729c0778a62ae5184e3c5e9fa60?branch=opencv5
Log:
Sync devel from F-11
---
diff --git a/opencv-1.0.0-gcc44.patch b/opencv-1.0.0-gcc44.patch
new file mode 100644
index 0000000..971411b
--- /dev/null
+++ b/opencv-1.0.0-gcc44.patch
@@ -0,0 +1,12 @@
+diff -up opencv-1.0.0/cxcore/include/cxmisc.h.gcc44 opencv-1.0.0/cxcore/include/cxmisc.h
+--- opencv-1.0.0/cxcore/include/cxmisc.h.gcc44 2006-05-04 17:55:17.000000000 +0200
++++ opencv-1.0.0/cxcore/include/cxmisc.h 2009-04-22 12:42:49.000000000 +0200
+@@ -130,7 +130,7 @@
+ #include <alloca.h>
+ #elif defined HAVE_ALLOCA
+ #include <stdlib.h>
+-#elif
++#else
+ #error
+ #endif
+
diff --git a/opencv.spec b/opencv.spec
index 95d4d7c..7f046cb 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -1,11 +1,9 @@
-%define with_ffmpeg 0
-
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: opencv
Version: 1.0.0
-Release: 13%{?dist}
+Release: 14%{?dist}
Summary: Collection of algorithms for computer vision
Group: Development/Libraries
@@ -18,14 +16,19 @@ Patch0: opencv-1.0.0-pythondir.diff
Patch1: opencv-1.0.0-configure.in.diff
Patch2: opencv-1.0.0-autotools.diff
Patch3: opencv-1.0.0-pkgconfig.diff
+Patch4: opencv-1.0.0-gcc44.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: gtk2-devel, libpng-devel, libjpeg-devel, libtiff-devel
+BuildRequires: gtk2-devel
+BuildRequires: jasper-devel
+BuildRequires: libpng-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libtiff-devel
+BuildRequires: libtool
BuildRequires: swig >= 1.3.24, zlib-devel, pkgconfig
-BuildRequires: python python-devel
-%if %{with_ffmpeg}
-BuildRequires: ffmpeg-devel >= 0.4.9
-%endif
+BuildRequires: python-devel
+%{?_with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9}
+
%description
OpenCV means Intel® Open Source Computer Vision Library. It is a collection of
@@ -60,6 +63,7 @@ This package contains Python bindings for the OpenCV library.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1 -b .gcc44
%{__sed} -i 's/\r//' interfaces/swig/python/*.py \
samples/python/*.py
%{__sed} -i 's/^#!.*//' interfaces/swig/python/adaptors.py \
@@ -74,7 +78,7 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" CPPROG="cp -p"
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \
$RPM_BUILD_ROOT%{python_sitearch}/opencv/*.la \
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/build_all.sh \
@@ -83,7 +87,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/facedetect.cmd \
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/makefile.gcc \
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/makefile.gen
-install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/GNUmakefile
+install -pm644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/GNUmakefile
%check
@@ -98,9 +102,6 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
-%post python -p /sbin/ldconfig
-%postun python -p /sbin/ldconfig
-
%files
%defattr(-,root,root,-)
@@ -130,6 +131,12 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed Apr 22 2009 kwizart < kwizart at gmail.com > - 1.0.0-14
+- Fix for gcc44
+- Enable BR jasper-devel
+- Disable ldconfig run on python modules (uneeded)
+- Prevent timestamp change on install
+
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
reply other threads:[~2026-08-28 13:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178792378140.1.9788505976659545871.rpms-opencv-e7dd52dc7418@fedoraproject.org \
--to=kwizart@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox