2007-01-16 00:21:36 +01:00
|
|
|
#
|
2009-12-30 00:24:01 +01:00
|
|
|
# spec file for package libdc1394 (Version 2.1.2)
|
2007-01-16 00:21:36 +01:00
|
|
|
#
|
2010-10-07 22:43:16 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:36 +01:00
|
|
|
#
|
2008-10-06 17:58:32 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:21:36 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-10-07 22:43:16 +02:00
|
|
|
# if Build_12 is equal to 0 don't build version 1.2.2
|
|
|
|
%define Build_12 0
|
2008-04-12 20:49:25 +02:00
|
|
|
|
2007-01-16 00:21:36 +01:00
|
|
|
Name: libdc1394
|
2007-08-05 17:34:34 +02:00
|
|
|
%define libdc1394_12_version 1.2.2
|
2009-12-30 00:24:01 +01:00
|
|
|
%define libdc1394_version 2.1.2
|
2008-01-24 21:28:01 +01:00
|
|
|
BuildRequires: libraw1394-devel
|
2009-12-30 00:24:01 +01:00
|
|
|
%if 0%{?suse_version} > 1100
|
|
|
|
# no IIDC-over-USB support for openSUSE 11.0
|
|
|
|
BuildRequires: libusb-1_0-devel pkg-config
|
|
|
|
%endif
|
|
|
|
License: LGPLv2.1+
|
2007-07-13 22:38:40 +02:00
|
|
|
Group: Hardware/Camera
|
2008-01-15 05:47:57 +01:00
|
|
|
AutoReqProv: on
|
2007-08-05 17:34:34 +02:00
|
|
|
Version: %{libdc1394_version}
|
2010-10-07 22:43:16 +02:00
|
|
|
Release: 17
|
2008-01-15 05:47:57 +01:00
|
|
|
Url: http://sourceforge.net/projects/libdc1394/
|
2007-01-16 00:21:36 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: 1394-Based Digital Camera Control Library
|
2007-08-05 17:34:34 +02:00
|
|
|
Source1: libdc1394-%{libdc1394_12_version}.tar.bz2
|
2008-01-15 05:47:57 +01:00
|
|
|
Source2: libdc1394-%{libdc1394_version}.tar.bz2
|
2008-06-25 20:45:42 +02:00
|
|
|
Source3: %{name}-rpmlintrc
|
2008-01-24 21:28:01 +01:00
|
|
|
Patch0: libdc1394.no-x11.patch
|
2008-04-12 20:49:25 +02:00
|
|
|
Patch1: libdc1394.ac.patch
|
2008-06-25 20:45:42 +02:00
|
|
|
Patch2: libdc1394-swab_fix.patch
|
2008-10-06 17:58:32 +02:00
|
|
|
Patch3: libdc1394.raw1394_set_iso_handler.patch
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides functionality for controlling any camera that
|
2008-01-16 17:15:22 +01:00
|
|
|
conforms to the 1394-Based Digital Camera Specification. It utilizes
|
|
|
|
the low-level functionality provided by libraw1394 to communicate with
|
|
|
|
the camera.
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-08-05 17:34:34 +02:00
|
|
|
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>
|
|
|
|
|
2010-10-07 22:43:16 +02:00
|
|
|
|
|
|
|
%if %{Build_12} >= 1
|
|
|
|
|
2007-08-05 17:34:34 +02:00
|
|
|
%package -n libdc1394_control12
|
2009-12-30 00:24:01 +01:00
|
|
|
License: LGPLv2.1+
|
2007-08-05 17:34:34 +02:00
|
|
|
Summary: 1394-Based Digital Camera Control Library
|
|
|
|
Group: Hardware/Camera
|
|
|
|
Version: %{libdc1394_12_version}
|
2010-10-07 22:43:16 +02:00
|
|
|
Release: 17
|
2007-08-05 17:34:34 +02:00
|
|
|
|
|
|
|
%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
|
2009-12-30 00:24:01 +01:00
|
|
|
License: LGPLv2.1+
|
2007-08-05 17:34:34 +02:00
|
|
|
Summary: 1394-Based Digital Camera Control Library
|
2008-06-25 20:45:42 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-08-05 17:34:34 +02:00
|
|
|
Version: %{libdc1394_12_version}
|
2010-10-07 22:43:16 +02:00
|
|
|
Release: 17
|
2007-08-16 18:15:18 +02:00
|
|
|
Requires: libdc1394_control12 = %{libdc1394_12_version} libraw1394-devel
|
2007-08-05 17:34:34 +02:00
|
|
|
|
|
|
|
%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>
|
2010-10-07 22:43:16 +02:00
|
|
|
%endif
|
2007-08-05 17:34:34 +02:00
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%package 22
|
2009-12-30 00:24:01 +01:00
|
|
|
License: LGPLv2.1+
|
2007-08-05 17:34:34 +02:00
|
|
|
Summary: 1394-Based Digital Camera Control Library
|
|
|
|
Group: Hardware/Camera
|
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%description 22
|
2007-08-05 17:34:34 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:21:36 +01:00
|
|
|
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
|
2009-12-30 00:24:01 +01:00
|
|
|
License: LGPLv2.1+
|
2007-01-16 00:21:36 +01:00
|
|
|
Summary: Development libraries and header files for dc1394
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-01-16 17:15:22 +01:00
|
|
|
Requires: libdc1394-22 = %{libdc1394_version}
|
2007-01-16 00:21:36 +01:00
|
|
|
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
|
2008-01-24 21:28:01 +01:00
|
|
|
%patch0 -p1
|
2008-10-06 17:58:32 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%build
|
2008-10-06 17:58:32 +02:00
|
|
|
doit() {
|
|
|
|
if pushd "$1" ; then
|
|
|
|
autoreconf --force --install
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2009-01-19 02:09:34 +01:00
|
|
|
%{configure} --disable-static --with-pic --disable-xv
|
2008-10-06 17:58:32 +02:00
|
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
popd
|
|
|
|
fi
|
|
|
|
}
|
2010-10-07 22:43:16 +02:00
|
|
|
%if %{Build_12} >= 1
|
2008-10-06 17:58:32 +02:00
|
|
|
doit libdc1394-%{libdc1394_12_version}
|
2010-10-07 22:43:16 +02:00
|
|
|
%endif
|
2008-10-06 17:58:32 +02:00
|
|
|
doit libdc1394-%{libdc1394_version}
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%install
|
2008-10-06 17:58:32 +02:00
|
|
|
doit() {
|
|
|
|
if pushd "$1" ; then
|
2010-10-17 15:39:11 +02:00
|
|
|
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
|
2008-10-06 17:58:32 +02:00
|
|
|
popd
|
|
|
|
fi
|
|
|
|
}
|
2010-10-07 22:43:16 +02:00
|
|
|
%if %{Build_12} >= 1
|
2008-10-06 17:58:32 +02:00
|
|
|
doit libdc1394-%{libdc1394_12_version}
|
2010-10-07 22:43:16 +02:00
|
|
|
%endif
|
2008-10-06 17:58:32 +02:00
|
|
|
doit libdc1394-%{libdc1394_version}
|
2008-06-25 20:45:42 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/dc1394_vloopback %{buildroot}%{_mandir}/man1/dc1394_vloopback.1*
|
2009-12-30 00:24:01 +01:00
|
|
|
rm -f %{buildroot}%{_mandir}/man1/dc1394_multiview.1*
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/grab_*_image.1*
|
2009-01-19 02:09:34 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:21:36 +01:00
|
|
|
|
2010-10-07 22:43:16 +02:00
|
|
|
%if %{Build_12} >= 1
|
|
|
|
|
2007-08-05 17:34:34 +02:00
|
|
|
%post -n libdc1394_control12 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdc1394_control12 -p /sbin/ldconfig
|
2010-10-07 22:43:16 +02:00
|
|
|
%endif
|
2007-08-05 17:34:34 +02:00
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%post 22 -p /sbin/ldconfig
|
2007-07-13 22:38:40 +02:00
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%postun 22 -p /sbin/ldconfig
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-10-06 17:58:32 +02:00
|
|
|
%doc libdc1394-%{libdc1394_version}/{AUTHORS,COPYING,ChangeLog,NEWS,README}
|
2007-07-13 22:38:40 +02:00
|
|
|
%_bindir/dc1394_reset_bus
|
2008-06-25 20:45:42 +02:00
|
|
|
%{_mandir}/man1/dc1394_reset_bus.1*
|
2007-08-05 17:34:34 +02:00
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%files 22
|
2007-08-05 17:34:34 +02:00
|
|
|
%defattr(-,root,root)
|
2010-10-07 22:43:16 +02:00
|
|
|
%_libdir/libdc1394.so.22*
|
|
|
|
|
|
|
|
%if %{Build_12} >= 1
|
2007-08-05 17:34:34 +02:00
|
|
|
|
|
|
|
%files -n libdc1394_control12
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libdc1394_control.so.*
|
|
|
|
|
|
|
|
%files -n libdc1394_control12-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/libdc1394
|
|
|
|
%_libdir/libdc1394_control*.so
|
2010-10-07 22:43:16 +02:00
|
|
|
%endif
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-08-05 17:34:34 +02:00
|
|
|
%_includedir/dc1394
|
|
|
|
%_libdir/libdc1394.so
|
2007-07-13 22:38:40 +02:00
|
|
|
%_libdir/pkgconfig/*.pc
|
2007-01-16 00:21:36 +01:00
|
|
|
|
2007-07-13 22:38:40 +02:00
|
|
|
%changelog
|