109 lines
3.8 KiB
RPMSpec
109 lines
3.8 KiB
RPMSpec
Name: libwebcam
|
|
Version: 0.2.5
|
|
Release: 2mamba
|
|
Summary: A library that is designed to simplify the development of webcam applications
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
|
URL: http://www.quickcamteam.net/software/libwebcam
|
|
Source: https://downloads.sourceforge.net/project/libwebcam/source/libwebcam-src-%{version}.tar.gz
|
|
#http://www.quickcamteam.net/dev/libwebcam-%{version}.tar.gz
|
|
Patch0: %{name}-0.1.1-uvcvideo_h.patch
|
|
Patch1: %{name}-0.2.0-uvcdynctrl_no_debian_packaging.patch
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libxml2-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
# libwebcam.c:48:22: error: uvcvideo.h: No such file or directory
|
|
# in /usr/src/linux-2.6.31mamba/drivers/media/video/uvc/ ???
|
|
# /lib/modules/2.6.31mamba/source/drivers/media/video/uvc/
|
|
|
|
%description
|
|
The Webcam Library libwebcam is designed to simplify the development of webcam applications.
|
|
It realizes part of what the unwritten Video4Linux user space library was always supposed to be: an easy to use
|
|
library that shields its users from many of the difficulties and problems of using the V4L2 API directly.
|
|
In addition, the interface is prepared to handle device events ranging from newly detected cameras over control value changes to device button events.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Static libraries and headers for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
The Webcam Library libwebcam is designed to simplify the development of webcam applications.
|
|
It realizes part of what the unwritten Video4Linux user space library was always supposed to be: an easy to use
|
|
library that shields its users from many of the difficulties and problems of using the V4L2 API directly.
|
|
In addition, the interface is prepared to handle device events ranging from newly detected cameras over control value changes to device button events.
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
%package -n uvcdynctrl
|
|
Group: System/Tools
|
|
Summary: Command line tool to control v4l2 devices
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n uvcdynctrl
|
|
This package provides the tools needed to add vendor specific controls to uvc devices.
|
|
uvcdynctrl is part of the Webcam Library.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
#%patch1 -p1
|
|
|
|
%build
|
|
%cmake -d build \
|
|
-DCMAKE_INCLUDE_PATH=../common/include
|
|
# -DCMAKE_INCLUDE_PATH:PATH="/usr/src/linux-$(uname -r)/drivers/media/video/uvc"
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libwebcam.so.*
|
|
%doc libwebcam/{COPYING.LESSER,README}
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/webcam.h
|
|
%{_includedir}/dynctrl-logitech.h
|
|
%{_libdir}/libwebcam.a
|
|
%{_libdir}/libwebcam.so
|
|
%{_libdir}/pkgconfig/libwebcam.pc
|
|
|
|
%files -n uvcdynctrl
|
|
%defattr(-,root,root)
|
|
%{_bindir}/uvcdynctrl
|
|
%{_bindir}/uvcdynctrl-*
|
|
%{_datadir}/uvcdynctrl
|
|
/lib/udev/rules.d/*-uvcdynctrl.rules
|
|
/lib/udev/uvcdynctrl
|
|
%{_mandir}/man1/uvcdynctrl.*
|
|
%{_mandir}/man1/uvcdynctrl-*.1*
|
|
|
|
%changelog
|
|
* Sun Dec 03 2017 Automatic Build System <autodist@mambasoft.it> 0.2.5-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Sat Dec 02 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.5-1mamba
|
|
- update to 0.2.5
|
|
|
|
* Tue Mar 16 2010 Davide Madrisan <davide.madrisan@gmail.com> 0.2.0-1mamba
|
|
- update to 0.2.0
|
|
|
|
* Sat Jan 23 2010 Davide Madrisan <davide.madrisan@gmail.com> 0.1.1-1mamba
|
|
- package created by autospec
|