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

90 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libdvdnav
#
# Copyright (c) 2018 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: libdvdnav
Summary: DVD Navigation Library
License: GPL-2.0+
Group: Productivity/Multimedia/Other
Url: https://www.videolan.org/developers/libdvdnav.html
Version: 6.0.0
Release: 0
Source0: http://download.videolan.org/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source1: http://download.videolan.org/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2.asc
Source1000: baselibs.conf
Patch0: libdvdnav-dvdread.patch
Patch1: libdvdnav-strict-aliasing.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libdvdread-devel >= 5.0.3
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}
%description devel
This library contains functions to display DVD video menus.
%prep
%setup -q
%patch0 -p1
%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