public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: corsepiu <corsepiu@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: - Adopt latest python spec rules.
Date: Fri, 28 Aug 2026 13:29:40 GMT [thread overview]
Message-ID: <178792378000.1.7506619722873072221.rpms-opencv-e5270d2f2124@fedoraproject.org> (raw)
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
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=178792378000.1.7506619722873072221.rpms-opencv-e5270d2f2124@fedoraproject.org \
--to=corsepiu@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