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