1 |
%define major 8 |
2 |
%define libname %mklibname dvdread %{major} |
3 |
%define develname %mklibname dvdread -d |
4 |
|
5 |
Name: libdvdread |
6 |
Version: 6.1.3 |
7 |
Release: %mkrel 1 |
8 |
Summary: Library to read DVD images |
9 |
License: GPLv2+ |
10 |
Group: System/Libraries |
11 |
URL: https://www.videolan.org/developers/libdvdnav.html |
12 |
Source0: https://download.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2 |
13 |
|
14 |
%description |
15 |
libdvdread provides a simple foundation for reading DVD-Video images. |
16 |
|
17 |
%package -n %{libname} |
18 |
Summary: Library to read DVD images |
19 |
Group: System/Libraries |
20 |
|
21 |
%description -n %{libname} |
22 |
Libdvdread provides a simple foundation for reading DVD-Video images. |
23 |
This package contains the shared library to run applications utilizing |
24 |
libdvdread. |
25 |
|
26 |
%package -n %{develname} |
27 |
Summary: Libdvdread library headers |
28 |
Group: Development/C |
29 |
Requires: %{libname} = %{version} |
30 |
Provides: %{name}-devel = %{version}-%{release} |
31 |
|
32 |
%description -n %{develname} |
33 |
This is the libraries, include files and other resources you can use |
34 |
to incorporate libdvdread into applications. |
35 |
|
36 |
%prep |
37 |
%setup -q |
38 |
%autopatch -p1 |
39 |
|
40 |
%build |
41 |
%configure --disable-static |
42 |
%make_build |
43 |
|
44 |
%install |
45 |
%make_install docdir=%{_docdir}/%{libname} |
46 |
|
47 |
# we don't want these |
48 |
find %{buildroot} -name '*.la' -delete |
49 |
|
50 |
%files -n %{libname} |
51 |
%doc README.md AUTHORS COPYING NEWS ChangeLog TODO |
52 |
%{_libdir}/lib*.so.%{major}{,.*} |
53 |
|
54 |
%files -n %{develname} |
55 |
%doc ChangeLog TODO |
56 |
%{_includedir}/dvdread/ |
57 |
%{_libdir}/lib*.so |
58 |
%{_libdir}/pkgconfig/dvdread.pc |