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