Пакет libdvdread: Specfile

%define soname 8
Name: libdvdread
Version: 6.1.1
Release: alt3
Summary: A library for reading DVD-Video images
License: GPLv2
Group: System/Libraries
Url: https://www.videolan.org/developers/libdvdnav.html

Source: %name-%version.tar
Patch1: alt-link-libdl.patch

BuildRequires: libdvdcss-devel glibc-devel

%description
libdvdread provides a simple foundation for reading DVD-Video images.
This allows application designers to access some of the more advanced
features of the DVD format.
libdvdread currently uses libdl to dynamically probe for libdvdcss at
runtime.  If libdvdcss is found, then it will be used to decrypt the
encrypted sections of a DVD.

%package -n %name%soname
Summary: A library for reading DVD-Video images
Group: System/Libraries
%description -n %name%soname
libdvdread provides a simple foundation for reading DVD-Video images.
This allows application designers to access some of the more advanced
features of the DVD format.


%package devel
Summary: Development environment for %name
Group: Development/C
Requires: %name%soname = %version-%release

%description devel
This package contains development files you can use to develop
applications reading DVD-video images

%prep
%setup -q
%patch1 -p1

%build
%autoreconf

%configure \
	--disable-static
%make_build

%install
%make DESTDIR=%buildroot install
rm -rf %buildroot%_datadir/doc/libdvdread

%files -n %name%soname
%_libdir/*.so.*

%files devel
%doc AUTHORS TODO README
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc

%changelog
* Tue Dec 22 2020 Sergey V Turchin <zerg@altlinux.org> 6.1.1-alt3
- merge p9 changelog

* Tue Dec 22 2020 Sergey V Turchin <zerg@altlinux.org> 6.1.1-alt2
- build with libdvdcss (dlopen)

* Wed Jun 03 2020 Andrey Cherepanov <cas@altlinux.org> 6.1.1-alt0.1.p9
- Backport new version to p9 branch with save inheritance.

* Fri Apr 17 2020 Anton Farygin <rider@altlinux.ru> 6.1.1-alt1
- 6.1.1
- added version to package name with library

* Sat Oct 25 2014 Valery Inozemtsev <shrek@altlinux.ru> 5.0.0-alt1
- 5.0.0

* Sun Feb 24 2013 Valery Inozemtsev <shrek@altlinux.ru> 4.2.0-alt1
- 4.2.0

* Fri Nov 05 2010 Valery Inozemtsev <shrek@altlinux.ru> 4.1.3-alt3
- rebuild

* Sun Sep 20 2009 Valery Inozemtsev <shrek@altlinux.ru> 4.1.3-alt2
- applied DVDFileStat patch

* Mon Jun 01 2009 Valery Inozemtsev <shrek@altlinux.ru> 4.1.3-alt1
- 4.1.3

* Sat Jan 06 2007 Pavlov Konstantin <thresh@altlinux.ru> 0.9.7-alt1
- 0.9.7 release.

* Fri Apr 14 2006 LAKostis <lakostis at altlinux.ru> 0.9.5-alt1
- NMU;
- new version

* Sun Oct 03 2004 Anton Farygin <rider@altlinux.ru> 0.9.4-alt1
- new version

* Fri Oct 18 2002 Rider <rider@altlinux.ru> 0.9.3-alt2
- Russian summary
- rebuild (gcc 3.2)

* Fri Jun 14 2002 Rider <rider@altlinux.ru> 0.9.3-alt1
- 0.9.3

* Tue Nov 08 2001 Rider <rider@altlinux.ru> 0.9.2-alt1
- 0.9.2

* Wed Sep 19 2001 Dmitry V. Levin <ldv@altlinux.ru> 0.9.1-alt2
- Specfile major cleanup (policy enforcement).

* Tue Sep 18 2001 Rider <rider@altlinux.ru> - 0.9.1-alt1
- First build for ALT Linux

* Thu Sep 6 2001 Martin NorbДck <d95mback@dtek.chalmers.se>
- Updated to version 0.9.0
* Tue Jul 03 2001 Martin NorbДck <d95mback@dtek.chalmers.se>
- initial version