public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Simon Perreault <nomis80@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: auto-import opencv-0.9.7-3 on branch devel from opencv-0.9.7-3.src.rpm
Date: Fri, 28 Aug 2026 13:29:25 GMT	[thread overview]
Message-ID: <178792376509.1.7580503815042086938.rpms-opencv-643b4d6dd92a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/opencv
Branch : opencv5
Commit : 643b4d6dd92accaae10abbdd0c1c065fdb0aafd4
Author : Simon Perreault <nomis80@fedoraproject.org>
Date   : 2006-03-05T19:45:57+00:00
Stats  : +129/-0 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/opencv/c/643b4d6dd92accaae10abbdd0c1c065fdb0aafd4?branch=opencv5

Log:
auto-import opencv-0.9.7-3 on branch devel from opencv-0.9.7-3.src.rpm

---
diff --git a/.cvsignore b/.cvsignore
index e69de29..5fcd78e 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+opencv-0.9.7.tar.gz

diff --git a/opencv-samples-Makefile b/opencv-samples-Makefile
new file mode 100644
index 0000000..6c69149
--- /dev/null
+++ b/opencv-samples-Makefile
@@ -0,0 +1,4 @@
+CFLAGS := `pkg-config --cflags opencv` $(CFLAGS)
+LDFLAGS := `pkg-config --libs opencv` $(LDFLAGS)
+
+all: $(patsubst %.c,%,$(wildcard *.c))

diff --git a/opencv.spec b/opencv.spec
new file mode 100644
index 0000000..deae3a6
--- /dev/null
+++ b/opencv.spec
@@ -0,0 +1,123 @@
+%define with_ffmpeg 0
+
+Name:           opencv
+Version:        0.9.7
+Release:        3
+Summary:        Collection of algorithms for computer vision
+
+Group:          Development/Libraries
+License:        Intel Open Source License
+URL:            http://www.intel.com/technology/computing/opencv/index.htm
+Source0:        http://prdownloads.sourceforge.net/opencvlibrary/opencv-%{version}.tar.gz
+Source1:        opencv-samples-Makefile
+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
+%if %{with_ffmpeg}
+BuildRequires:  ffmpeg-devel >= 0.4.9
+%endif
+
+%description
+OpenCV means Intel® Open Source Computer Vision Library. It is a collection of
+C functions and a few C++ classes that implement some popular Image Processing
+and Computer Vision algorithms.
+
+
+%package devel
+Summary:        Development files for using the OpenCV library
+Group:          Development/Libraries
+Requires:       opencv = %{version}-%{release}
+
+%description devel
+This package contains the OpenCV C/C++ library and header files, as well as
+documentation. It should be installed if you want to develop programs that
+will use the OpenCV library.
+
+
+%package python
+Summary:        Python bindings for apps which use OpenCV
+Group:          Development/Libraries
+Requires:       opencv = %{version}-%{release}
+Requires:       %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
+
+%description python
+This package contains Python bindings for the OpenCV library.
+
+
+%prep
+%setup -q
+%{__sed} -i 's/\r//' interfaces/swig/python/*.py \
+                     samples/python/*.py
+%{__sed} -i 's/^#!.*//' interfaces/swig/python/adaptors.py \
+                        interfaces/swig/python/__init__.py
+
+
+%build
+%configure --disable-static --enable-python --with-apps
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \
+      $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/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 \
+      $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/Makefile
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%post python -p /sbin/ldconfig
+%postun python -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING THANKS TODO
+%{_bindir}/opencv-*
+%{_libdir}/lib*.so.*
+%dir %{_datadir}/opencv
+%{_datadir}/opencv/haarcascades
+%{_datadir}/opencv/readme.txt
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/opencv
+%{_libdir}/lib*.so
+%{_libdir}/lib*.a
+%{_libdir}/pkgconfig/opencv.pc
+%doc %{_datadir}/opencv/doc
+%doc %{_datadir}/opencv/samples/c
+
+
+%files python
+%{_libdir}/python*/site-packages/opencv
+%doc %{_datadir}/opencv/samples/python
+
+
+%changelog
+* Sun Oct 16 2005 Simon Perreault <nomis80@nomis80.org> - 0.9.7-3
+- Removed useless sample compilation makefiles/project files and replaced them
+  with one that works on Fedora Core.
+- Removed shellbang from Python modules.
+
+* Mon Oct 10 2005 Simon Perreault <nomis80@nomis80.org> - 0.9.7-2
+- Made FFMPEG dependency optional (needs to be disabled for inclusion in FE).
+
+* Mon Oct 10 2005 Simon Perreault <nomis80@nomis80.org> - 0.9.7-1
+- Initial package.

diff --git a/sources b/sources
index e69de29..5848303 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+39cdccd05edd12294db2c238f48ff2ab  opencv-0.9.7.tar.gz

                 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=178792376509.1.7580503815042086938.rpms-opencv-643b4d6dd92a@fedoraproject.org \
    --to=nomis80@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