public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: - Adopt latest python spec rules.
@ 2026-08-28 13:29 corsepiu
  0 siblings, 0 replies; only message in thread
From: corsepiu @ 2026-08-28 13:29 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/opencv
            Branch : opencv5
            Commit : e5270d2f2124299bd575de9989098c484d462ea8
            Author : corsepiu <corsepiu@fedoraproject.org>
            Date   : 2008-12-19T14:24:37+00:00
            Stats  : +10/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/opencv/c/e5270d2f2124299bd575de9989098c484d462ea8?branch=opencv5

            Log:
            - Adopt latest python spec rules.
- Rebuild for Python 2.6 once again.

---
diff --git a/opencv.spec b/opencv.spec
index 56cb2ca..58a7847 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -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 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 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 @@ make %{?_smp_mflags}
 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 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %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@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@gmail.com> - 1.0.0-10
 - Rebuild for Python 2.6
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-28 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:29 [rpms/opencv] opencv5: - Adopt latest python spec rules corsepiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox