]> git.pld-linux.org Git - SPECS.git/blob - libdvdread.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / libdvdread.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4
5 Summary:        Library to read DVD images
6 Summary(pl.UTF-8):      Biblioteka do odczytu obrazów DVD-Video
7 Name:           libdvdread
8 Version:        6.1.2
9 Release:        1
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        https://download.videolan.org/pub/videolan/libdvdread/%{version}/%{name}-%{version}.tar.bz2
13 # Source0-md5:  034581479968405ed415c34a50d00224
14 URL:            http://dvdnav.mplayerhq.hu/
15 BuildRequires:  autoconf >= 2.53
16 BuildRequires:  automake >= 1.6
17 BuildRequires:  libtool >= 2:2
18 BuildRequires:  tar >= 1:1.22
19 Suggests:       libdvdcss >= 1.2
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 libdvdread provides a simple foundation for reading DVD-Video images.
24
25 For reading CSS-encrypted DVDs you will also need libdvdcss package.
26
27 %description -l pl.UTF-8
28 Biblioteka dostarczająca prosty interfejs do odczytu obrazów
29 DVD-Video.
30
31 Aby czytać płyty DVD szyfrowane CSS potrzebny jest także pakiet
32 libdvdcss.
33
34 %package devel
35 Summary:        Header files for libdvread library
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libdvdread
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 The include files and other resources you can use to incorporate
42 libdvdread into applications.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi
46 dvd w swoich programach.
47
48 %package static
49 Summary:        libdvdread static libraries
50 Summary(pl.UTF-8):      Statyczne biblioteki do obsługi formatu DVD-Video
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 This is package with static libdvdread libraries.
56
57 %description static -l pl.UTF-8
58 Statyczne biblioteki libdvdread.
59
60 %prep
61 %setup -q
62
63 %build
64 %{__libtoolize}
65 %{__aclocal}
66 %{__autoconf}
67 %{__autoheader}
68 %{__automake}
69 %configure \
70         --disable-silent-rules \
71         %{?with_static_libs:--enable-static}
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc AUTHORS ChangeLog NEWS README TODO
92 %attr(755,root,root) %{_libdir}/libdvdread.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libdvdread.so.8
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libdvdread.so
98 %{_libdir}/libdvdread.la
99 %{_includedir}/dvdread
100 %{_pkgconfigdir}/dvdread.pc
101
102 %if %{with static_libs}
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/libdvdread.a
106 %endif
This page took 0.54756 seconds and 3 git commands to generate.