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

88 lines
2.5 KiB
RPMSpec

#
# spec file for package libdvdnav
#
# Copyright (c) 2015 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/
#
Name: libdvdnav
Summary: DVD Navigation Library
License: GPL-2.0+
Group: Productivity/Multimedia/Other
Url: http://www.mplayerhq.hu/
Version: 5.0.2
Release: 0
Source0: http://download.videolan.org/videolan/libdvdnav/%{version}/libdvdnav-%{version}.tar.bz2
Source1000: baselibs.conf
Patch1: libdvdnav-strict-aliasing.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libdvdread-devel >= 4.2.0
BuildRequires: libtool
BuildRequires: pkg-config
%description
This library contains functions to display DVD video menus.
%package -n libdvdnav4
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.
%package devel
Summary: Development Environment for libdvdnav
Group: Development/Libraries/C and C++
Requires: libdvdnav4 = %{version}
Requires: libdvdread-devel
%description devel
This library contains functions to display DVD video menus.
%prep
%setup -q
%patch1
%build
autoreconf -f -i -v
%configure --disable-static --with-pic --docdir=%{_docdir}/libdvdnav4
%__make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%__rm -f %{buildroot}%{_libdir}/*.la
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%post -n libdvdnav4 -p /sbin/ldconfig
%postun -n libdvdnav4 -p /sbin/ldconfig
%files -n libdvdnav4
%defattr(-,root,root)
%{_libdir}/libdvdnav.so.4
%{_libdir}/libdvdnav.so.4.*
%doc AUTHORS ChangeLog COPYING README TODO
%files devel
%defattr(-,root,root)
%{_includedir}/dvdnav
%{_libdir}/libdvdnav.so
%{_libdir}/pkgconfig/dvdnav.pc
%changelog