]> git.pld-linux.org Git - packages/libdvdcss.git/blob - libdvdcss.spec
- libtool version
[packages/libdvdcss.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.2
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:  7b74f2e142b13c9de6dc8d807ab912d4
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 %if "%{_rpmversion}" >= "5"
69 BuildArch:      noarch
70 %endif
71
72 %description apidocs
73 libdvdcss API documentation.
74
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki libdvdcss.
77
78 %prep
79 %setup -q
80
81 %build
82 %{__libtoolize}
83 %{__aclocal} -I m4
84 %{__autoconf}
85 %{__autoheader}
86 %{__automake}
87 %configure \
88         %{!?with_apidocs:--disable-doc} \
89         %{!?with_static_libs:--disable-static}
90
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 # packaged as %doc
100 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libdvdcss
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %doc README AUTHORS ChangeLog
111 %attr(755,root,root) %{_libdir}/libdvdcss.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libdvdcss.so.2
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libdvdcss.so
117 %{_libdir}/libdvdcss.la
118 %{_includedir}/dvdcss
119 %{_pkgconfigdir}/libdvdcss.pc
120
121 %if %{with static_libs}
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libdvdcss.a
125 %endif
126
127 %if %{with apidocs}
128 %files apidocs
129 %defattr(644,root,root,755)
130 %doc doc/html/*
131 %endif
This page took 0.215709 seconds and 3 git commands to generate.