libdc1394/libdc1394.spec

264 lines
7.5 KiB
RPMSpec

#
# spec file for package libdc1394 (Version 0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libdc1394
%define libdc1394_12_version 1.2.2
%define libdc1394_version 2.0.0
BuildRequires: libraw1394-devel xorg-x11-devel
License: LGPL v2 or later
Group: Hardware/Camera
Autoreqprov: on
Version: %{libdc1394_version}
Release: 1
URL: http://sourceforge.net/projects/libdc1394/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: 1394-Based Digital Camera Control Library
Source1: libdc1394-%{libdc1394_12_version}.tar.bz2
Source2: libdc1394-%{libdc1394_version}-rc7.tar.bz2
%description
This library provides functionality for controlling any camera that
conforms to the 1394-Based Digital Camera Specification (which can be
found at
http://www.1394ta.org/Download/Technology/Specifications/Camera120.pdf)
. It utilizes the low-level functionality provided by libraw1394 to
communicate with the camera.
Authors:
--------
Gord Peters <GordPeters@smarttech.com>
Per Dalgas Jakobsen <pdj@maridan.dk>
Chris Urmson <curmson@ri.cmu.edu>
Damien Douxchamps <douxchamps@ieee.org>
Dan Dennedy <dan@dennedy.org>
David Moore <david@startbox.com>
John Stanley <stanley@peak.org>
%package -n libdc1394_control12
Summary: 1394-Based Digital Camera Control Library
Group: Hardware/Camera
Version: %{libdc1394_12_version}
Release: 1
%description -n libdc1394_control12
This library provides functionality for controlling any camera that
conforms to the 1394-Based Digital Camera Specification (which can be
found at
http://www.1394ta.org/Download/Technology/Specifications/Camera120.pdf)
. It utilizes the low-level functionality provided by libraw1394 to
communicate with the camera.
Authors:
--------
Gord Peters <GordPeters@smarttech.com>
Per Dalgas Jakobsen <pdj@maridan.dk>
Chris Urmson <curmson@ri.cmu.edu>
Damien Douxchamps <douxchamps@ieee.org>
Dan Dennedy <dan@dennedy.org>
David Moore <david@startbox.com>
John Stanley <stanley@peak.org>
%package -n libdc1394_control12-devel
Summary: 1394-Based Digital Camera Control Library
Group: Hardware/Camera
Version: %{libdc1394_12_version}
Release: 1
Requires: libdc1394_control12 = %{libdc1394_12_version}
%description -n libdc1394_control12-devel
This library provides functionality for controlling any camera that
conforms to the 1394-Based Digital Camera Specification (which can be
found at
http://www.1394ta.org/Download/Technology/Specifications/Camera120.pdf)
. It utilizes the low-level functionality provided by libraw1394 to
communicate with the camera.
Authors:
--------
Gord Peters <GordPeters@smarttech.com>
Per Dalgas Jakobsen <pdj@maridan.dk>
Chris Urmson <curmson@ri.cmu.edu>
Damien Douxchamps <douxchamps@ieee.org>
Dan Dennedy <dan@dennedy.org>
David Moore <david@startbox.com>
John Stanley <stanley@peak.org>
%package 20
Summary: 1394-Based Digital Camera Control Library
Group: Hardware/Camera
%description 20
This library provides functionality for controlling any camera that
conforms to the 1394-Based Digital Camera Specification (which can be
found at
http://www.1394ta.org/Download/Technology/Specifications/Camera120.pdf)
. It utilizes the low-level functionality provided by libraw1394 to
communicate with the camera.
Authors:
--------
Gord Peters <GordPeters@smarttech.com>
Per Dalgas Jakobsen <pdj@maridan.dk>
Chris Urmson <curmson@ri.cmu.edu>
Damien Douxchamps <douxchamps@ieee.org>
Dan Dennedy <dan@dennedy.org>
David Moore <david@startbox.com>
John Stanley <stanley@peak.org>
%package devel
Summary: Development libraries and header files for dc1394
Group: Development/Libraries/C and C++
Requires: libdc1394-20 = %{libdc1394_version}
Requires: libraw1394-devel
%description devel
This package contains the header files and libraries for building
programs using the dc1394 library.
Authors:
--------
Gord Peters <GordPeters@smarttech.com>
Per Dalgas Jakobsen <pdj@maridan.dk>
Chris Urmson <curmson@ri.cmu.edu>
Damien Douxchamps <douxchamps@ieee.org>
Dan Dennedy <dan@dennedy.org>
David Moore <david@startbox.com>
John Stanley <stanley@peak.org>
%prep
%setup -q -T -c -a 1 -a 2
mv libdc1394-1* libdc1394-1
mv libdc1394-2* libdc1394-2
%build
for i in libdc1394-1 libdc1394-2
do
cd $i
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS" \
./configure \
--prefix=/usr \
--libdir=%_libdir \
--mandir=%_mandir
%{__make} %{?jobs:-j%jobs}
cd ..
done
%install
for i in libdc1394-1 libdc1394-2
do
cd $i
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
cd ..
done
%post -n libdc1394_control12 -p /sbin/ldconfig
%postun -n libdc1394_control12 -p /sbin/ldconfig
%post 20 -p /sbin/ldconfig
%postun 20 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc libdc1394-2/{AUTHORS,COPYING,ChangeLog,NEWS,README}
%_bindir/dc1394_vloopback
%_bindir/dc1394_reset_bus
%files 20
%defattr(-,root,root)
%_libdir/libdc1394.so.*
%files -n libdc1394_control12
%defattr(-,root,root)
%_libdir/libdc1394_control.so.*
%files -n libdc1394_control12-devel
%defattr(-,root,root)
%_includedir/libdc1394
%_libdir/libdc1394_control*.la
%_libdir/libdc1394_control*.a
%_libdir/libdc1394_control*.so
%files devel
%defattr(-,root,root)
%_includedir/dc1394
%_libdir/libdc1394.la
%_libdir/libdc1394.a
%_libdir/libdc1394.so
%_libdir/pkgconfig/*.pc
%changelog
* Sun Aug 05 2007 - olh@suse.de
- split libdc1394-20 package which contains only libraries
split libdc1394_control12 and libdc1394_control12-devel
upgrade to 1.2.2, color filter fix
* Fri Jul 13 2007 - olh@suse.de
- update to 2.0.0-rc7
API fixes
* Tue Aug 15 2006 - olh@suse.de
- update to 2.0.0-rc3 (#198102)
all new API
- keep old library version until every app is converted
* Wed Jul 19 2006 - olh@suse.de
- update to 1.2.1
replaced camera version detection in dc1394_is_camera() by a
proper call to dc1394_get_sw_version().
fixed compilation warnings due to mixed signedness in the whole code.
fixed a serious bug in the camera detection.
updated TRIGGER_MODE_NUM definition
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Oct 21 2005 - olh@suse.de
- correct usage of CLK_TCK
- update to current cvs
fixed memory leak in capture functions (dma device name not freed)
fixed trigger capabilities detection (Markus Niebel)
fixed some confusion between raw1394_new_handle and dc1394_create_handle
(Thanks to Thorondor)
* Mon Sep 26 2005 - mls@suse.de
- make devel package require base package
* Tue Jul 05 2005 - olh@suse.de
- go back to version 1, version 2 still needs some time
* Fri Jul 01 2005 - olh@suse.de
- update to version 2.0.0-pre3
* Fri Jul 01 2005 - olh@suse.de
- update to version 1.1.0
* Thu Jan 13 2005 - olh@suse.de
- update to version 1.0.0, cvs status 2004-11-12
* Tue Jan 11 2005 - olh@suse.de
- update to version 1.0.0
* Mon Mar 08 2004 - lmuelle@suse.de
- update to version 0.9.3
- create devel sub package
* Wed Jan 07 2004 - lmuelle@suse.de
- update to version 0.9.2
* Mon Jul 28 2003 - adrian@suse.de
- fix lib filename suffix
* Fri Jul 25 2003 - adrian@suse.de
- update to version 0.9.1
- use BuildRoot
- add %%run_ldconfig
* Fri Sep 27 2002 - uli@suse.de
- initial package