libavc1394/libavc1394.spec
2015-03-22 06:45:27 +00:00

115 lines
3.8 KiB
RPMSpec

#
# spec file for package libavc1394
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libavc1394
Version: 0.5.4
Release: 0
Summary: Libavc1394--Programming Interface to the AV/C Specification
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://sourceforge.net/projects/libavc1394/
Source0: http://sourceforge.net/projects/libavc1394/files/libavc1394/%{name}-%{version}.tar.gz
Source2: baselibs.conf
Patch0: libavc1394.no-mkrfc2734.patch
Patch1: libavc1394.raw1394_set_fcp_handler.patch
Patch2: libavc-fix-symbolexports.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libraw1394-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libavc1394 is a programming interface to the AV/C specification from
the 1394 Trade Association. AV/C stands for Audio/Video Control.
Currently, applications use the library to control the tape transport
mechanism on DV camcorders. However, there are many devices and device
functions that can be controlled via AV/C. Eventually, the library will
be expanded to implement more of the specification and to provide a
high level interface to various devices.
%package 0
Summary: Libavc1394--Programming Interface to the AV/C Specification
License: LGPL-2.1+
Group: Development/Libraries/C and C++
%description 0
Libavc1394 is a programming interface to the AV/C specification from
the 1394 Trade Association. AV/C stands for Audio/Video Control.
Currently, applications use the library to control the tape transport
mechanism on DV camcorders. However, there are many devices and device
functions that can be controlled via AV/C. Eventually, the library will
be expanded to implement more of the specification and to provide a
high level interface to various devices.
%package devel
Summary: Libavc1394 is a programming interface to the AV/C specification
Group: Development/Libraries/C and C++
Requires: libavc1394-0 = %{version}
Requires: libraw1394-devel
%description devel
libavc1394 is a programming interface to the AV/C specification from
the 1394 Trade Association. AV/C stands for Audio/Video Control.
Currently, applications use the library to control the tape transport
mechanism on DV camcorders. However, there are many devices and
functions of devices that can be controlled via AV/C. Eventually, the
library will be expanded to implement more of the specification and to
provide high level interfaces to various devices.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
autoreconf -ifv
%configure \
--disable-static \
--with-pic
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%post 0 -p /sbin/ldconfig
%postun 0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README AUTHORS COPYING
%{_mandir}/man1/*
%attr(755,root,root)%{_bindir}/*
%files 0
%defattr(-,root,root)
%{_libdir}/libavc1394.so.*
%{_libdir}/librom1394.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/libavc1394
%{_libdir}/pkgconfig/*.pc
%changelog