]> git.pld-linux.org Git - packages/libcdio.git/blame - libcdio.spec
- updated to 1.0.0 (note: new libcdio soname)
[packages/libcdio.git] / libcdio.spec
CommitLineData
af40019c
JB
1#
2# Conditional build:
6831200b 3%bcond_with bootstrap # disable features to able to build without circular dependencies
bd0f2dff 4%bcond_without cddb # build cd-info without CDDB lookups (for bootstrap)
c1e876dc 5%bcond_without static_libs # don't build static library
6831200b
ER
6%bcond_without vcd # build cd-info without VCD support (for bootstrap) (affects only *-utils, not libraries)
7
8%if %{with bootstrap}
9%undefine with_cddb
10%undefine with_vcd
11%endif
12
4fafe6ba
JB
13Summary: GNU Compact Disc Input, Output and Control Library
14Summary(pl.UTF-8): Biblioteka GNU do obsługi wejścia, wyjścia i sterowania czytnikiem CD
af40019c 15Name: libcdio
815f6a27 16Version: 1.0.0
5cd42c60 17Release: 1
f6522c76 18License: GPL v3+
af40019c 19Group: Libraries
815f6a27
JB
20Source0: http://ftp.gnu.org/gnu/libcdio/%{name}-%{version}.tar.bz2
21# Source0-md5: 9f66508a03f58ddddba4104e378cd54c
af40019c 22Patch0: %{name}-info.patch
815f6a27
JB
23# http://git.savannah.gnu.org/cgit/libcdio.git/patch/?id=4305bc1e093e4341aeddb857bd1e6203228000cb
24Patch1: %{name}-cddb-fix.patch
af40019c 25URL: http://www.gnu.org/software/libcdio/
f9b6d81d 26BuildRequires: autoconf >= 2.61
1a607307 27BuildRequires: automake >= 1:1.8.3
c7eddad2 28# for AM_ICONV and config.rpath
3b133306 29BuildRequires: gettext-tools >= 0.14
bd0f2dff 30BuildRequires: help2man
c7eddad2 31%{?with_cddb:BuildRequires: libcddb-devel >= 1.0.1}
bd0f2dff
JB
32BuildRequires: libstdc++-devel
33BuildRequires: libtool >= 2:1.5
80fe0587 34BuildRequires: ncurses-devel
af40019c 35BuildRequires: pkgconfig
ee21196f 36BuildRequires: sed >= 4.0
af40019c 37BuildRequires: texinfo
c7eddad2 38%{?with_vcd:BuildRequires: vcdimager-devel >= 0.7.21}
af40019c
JB
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42This library is to encapsulate CD-ROM reading and control.
43Applications wishing to be oblivious of the OS- and device-dependent
44properties of a CD-ROM can use this library.
45
46Some support for disk image types like BIN/CUE and NRG is available,
47so applications that use this library also have the ability to read
48disc images as though they were CD's.
49
50Immediate uses are VCDImager, a navigation-capable Video CD plugin
51and CD-DA plugin for the media player xine.
52
53A sample utility, cd-info which displayings CD info is included in
54utils subpackage.
55
fb0729c5
JR
56%description -l pl.UTF-8
57Ta biblioteka obudowuje czynności odczytu i sterowania czytnikami
58CD-ROM. Aplikacje chcące zapomnieć o zależnych od systemu lub
59urządzenia własnościach CD-ROM-u mogą używać tej biblioteki.
af40019c 60
fb0729c5
JR
61Dostępna jest pewna obsługa obrazów dysków typu BIN/CUE czy NRG, więc
62aplikacje używające tej biblioteki mogą czytać także takie obrazy
63dysków tak jakby były płytami.
af40019c 64
fb0729c5
JR
65Biblioteka jest używana bezpośrednio w VCDImagerze, wtyczce z
66nawigacją do Video CD oraz wtyczce CD-DA dla odtwarzacza multimediów
af40019c
JB
67xine.
68
fb0729c5
JR
69W podpakiecie utils załączone jest przykładowe narzędzie cd-info
70służące do wyświetlania informacji o płytach kompaktowych.
af40019c
JB
71
72%package devel
73Summary: Header files for libcdio libraries
9cddbef5 74Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libcdio
af40019c 75Group: Development/Libraries
e1d1493a 76Requires: %{name} = %{version}-%{release}
af40019c
JB
77
78%description devel
79Header files for libcdio libraries.
80
fb0729c5
JR
81%description devel -l pl.UTF-8
82Pliki nagłówkowe bibliotek libcdio.
af40019c
JB
83
84%package static
85Summary: Static libcdio libraries
9cddbef5 86Summary(pl.UTF-8): Statyczne biblioteki libcdio
af40019c 87Group: Development/Libraries
e1d1493a 88Requires: %{name}-devel = %{version}-%{release}
af40019c
JB
89
90%description static
91Static libcdio libraries.
92
fb0729c5 93%description static -l pl.UTF-8
af40019c
JB
94Statyczne biblioteki libcdio.
95
bd0f2dff
JB
96%package c++
97Summary: C++ libcdio libraries
9cddbef5 98Summary(pl.UTF-8): Biblioteki C++ libcdio
bd0f2dff
JB
99Group: Libraries
100Requires: %{name} = %{version}-%{release}
101
102%description c++
103C++ libcdio libraries.
104
fb0729c5 105%description c++ -l pl.UTF-8
bd0f2dff
JB
106Biblioteki C++ libcdio.
107
108%package c++-devel
109Summary: Header files for C++ libcdio libraries
9cddbef5 110Summary(pl.UTF-8): Pliki nagłówkowe bibliotek C++ libcdio
bd0f2dff
JB
111Group: Development/Libraries
112Requires: %{name}-c++ = %{version}-%{release}
113Requires: %{name}-devel = %{version}-%{release}
114Requires: libstdc++-devel
115
116%description c++-devel
117Header files for C++ libcdio libraries.
118
fb0729c5
JR
119%description c++-devel -l pl.UTF-8
120Pliki nagłówkowe bibliotek C++ libcdio.
bd0f2dff
JB
121
122%package c++-static
123Summary: Static C++ libcdio libraries
9cddbef5 124Summary(pl.UTF-8): Statyczne biblioteki C++ libcdio
bd0f2dff
JB
125Group: Development/Libraries
126Requires: %{name}-c++-devel = %{version}-%{release}
127
128%description c++-static
129Static C++ libcdio libraries.
130
fb0729c5 131%description c++-static -l pl.UTF-8
bd0f2dff
JB
132Statyczne biblioteki C++ libcdio.
133
af40019c
JB
134%package utils
135Summary: libcdio utilities: cd-info, cd-read
9cddbef5 136Summary(pl.UTF-8): Narzędzia używające libcdio: cd-info, cd-read
af40019c 137Group: Applications
e1d1493a 138Requires: %{name} = %{version}-%{release}
af40019c
JB
139
140%description utils
141libcdio utilities: cd-info, cd-read.
142
fb0729c5
JR
143%description utils -l pl.UTF-8
144Narzędzia używające libcdio: cd-info, cd-read.
af40019c
JB
145
146%prep
147%setup -q
148%patch0 -p1
815f6a27 149%patch1 -p1
af40019c 150
ee21196f 151%{__sed} -i 's, example$,,' Makefile.am
af40019c 152
815f6a27 153%build
c7eddad2
JB
154cp -f /usr/share/gettext/config.rpath .
155
af40019c
JB
156%{__libtoolize}
157%{__aclocal}
158%{__autoconf}
159%{__autoheader}
160%{__automake}
5cd42c60 161CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses"
af40019c 162%configure \
f9b6d81d 163 --disable-silent-rules \
af40019c 164 --enable-cd-info-linux \
93a8edc3 165 --enable-maintainer-mode \
4fafe6ba 166 --enable-rock \
16416ed0 167 %{!?with_cddb:--disable-cddb} \
88ec06ee 168 %{!?with_vcd:--disable-vcd-info} \
c1e876dc 169 %{!?with_static_libs:--disable-static}
af40019c
JB
170
171%{__make}
172
173%install
174rm -rf $RPM_BUILD_ROOT
175
176%{__make} install \
f9b6d81d 177 DESTDIR=$RPM_BUILD_ROOT
af40019c 178
dd12b8a1
JB
179# obsoleted by pkg-config
180%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
181
af40019c
JB
182%clean
183rm -rf $RPM_BUILD_ROOT
184
185%post -p /sbin/ldconfig
186%postun -p /sbin/ldconfig
187
4b020306 188%post devel -p /sbin/postshell
3e717f34 189-/usr/sbin/fix-info-dir -c %{_infodir}
af40019c 190
4b020306 191%postun devel -p /sbin/postshell
3e717f34 192-/usr/sbin/fix-info-dir -c %{_infodir}
af40019c 193
735b1d60
JB
194%post c++ -p /sbin/ldconfig
195%postun c++ -p /sbin/ldconfig
196
af40019c
JB
197%files
198%defattr(644,root,root,755)
199%doc AUTHORS ChangeLog NEWS README THANKS TODO
4b020306 200%attr(755,root,root) %{_libdir}/libcdio.so.*.*.*
815f6a27 201%attr(755,root,root) %ghost %{_libdir}/libcdio.so.17
4b020306 202%attr(755,root,root) %{_libdir}/libiso9660.so.*.*.*
8f59df81 203%attr(755,root,root) %ghost %{_libdir}/libiso9660.so.10
4b020306
JB
204%attr(755,root,root) %{_libdir}/libudf.so.*.*.*
205%attr(755,root,root) %ghost %{_libdir}/libudf.so.0
af40019c
JB
206
207%files devel
208%defattr(644,root,root,755)
bd0f2dff 209%attr(755,root,root) %{_libdir}/libcdio.so
bd0f2dff
JB
210%attr(755,root,root) %{_libdir}/libiso9660.so
211%attr(755,root,root) %{_libdir}/libudf.so
af40019c 212%{_includedir}/cdio
bd0f2dff 213%{_pkgconfigdir}/libcdio.pc
bd0f2dff 214%{_pkgconfigdir}/libiso9660.pc
80fe0587 215%{_pkgconfigdir}/libudf.pc
af40019c
JB
216%{_infodir}/libcdio.info*
217
c1e876dc 218%if %{with static_libs}
af40019c
JB
219%files static
220%defattr(644,root,root,755)
bd0f2dff 221%{_libdir}/libcdio.a
bd0f2dff
JB
222%{_libdir}/libiso9660.a
223%{_libdir}/libudf.a
224%endif
225
226%files c++
227%defattr(644,root,root,755)
4b020306
JB
228%attr(755,root,root) %{_libdir}/libcdio++.so.*.*.*
229%attr(755,root,root) %ghost %{_libdir}/libcdio++.so.0
230%attr(755,root,root) %{_libdir}/libiso9660++.so.*.*.*
231%attr(755,root,root) %ghost %{_libdir}/libiso9660++.so.0
bd0f2dff
JB
232
233%files c++-devel
234%defattr(644,root,root,755)
235%attr(755,root,root) %{_libdir}/libcdio++.so
236%attr(755,root,root) %{_libdir}/libiso9660++.so
bd0f2dff 237%{_includedir}/cdio++
80fe0587
JB
238%{_pkgconfigdir}/libcdio++.pc
239%{_pkgconfigdir}/libiso9660++.pc
bd0f2dff
JB
240
241%if %{with static_libs}
242%files c++-static
243%defattr(644,root,root,755)
244%{_libdir}/libcdio++.a
245%{_libdir}/libiso9660++.a
88ec06ee 246%endif
af40019c
JB
247
248%files utils
9ec66aaf 249%defattr(644,root,root,755)
f528a3e5
JB
250%attr(755,root,root) %{_bindir}/cd-drive
251%attr(755,root,root) %{_bindir}/cd-info
f528a3e5
JB
252%attr(755,root,root) %{_bindir}/cd-read
253%attr(755,root,root) %{_bindir}/cdda-player
254%attr(755,root,root) %{_bindir}/cdinfo-linux
255%attr(755,root,root) %{_bindir}/iso-info
256%attr(755,root,root) %{_bindir}/iso-read
257%attr(755,root,root) %{_bindir}/mmc-tool
258%{_mandir}/man1/cd-drive.1*
259%{_mandir}/man1/cd-info.1*
f528a3e5
JB
260%{_mandir}/man1/cd-read.1*
261%{_mandir}/man1/iso-info.1*
262%{_mandir}/man1/iso-read.1*
This page took 0.140384 seconds and 4 git commands to generate.