2024-01-06 05:58:38 +01:00
|
|
|
Name: libunicap
|
|
|
|
Version: 0.9.12
|
2024-01-06 05:58:38 +01:00
|
|
|
Release: 4mamba
|
2024-01-06 05:58:38 +01:00
|
|
|
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
|
2024-01-06 05:58:38 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-06 05:58:38 +01:00
|
|
|
|
2024-01-06 05:58:38 +01:00
|
|
|
%debug_package
|
2024-01-06 05:58:38 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 05:58:38 +01:00
|
|
|
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
|
2024-01-06 05:58:38 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
|
|
|
|
%build
|
2024-01-06 05:58:38 +01:00
|
|
|
%configure \
|
|
|
|
CFLAGS="%{optflags} -fcommon"
|
|
|
|
|
2024-01-06 05:58:38 +01:00
|
|
|
%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.*
|
2024-01-06 05:58:38 +01:00
|
|
|
%doc AUTHORS COPYING
|
2024-01-06 05:58:38 +01:00
|
|
|
|
|
|
|
%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/*
|
2024-01-06 05:58:38 +01:00
|
|
|
%doc ChangeLog README
|
2024-01-06 05:58:38 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 05:58:38 +01:00
|
|
|
* Wed Dec 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.12-4mamba
|
|
|
|
- rebuilt with debug package and aarch64 build fix
|
|
|
|
|
2024-01-06 05:58:38 +01:00
|
|
|
* 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
|