libdc1394/libdc1394.spec

110 lines
2.9 KiB
RPMSpec
Raw Normal View History

2022-05-31 15:32:20 +00:00
Name: libdc1394
Summary: 1394-based digital camera control library
Version: 2.2.6
2023-06-05 18:36:41 +00:00
Release: %autorelease
2022-05-31 15:32:20 +00:00
License: LGPLv2+
URL: http://sourceforge.net/projects/%{name}/
ExcludeArch: s390 s390x
Source: http://downloads.sourceforge.net/project/%{name}/%{name}-2/%{version}/%{name}-%{version}.tar.gz
2022-05-31 16:20:40 +00:00
Patch0: %{name}-sdl.patch
2022-05-31 15:32:20 +00:00
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: gcc
2022-05-31 15:32:20 +00:00
BuildRequires: kernel-headers
BuildRequires: make
BuildRequires: libraw1394-devel
BuildRequires: libtool
BuildRequires: libusb1-devel
BuildRequires: libX11-devel
BuildRequires: libXv-devel
BuildRequires: perl-interpreter
%description
Libdc1394 is a library that is intended to provide a high level programming
2022-05-31 15:32:20 +00:00
interface for application developers who wish to control IEEE 1394 based cameras
that conform to the 1394-based Digital Camera Specification.
%package devel
2022-05-31 15:32:20 +00:00
Summary: Header files and libraries for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libraw1394-devel
%description devel
2022-05-31 15:32:20 +00:00
This package contains the header files and libraries for %{name}. If you like
to develop programs using %{name}, you will need to install %{name}-devel.
%package docs
2022-05-31 15:32:20 +00:00
Summary: Development documentation for %{name}
%description docs
This package contains the development documentation for %{name}.
%package tools
2022-05-31 15:32:20 +00:00
Summary: Tools for use with %{name}
%description tools
2022-05-31 15:32:20 +00:00
This package contains tools that are useful when working and developing with
%{name}.
%prep
2022-05-31 16:20:40 +00:00
%autosetup -p1
%build
2022-05-31 15:32:20 +00:00
autoreconf -vif
2009-06-11 22:41:38 +00:00
%configure --disable-static --enable-doxygen-html --enable-doxygen-dot
2022-05-31 15:32:20 +00:00
%make_build
%make_build doc
%install
2022-05-31 15:32:20 +00:00
%make_install
2009-06-11 22:41:38 +00:00
for p in grab_color_image grab_gray_image grab_partial_image ladybug grab_partial_pvn; do
2022-05-31 15:32:20 +00:00
install -p -m 0755 -s examples/.libs/$p %{buildroot}%{_bindir}/dc1394_$p
2009-06-11 22:41:38 +00:00
done
2022-05-31 15:32:20 +00:00
install -p -m 0755 examples/dc1394_multiview %{buildroot}%{_bindir}/dc1394_multiview
2009-06-11 22:41:38 +00:00
for f in grab_color_image grab_gray_image grab_partial_image; do
2022-05-31 15:32:20 +00:00
mv %{buildroot}%{_mandir}/man1/$f.1 %{buildroot}%{_mandir}/man1/dc1394_$f.1
2009-06-11 22:41:38 +00:00
done
2022-05-31 18:07:53 +00:00
find %{buildroot} -name "*.la" -delete
2022-05-31 15:32:20 +00:00
%{?ldconfig_scriptlets}
%files
2022-05-31 15:32:20 +00:00
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/%{name}.so.25
%{_libdir}/%{name}.so.25.0.0
%files devel
%doc examples/*.h examples/*.c
%{_includedir}/dc1394/
2022-05-31 15:32:20 +00:00
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}-2.pc
%files docs
2013-08-07 09:18:58 +00:00
%doc doc/html/*
%files tools
2022-05-31 15:32:20 +00:00
%{_bindir}/dc1394_grab_color_image
%{_bindir}/dc1394_grab_gray_image
%{_bindir}/dc1394_grab_partial_image
%{_bindir}/dc1394_grab_partial_pvn
%{_bindir}/dc1394_ladybug
%{_bindir}/dc1394_multiview
%{_bindir}/dc1394_reset_bus
%{_mandir}/man1/dc1394_grab_color_image.*
%{_mandir}/man1/dc1394_grab_gray_image.*
%{_mandir}/man1/dc1394_grab_partial_image.*
%{_mandir}/man1/dc1394_multiview.*
%{_mandir}/man1/dc1394_reset_bus.*
%{_mandir}/man1/dc1394_vloopback.*
%changelog
2023-06-05 18:36:41 +00:00
%autochangelog