]> git.pld-linux.org Git - packages/libcddb.git/blame - libcddb.spec
- release 2, rebuild against libcdio 2.1.0
[packages/libcddb.git] / libcddb.spec
CommitLineData
cbe7ad8a 1#
2823cc6d 2# Conditional build:
2683dc1e 3%bcond_without static_libs # don't build static library
2823cc6d 4#
5823a8e8 5Summary: Library to access data on a CDDB server
57d5a3bf 6Summary(pl.UTF-8): Biblioteka dostępu do danych na serwerze CDDB
5823a8e8 7Name: libcddb
6d6610ae 8Version: 1.3.2
dc68531a 9Release: 11
f93a6b9c 10License: LGPL v2+
5823a8e8 11Group: Libraries
66fb0fa2 12Source0: http://downloads.sourceforge.net/libcddb/%{name}-%{version}.tar.bz2
6d6610ae 13# Source0-md5: 8bb4a6f542197e8e9648ae597cd6bc8a
5823a8e8 14URL: http://libcddb.sourceforge.net/
228aa27f 15BuildRequires: autoconf >= 2.55
7278adab 16BuildRequires: automake
53be7d8f 17BuildRequires: gettext-tools >= 0.14.4
228aa27f 18BuildRequires: libcdio-devel >= 0.76
b416cd7b 19BuildRequires: libtool
7278adab 20BuildRequires: pkgconfig
228aa27f 21Requires: libcdio >= 0.76
5823a8e8
JB
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25libcddb is a library that implements the different protocols (CDDBP,
26HTTP, SMTP) to access data on a CDDB server (http://freedb.org/). It
27tries to be as cross-platform as possible.
28
bd81bfee
JR
29%description -l pl.UTF-8
30libcddb to biblioteka zawierająca implementacje protokołów (CDDBP,
31HTTP, SMTP) dostępu do danych na serwerze CDDB (http://freedb.org/).
32Próbuje być przenośna na ile to możliwe.
5823a8e8
JB
33
34%package devel
35Summary: Header files for libcddb library
57d5a3bf 36Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcddb
5823a8e8 37Group: Development/Libraries
5602bd6f 38Requires: %{name} = %{version}-%{release}
5823a8e8
JB
39
40%description devel
41Header files for libcddb library.
42
bd81bfee
JR
43%description devel -l pl.UTF-8
44Pliki nagłówkowe biblioteki libcddb.
5823a8e8
JB
45
46%package static
47Summary: Static libcddb library
57d5a3bf 48Summary(pl.UTF-8): Statyczna biblioteka libcddb
5823a8e8 49Group: Development/Libraries
5602bd6f 50Requires: %{name}-devel = %{version}-%{release}
5823a8e8
JB
51
52%description static
53Static libcddb library.
54
bd81bfee 55%description static -l pl.UTF-8
5823a8e8
JB
56Statyczna biblioteka libcddb.
57
58%prep
59%setup -q
60
61%build
b416cd7b 62%{__libtoolize}
63%{__aclocal}
64%{__autoconf}
66fb0fa2 65%{__autoheader}
b416cd7b 66%{__automake}
67%configure \
2683dc1e 68 %{!?with_static_libs:--disable-static}
5823a8e8
JB
69%{__make}
70
71%install
72rm -rf $RPM_BUILD_ROOT
6d6610ae 73install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
5823a8e8
JB
74
75%{__make} install \
76 DESTDIR=$RPM_BUILD_ROOT
77
6d6610ae
MB
78# install examples
79install examples/*.{c,h} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
80
f93a6b9c
JB
81# obsoleted by pkg-config
82%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcddb.la
83
5823a8e8
JB
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
89
90%files
91%defattr(644,root,root,755)
92%doc AUTHORS ChangeLog NEWS README THANKS TODO
6d6610ae
MB
93%attr(755,root,root) %{_bindir}/cddb_query
94%attr(755,root,root) %{_libdir}/libcddb.so.*.*.*
95%attr(755,root,root) %ghost %{_libdir}/libcddb.so.2
5823a8e8
JB
96
97%files devel
98%defattr(644,root,root,755)
6d6610ae 99%attr(755,root,root) %{_libdir}/libcddb.so
5823a8e8 100%{_includedir}/cddb
6d6610ae
MB
101%{_pkgconfigdir}/libcddb.pc
102%{_examplesdir}/%{name}-%{version}
5823a8e8 103
2683dc1e 104%if %{with static_libs}
5823a8e8
JB
105%files static
106%defattr(644,root,root,755)
6d6610ae 107%{_libdir}/libcddb.a
b416cd7b 108%endif
This page took 0.063303 seconds and 4 git commands to generate.