]> git.pld-linux.org Git - packages/libdvdread.git/blob - libdvdread.spec
- added header "Conditional build:"
[packages/libdvdread.git] / libdvdread.spec
1 # Conditional build:
2 %bcond_without  static_libs     # don't build static library
3 #
4 Summary:        Library to read DVD images
5 Summary(pl):    Biblioteka do odczytu obrazów DVD-Video
6 Name:           libdvdread
7 Version:        0.9.4
8 Release:        1
9 License:        GPL
10 Group:          Libraries
11 Source0:        http://www.dtek.chalmers.se/groups/dvd/dist/%{name}-%{version}.tar.gz
12 # Source0-md5:  06353d7b14541ff8b431e69ad404db84
13 Patch0:         %{name}-alpha.patch
14 URL:            http://www.dtek.chalmers.se/groups/dvd/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libtool
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 libdvdread provides a simple foundation for reading DVD-Video images.
22
23 For reading CSS-encrypted DVDs you will also need libdvdcss package.
24
25 %description -l pl
26 Biblioteka dostarczaj±ca prosty interfejs do odczytu obrazów
27 DVD-Video.
28
29 Aby czytaæ p³yty DVD szyfrowane CSS potrzebny jest tak¿e pakiet
30 libdvdcss.
31
32 %package devel
33 Summary:        %{name} library headers
34 Summary(pl):    Pliki nag³ówkowe biblioteki %{name}
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}
37
38 %description devel
39 This is the libraries, include files and other resources you can use
40 to incorporate libdvdread into applications.
41
42 %description devel -l pl
43 Pliki nag³ówkowe oraz dokumentacja pozwalaj±ca na dodawanie obs³ugi
44 dvd w swoich programach.
45
46 %package static
47 Summary:        libdevdread static libraries
48 Summary(pl):    Statyczne biblioteki do obs³ugi formatu DVD-Video
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}
51
52 %description static
53 This is package with static libdvdread libraries.
54
55 %description static -l pl
56 Statyczne biblioteki libdvdread.
57
58 %prep
59 %setup  -q
60 %patch0 -p1
61
62 %build
63 rm -f missing
64 %{__libtoolize}
65 %{__aclocal}
66 %{__autoconf}
67 %{__automake}
68 %configure \
69         %{!?with_static_libs:--disable-static}
70
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc README AUTHORS TODO NEWS
88 %attr(755,root,root) %{_libdir}/lib*.so.*.*
89
90 %files devel
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/lib*.so
93 %{_libdir}/lib*.la
94 %{_includedir}/dvdread
95
96 %if %{with static_libs}
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/lib*.a
100 %endif
This page took 0.081299 seconds and 4 git commands to generate.