libunicap/libunicap.spec

114 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

Name: libunicap
Version: 0.9.12
Release: 4mamba
Summary: A library that provides a uniform interface to video capture devices
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.unicap-imaging.org
Source: http://www.unicap-imaging.org/downloads/libunicap-%{version}.tar.gz
Patch0: %{name}-0.9.12-videodev.patch
Patch1: %{name}-0.9.12-includes.patch
Patch2: %{name}-0.9.12-arraycmp.patch
Patch3: %{name}-0.9.12-memerrs.patch
Patch4: %{name}-bz641623.patch
Patch5: %{name}-bz642118.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libraw1394-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
unicap provides a uniform interface to video capture devices.
It allows applications to use any supported video capture device via a single API
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
unicap provides a uniform interface to video capture devices.
It allows applications to use any supported video capture device via a single API
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
%configure \
CFLAGS="%{optflags} -fcommon"
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
sed -i 's/SYSFS/ATTRS/g' %{buildroot}%{_sysconfdir}/udev/rules.d/50-euvccam.rules
%find_lang unicap
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f unicap.lang
%defattr(-,root,root)
%{_sysconfdir}/udev/rules.d/50-euvccam.rules
%{_libdir}/libunicap.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/unicap/*.h
%{_libdir}/libunicap.a
%{_libdir}/libunicap.la
%{_libdir}/libunicap.so
%{_libdir}/unicap2/cpi/*.so
%{_libdir}/unicap2/cpi/*.la
%{_libdir}/unicap2/cpi/*.a
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/libunicap/*
%doc ChangeLog README
%changelog
* Wed Dec 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.12-4mamba
- rebuilt with debug package and aarch64 build fix
* Fri Dec 09 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.12-3mamba
- added build and stability patches from fedora
* Sat Dec 18 2010 Davide Madrisan <davide.madrisan@gmail.com> 0.9.12-2mamba
- fix udev warning about deprecated SYSFS tag
- run ldconfig
* Wed Dec 15 2010 Automatic Build System <autodist@mambasoft.it> 0.9.12-1mamba
- update to 0.9.12
* Wed Dec 15 2010 Automatic Build System <autodist@mambasoft.it> 0.9.3-3mamba
- automatic rebuild by autodist
* Wed Jan 07 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3-2mamba
- automatic rebuild by autodist
* Tue Dec 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3-1mamba
- automatic update by autodist
* Mon May 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.21-1mamba
- package created by autospec