]> git.pld-linux.org Git - SPECS.git/blob - libdvdcss.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / libdvdcss.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 %bcond_without  apidocs         # documentation generated with doxygen
5
6 Summary:        Library to decrypt CSS-encoded DVD
7 Summary(pl.UTF-8):      Biblioteka do dekodowania DVD zakodowanych CSS
8 Name:           libdvdcss
9 Version:        1.4.3
10 Release:        1
11 License:        GPL v2+
12 Group:          Libraries
13 Source0:        https://download.videolan.org/pub/videolan/libdvdcss/%{version}/%{name}-%{version}.tar.bz2
14 # Source0-md5:  e98239a88af9b2204f9b9d987c2bc71a
15 URL:            https://www.videolan.org/developers/libdvdcss.html
16 BuildRequires:  autoconf >= 2.50
17 BuildRequires:  automake
18 BuildRequires:  libtool >= 2:2
19 %if %{with apidocs}
20 BuildRequires:  doxygen
21 BuildRequires:  texlive-fonts-cmsuper
22 BuildRequires:  texlive-fonts-jknappen
23 BuildRequires:  texlive-latex
24 BuildRequires:  texlive-latex-extend
25 BuildRequires:  texlive-latex-psnfss
26 BuildRequires:  texlive-makeindex
27 %endif
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 libdvdcss is a simple library designed for accessing DVDs like a block
32 device without having to bother about the decryption.
33
34 %description -l pl.UTF-8
35 Biblioteka dostarczająca prosty interfejs pozwalający na dostęp do
36 zakodowanych płyt DVD.
37
38 %package devel
39 Summary:        libdvdcss library headers
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libdvdcss
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43
44 %description devel
45 This is the libraries, include files and other resources you can use
46 to incorporate libdvdcss into applications.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi
50 CSS w swoich programach.
51
52 %package static
53 Summary:        libdvdcss static libraries
54 Summary(pl.UTF-8):      Statyczne biblioteki libdvdcss
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 This is package with static libdvdcss libraries.
60
61 %description static -l pl.UTF-8
62 Statyczne biblioteki libdvdcss.
63
64 %package apidocs
65 Summary:        libdvdcss API documentation
66 Summary(pl.UTF-8):      Dokumentacja API biblioteki libdvdcss
67 Group:          Documentation
68 BuildArch:      noarch
69
70 %description apidocs
71 libdvdcss API documentation.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki libdvdcss.
75
76 %prep
77 %setup -q
78
79 %build
80 %{__libtoolize}
81 %{__aclocal} -I m4
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         %{!?with_apidocs:--disable-doc} \
87         %{!?with_static_libs:--disable-static}
88
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 # packaged as %doc
98 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libdvdcss
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post   -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
105
106 %files
107 %defattr(644,root,root,755)
108 %doc README AUTHORS ChangeLog
109 %attr(755,root,root) %{_libdir}/libdvdcss.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libdvdcss.so.2
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libdvdcss.so
115 %{_libdir}/libdvdcss.la
116 %{_includedir}/dvdcss
117 %{_pkgconfigdir}/libdvdcss.pc
118
119 %if %{with static_libs}
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/libdvdcss.a
123 %endif
124
125 %if %{with apidocs}
126 %files apidocs
127 %defattr(644,root,root,755)
128 %doc doc/html/*
129 %endif
This page took 0.295965 seconds and 3 git commands to generate.