]> git.pld-linux.org Git - packages/opencv.git/commitdiff
- use more recent cmake macro features (macros >= 1.606)
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 22 Sep 2011 16:05:01 +0000 (16:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixed python module packaging
- updated TODO; I'd suggest not to rename package each time upstream decides to change case of letters and back, it's too messy

Changed files:
    opencv.spec -> 1.34

opencv.spec

index 4dde93207694c5cebacf45c0cedccd642d9bbef1..78a5640ab7a5ab6686b6f60d077ba79c7a60e556 100644 (file)
@@ -1,6 +1,8 @@
 #
-# TODO: - CUDA support (on bcond)
-#      - consider name change to OpenCV
+# TODO:
+# - CUDA support (on bcond)
+# - OpenNI (http://openni.org/) + PrimeSensor module
+# - XIMEA? cmake file seems to be Win32-specific, but ximea.com has some Linux package
 #
 # Conditional build:
 %bcond_without gstreamer       # GStreamer support
@@ -59,7 +61,7 @@ BuildRequires:        pkgconfig
 BuildRequires: python-devel
 BuildRequires: python-numpy-devel
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.600
+BuildRequires: rpmbuild(macros) >= 1.606
 BuildRequires: sed >= 4.0
 BuildRequires: swig-python
 %{?with_tbb:BuildRequires:     tbb-devel}
@@ -150,8 +152,6 @@ Wiązania Pythona do OpenCV.
 install -d build
 cd build
 %cmake .. \
-       -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-       -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
 %ifarch pentium4 %{x8664}
        -DENABLE_SSE=ON \
        -DENABLE_SSE2=ON \
@@ -180,6 +180,10 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
 install build/unix-install/opencv.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
 
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -207,4 +211,4 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python-opencv
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/cv2.so
-%{py_sitedir}/cv.py
+%{py_sitedir}/cv.py[co]
This page took 0.109168 seconds and 4 git commands to generate.