%define lib_major 2 %define lib_name %mklibname unicap %{lib_major} %define develname %mklibname -d unicap Summary: Library to access different kinds of ( video ) capture devices Name: unicap Version: 0.9.5 Release: %mkrel 2 Source0: http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz # (fc) 0.9.1-1mdv fix undefined linking error Patch0: unicap-0.9.1-fixbuild.patch # (fc) 0.9.1-1mdv build plugin as unversioned module Patch1: unicap-0.9.3-module.patch License: GPLv2+ Group: System/Libraries Url: http://www.unicap-imaging.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: gtk+2-devel libraw1394-devel libxv-devel BuildRequires: automake gtk-doc BuildRequires: libalsa-devel BuildRequires: libtheora-devel >= 1.0 BuildRequires: libvorbis-devel >= 1.2.0 %description unicap is a library to access different kinds of ( video ) capture devices. %package -n %{lib_name} Summary: Dynamic libraries for Unicap Group: %{group} %description -n %{lib_name} unicap is a library to access different kinds of ( video ) capture devices. %package -n %{develname} Summary: Static libraries, include files for Unicap Group: Development/C Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Requires: %{lib_name} = %{version} Obsoletes: %{lib_name}-devel < %{version} Obsoletes: %{name}-devel < %{version} %description -n %{develname} Static library and headers file needed in order to develop applications using unicap. %prep %setup -q %patch0 -p1 -b .undefined %patch1 -p1 -b .module #needed by patch0 autoreconf -fi %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std #remove unpackaged files rm -f $RPM_BUILD_ROOT%{_libdir}/unicap%{lib_major}/{backends,cpi}/*.{la,a} %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post -n %{lib_name} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{lib_name} -p /sbin/ldconfig %endif %files -n %{lib_name} -f %{name}.lang %defattr(-,root,root) %{_libdir}/*.so.%{lib_major}* %dir %{_libdir}/unicap%{lib_major} %dir %{_libdir}/unicap%{lib_major}/cpi %{_libdir}/unicap%{lib_major}/cpi/*.so %files -n %{develname} %defattr(-,root,root) %doc %{_datadir}/gtk-doc/html/libucil %doc %{_datadir}/gtk-doc/html/libunicap %doc %{_datadir}/gtk-doc/html/libunicapgtk %{_includedir}/* %{_libdir}/pkgconfig/* %{_libdir}/*.so %attr(644,root,root) %{_libdir}/*.la %{_libdir}/*.a %changelog * Wed Mar 17 2010 Oden Eriksson <oeriksson@mandriva.com> 0.9.5-2mdv2010.1 + Revision: 524303 - rebuilt for 2010.1 * Wed Jun 17 2009 Frederik Himpe <fhimpe@mandriva.org> 0.9.5-1mdv2010.0 + Revision: 386803 - Update to new version 0.9.5 - Remove string format patch: not needed anymore * Sun Mar 15 2009 Funda Wang <fwang@mandriva.org> 0.9.3-1mdv2009.1 + Revision: 355209 - New version 0.9.3 * Mon Dec 29 2008 Funda Wang <fwang@mandriva.org> 0.9.1-2mdv2009.1 + Revision: 320826 - fix str fmt * Tue Sep 02 2008 Frederic Crozat <fcrozat@mandriva.com> 0.9.1-1mdv2009.0 + Revision: 278869 - Release 0.9.1 - Patch0: fix build with undefined ldflags - Patch1: ensure plugins are build as unversioned modules (fix provides conflicting with libv4l) * Thu Jul 03 2008 Rodrigo Gonçalves de Oliveira <rodrigo@mandriva.com> 0.2.23-6mdv2009.0 + Revision: 231056 - Added 2 BuildRequires: libtheora-devel and libvorbis-devel * Tue Jul 01 2008 Rodrigo Gonçalves de Oliveira <rodrigo@mandriva.com> 0.2.23-5mdv2009.0 + Revision: 230503 - Added libalsa-devel as BuildRequires for ucil_alsa.h * Fri Jun 27 2008 Rodrigo Gonçalves de Oliveira <rodrigo@mandriva.com> 0.2.23-4mdv2009.0 + Revision: 229555 - Fixing some package errors * Thu Jun 26 2008 Rodrigo Gonçalves de Oliveira <rodrigo@mandriva.com> 0.2.23-3mdv2009.0 + Revision: 229284 - Updating the unicap lib to 2.23 version + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 0.2.13-2mdv2008.1 + Revision: 171153 - rebuild - fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Sat Aug 04 2007 Funda Wang <fwang@mandriva.org> 0.2.13-1mdv2008.0 + Revision: 58893 - BR gtk-doc - Remove unused devel files - New major - Patch against Makefile.in rather than Makefile.am - New verison 0.2.13 - Rediff patch0 * Tue Jan 23 2007 Frederic Crozat <fcrozat@mandriva.com> 0.2.1-1mdv2007.0 + Revision: 112500 -Patch0: fix libdir for biarch - Import unicap