SHA256
1
0
forked from pool/libdvdnav
libdvdnav/libdvdnav.spec

119 lines
3.0 KiB
RPMSpec

#
# spec file for package libdvdnav
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#
# norootforbuild
Name: libdvdnav
Summary: A DVD Navigation Library
Url: http://www.mplayerhq.hu/
License: GPLv2+
Group: Productivity/Multimedia/Other
Version: 4.1.3
Release: 9
Source0: http://www1.mplayerhq.hu/MPlayer/releases/dvdnav/%name-%version.tar.bz2
Patch: libdvdnav.diff
Patch1: libdvdnav-strict-aliasing.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libdvdread-devel pkg-config
%description
This library contains functions to display DVD video menus.
Authors:
--------
Daniel Caujolle-Bert <segfault@club-internet.fr>
Thomas Vander Stichele <thomas@apestaart.org>
Rich Wareham <richwareham@users.sourceforge.net>
Kees Cook <kees@outflux.net>
%package -n libdvdnav4
License: GPLv2+
Summary: A DVD Navigation Library
Group: Productivity/Multimedia/Other
Provides: %{name} = %{version}
Obsoletes: %{name} <= 0.1.10
%description -n libdvdnav4
This library contains functions to display DVD video menus.
Authors:
--------
Daniel Caujolle-Bert <segfault@club-internet.fr>
Thomas Vander Stichele <thomas@apestaart.org>
Rich Wareham <richwareham@users.sourceforge.net>
Kees Cook <kees@outflux.net>
%package devel
License: GPLv2+
Summary: Development Environment for libdvdnav
Group: Development/Libraries/C and C++
Requires: libdvdnav4 = %{version} libdvdread-devel
%description devel
This library contains functions to display DVD video menus.
Authors:
--------
Daniel Caujolle-Bert <segfault@club-internet.fr>
Thomas Vander Stichele <thomas@apestaart.org>
Rich Wareham <richwareham@users.sourceforge.net>
Kees Cook <kees@outflux.net>
%prep
%setup -q
%patch
%patch1
%build
autoreconf -f -i
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libdvdnav4 -p /sbin/ldconfig
%postun -n libdvdnav4 -p /sbin/ldconfig
%files -n libdvdnav4
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
/usr/bin/*
/usr/include/*
/usr/share/aclocal/*.m4
%{_libdir}/*.so
%_libdir/pkgconfig/dvdnav.pc
%_libdir/pkgconfig/dvdnavmini.pc
%changelog