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