rpms/opencv/devel opencv.spec,1.23,1.24

Ralf Corsépius corsepiu at fedoraproject.org
Fri Dec 19 14:25:07 UTC 2008


Author: corsepiu

Update of /cvs/pkgs/rpms/opencv/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21288

Modified Files:
	opencv.spec 
Log Message:
* Fri Dec 19 2008 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.0.0-11
- Adopt latest python spec rules.
- Rebuild for Python 2.6 once again.



Index: opencv.spec
===================================================================
RCS file: /cvs/pkgs/rpms/opencv/devel/opencv.spec,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- opencv.spec	29 Nov 2008 16:55:48 -0000	1.23
+++ opencv.spec	19 Dec 2008 14:24:37 -0000	1.24
@@ -1,11 +1,11 @@
 %define with_ffmpeg 0
 
-%define pythondir %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
-%define pyexecdir %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
+%{!?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:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Collection of algorithms for computer vision
 
 Group:          Development/Libraries
@@ -22,7 +22,7 @@
 
 BuildRequires:  gtk2-devel, libpng-devel, libjpeg-devel, libtiff-devel
 BuildRequires:  swig >= 1.3.24, zlib-devel, pkgconfig
-BuildRequires:  python-devel
+BuildRequires:  python python-devel
 %if %{with_ffmpeg}
 BuildRequires:  ffmpeg-devel >= 0.4.9
 %endif
@@ -76,7 +76,7 @@
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \
-      $RPM_BUILD_ROOT%{pyexecdir}/opencv/*.la \
+      $RPM_BUILD_ROOT%{python_sitearch}/opencv/*.la \
       $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/build_all.sh \
       $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/cvsample.dsp \
       $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/cvsample.vcproj \
@@ -124,12 +124,16 @@
 
 
 %files python
-%{pyexecdir}/opencv
+%{python_sitearch}/opencv
 %doc %dir %{_datadir}/opencv/samples
 %doc %{_datadir}/opencv/samples/python
 
 
 %changelog
+* Fri Dec 19 2008 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.0.0-11
+- Adopt latest python spec rules.
+- Rebuild for Python 2.6 once again.
+
 * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 1.0.0-10
 - Rebuild for Python 2.6
 




More information about the fedora-extras-commits mailing list