diff --git a/.cvsignore b/.cvsignore index e69de29..cd56e49 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libunicap-0.9.8.tar.gz diff --git a/libunicap-filter.sh b/libunicap-filter.sh new file mode 100644 index 0000000..4575c2e --- /dev/null +++ b/libunicap-filter.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# The original script name has been passed as the first argument: +"$@" | sed -e '/^libdcam.so/d' -e '/^libv4l.so/d' -e '/^libv4l2cpi.so/d' -e '/^libvid21394.so/d' diff --git a/libunicap.spec b/libunicap.spec new file mode 100644 index 0000000..33b43fc --- /dev/null +++ b/libunicap.spec @@ -0,0 +1,132 @@ +%define _use_internal_dependency_generator 0 +%{expand:%%define prev__find_provides %{__find_provides}} +%define __find_provides sh %{SOURCE1} %{prev__find_provides} +%{expand:%%define prev__find_requires %{__find_requires}} +%define __find_requires sh %{SOURCE1} %{prev__find_requires} + +Summary: Library to access different kinds of (video) capture devices +Name: libunicap +Version: 0.9.8 +Release: 1%{?dist} +License: GPLv2+ +Group: System Environment/Libraries +URL: http://www.unicap-imaging.org/ +Source0: http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz +Source1: %{name}-filter.sh +BuildRequires: intltool, /usr/bin/perl, perl(XML::Parser), gettext, gtk-doc >= 1.4 +%ifnarch s390 s390x +BuildRequires: libraw1394-devel >= 1.1.0 +%endif +%if 0%{?rhel}%{?fedora} >= 6 +BuildRequires: libv4l-devel +%endif +Obsoletes: unicap <= 0.9.7-1 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Unicap provides a uniform interface to video capture devices. It allows +applications to use any supported video capture device via a single API. +The unicap library offers a high level of hardware abstraction while +maintaining maximum performance. Zero copy capture of video buffers is +possible for devices supporting it allowing fast video capture with low +CPU usage even on low-speed architectures. + +%package devel +Summary: Development files for the unicap library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release}, pkgconfig +Obsoletes: unicap-devel <= 0.9.7-1 + +%description devel +The libunicap-devel package includes header files and libraries necessary +for for developing programs which use the unicap library. It contains the +API documentation of the library, too. + +%prep +%setup -q + +%build +%if 0%{?rhel}%{?fedora} >= 6 +%configure --disable-rpath --enable-gtk-doc --enable-libv4l +%else +%configure --disable-rpath --enable-gtk-doc +%endif + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +# Don't install any static .a and libtool .la files +rm -f $RPM_BUILD_ROOT%{_libdir}/{,unicap2/cpi/}*.{a,la} + +%find_lang unicap + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files -f unicap.lang +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README +%{_libdir}/%{name}.so.* +%{_libdir}/unicap2 + +%files devel +%defattr(-,root,root,-) +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc +%{_includedir}/unicap +%{_datadir}/gtk-doc/html/%{name} + +%changelog +* Sun Feb 21 2010 Robert Scheck 0.9.8-1 +- Upgrade to 0.9.8 (#530702, #567109, #567110, #567111) +- Splitting of unicap into libunicap, libucil and libunicapgtk + +* Sat Oct 24 2009 Robert Scheck 0.9.7-1 +- Upgrade to 0.9.7 (#530702) + +* Sun Jul 26 2009 Fedora Release Engineering - 0.9.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Jun 18 2009 Dan Horak 0.9.5-2 +- don't require libraw1394 on s390/s390x + +* Sun May 03 2009 Robert Scheck 0.9.5-1 +- Upgrade to 0.9.5 + +* Mon Feb 23 2009 Robert Scheck 0.9.3-2 +- Rebuild against gcc 4.4 and rpm 4.6 + +* Mon Oct 13 2008 Robert Scheck 0.9.3-1 +- Upgrade to 0.9.3 (#466825, thanks to Hans de Goede) +- Enabled libv4l support for the new gspca kernel driver + +* Sat Aug 09 2008 Robert Scheck 0.2.23-4 +- Rebuild to get missing dependencies back (#443015, #458527) + +* Tue Aug 05 2008 Robert Scheck 0.2.23-3 +- Filter the unicap plugins which overlap with libv4l libraries + +* Wed Jul 22 2008 Robert Scheck 0.2.23-2 +- Rebuild for libraw1394 2.0.0 + +* Mon May 19 2008 Robert Scheck 0.2.23-1 +- Upgrade to 0.2.23 +- Corrected packaging of cpi/*.so files (thanks to Arne Caspari) + +* Sat May 17 2008 Robert Scheck 0.2.22-1 +- Upgrade to 0.2.22 (#446021) + +* Sat Feb 16 2008 Robert Scheck 0.2.19-3 +- Added patch to correct libdir paths (thanks to Ralf Corsepius) + +* Mon Feb 04 2008 Robert Scheck 0.2.19-2 +- Changes to match with Fedora Packaging Guidelines (#431381) + +* Mon Feb 04 2008 Robert Scheck 0.2.19-1 +- Upgrade to 0.2.19 +- Initial spec file for Fedora and Red Hat Enterprise Linux diff --git a/sources b/sources index e69de29..64cb656 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +48b97308fc8bb949f4ac34cbeaf1dbec libunicap-0.9.8.tar.gz