File libdvdread.spec of Package libdvdread
#
# spec file for package libdvdread
#
# 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: libdvdread
Version: 5.0.3
Release: 0
Summary: Library for Reading DVD Video Images
License: GPL-2.0+
Group: Productivity/Multimedia/Other
Url: http://www.mplayerhq.hu/
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
Source2: %{name}.keyring
Source3: baselibs.conf
Patch2: libdvdread-no-internal-crypto.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(openssl)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains shared libraries for accessing DVD images (this
package does not contain DeCSS algorithms).
%package -n libdvdread4
Summary: Library for Reading DVD Video Images
Group: Productivity/Multimedia/Other
Provides: %{name} = %{version}
Obsoletes: %{name} <= 0.9.7
%description -n libdvdread4
This package contains shared libraries for accessing DVD images (this
package does not contain DeCSS algorithms).
%package devel
Summary: Development Environment for libdvdread
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libdvdread4 = %{version}
%description devel
This package contains the include-files and static libraries for
libdvdread.
%prep
%setup -q
#patch2
%build
autoreconf -fiv
%configure \
--disable-static \
--with-pic
make %{?_smp_mflags} V=1
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
# We install the files on our own, using %%doc
rm -rf %{buildroot}%{_datadir}/doc/libdvdread/
%post -n libdvdread4 -p /sbin/ldconfig
%postun -n libdvdread4 -p /sbin/ldconfig
%files -n libdvdread4
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/libdvdread.so.4
%{_libdir}/libdvdread.so.4.*
%files devel
%defattr(-,root,root)
%{_includedir}/dvdread
%{_libdir}/libdvdread.so
%{_libdir}/pkgconfig/dvdread.pc
%changelog