packages: libv4l/libv4l.spec - up to 0.6.1 - use __cc and rpm*flags - expli...

sparky sparky at pld-linux.org
Wed Jan 20 01:37:07 CET 2010


Author: sparky                       Date: Wed Jan 20 00:37:07 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.6.1
- use __cc and rpm*flags
- explicit %files
- kill -fvisibility=hidden if building on Ac

---- Files affected:
packages/libv4l:
   libv4l.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/libv4l/libv4l.spec
diff -u packages/libv4l/libv4l.spec:1.5 packages/libv4l/libv4l.spec:1.6
--- packages/libv4l/libv4l.spec:1.5	Thu Jul  9 19:26:10 2009
+++ packages/libv4l/libv4l.spec	Wed Jan 20 01:37:02 2010
@@ -1,12 +1,12 @@
 # $Revision$, $Date$
 Summary:	libv4l
 Name:		libv4l
-Version:	0.6.0
+Version:	0.6.1
 Release:	1
 License:	GPL v2
 Group:		Applications
 Source0:	http://people.atrpms.net/~hdegoede/%{name}-%{version}.tar.gz
-# Source0-md5:	db389fdf02cabd57f289f0faa37f4060
+# Source0-md5:	0d0d96d77c98871d2e5466c10cb30a0a
 URL:		http://hansdegoede.livejournal.com/3636.html
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -27,9 +27,15 @@
 
 %prep
 %setup -q
+%if "%{pld_release}" == "ac"
+%{__sed} -i 's/-fvisibility=hidden//' */Makefile
+%endif
 
 %build
-%{__make}
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall" \
+	LDFLAGS="%{rpmcflags} %{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -48,15 +54,25 @@
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog README TODO
-%attr(755,root,root) %{_libdir}/lib*.so.*
+%attr(755,root,root) %{_libdir}/libv4l1.so.?
+%attr(755,root,root) %{_libdir}/libv4l2.so.?
+%attr(755,root,root) %{_libdir}/libv4lconvert.so.?
 %dir %{_libdir}/libv4l
 %attr(755,root,root) %{_libdir}/libv4l/v4l*.so
+%attr(755,root,root) %{_libdir}/libv4l/ov511-decomp
+%attr(755,root,root) %{_libdir}/libv4l/ov518-decomp
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/%{name}*
-%{_libdir}/lib*.so
-%{_pkgconfigdir}/*.pc
+%attr(755,root,root) %{_libdir}/libv4l1.so
+%attr(755,root,root) %{_libdir}/libv4l2.so
+%attr(755,root,root) %{_libdir}/libv4lconvert.so
+%{_includedir}/libv4l1.h
+%{_includedir}/libv4l2.h
+%{_includedir}/libv4lconvert.h
+%{_pkgconfigdir}/libv4l1.pc
+%{_pkgconfigdir}/libv4l2.pc
+%{_pkgconfigdir}/libv4lconvert.pc
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -64,6 +80,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2010/01/20 00:37:02  sparky
+- up to 0.6.1
+- use __cc and rpm*flags
+- explicit %files
+- kill -fvisibility=hidden if building on Ac
+
 Revision 1.5  2009/07/09 17:26:10  paszczus
 - updated to 0.6.0
 
@@ -79,4 +101,3 @@
 
 Revision 1.1  2009/05/28 07:13:35  paszczus
 - initial
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libv4l/libv4l.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list