]> git.pld-linux.org Git - packages/libcddb.git/blob - libcddb.spec
- release 8 (rebuild with libcdio 1.0.0)
[packages/libcddb.git] / libcddb.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        Library to access data on a CDDB server
6 Summary(pl.UTF-8):      Biblioteka dostępu do danych na serwerze CDDB
7 Name:           libcddb
8 Version:        1.3.2
9 Release:        8
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libcddb/%{name}-%{version}.tar.bz2
13 # Source0-md5:  8bb4a6f542197e8e9648ae597cd6bc8a
14 URL:            http://libcddb.sourceforge.net/
15 BuildRequires:  autoconf >= 2.55
16 BuildRequires:  automake
17 BuildRequires:  gettext-tools >= 0.14.4
18 BuildRequires:  libcdio-devel >= 0.76
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig
21 Requires:       libcdio >= 0.76
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
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.
33
34 %package devel
35 Summary:        Header files for libcddb library
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libcddb
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 Header files for libcddb library.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki libcddb.
45
46 %package static
47 Summary:        Static libcddb library
48 Summary(pl.UTF-8):      Statyczna biblioteka libcddb
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static libcddb library.
54
55 %description static -l pl.UTF-8
56 Statyczna biblioteka libcddb.
57
58 %prep
59 %setup -q
60
61 %build
62 %{__libtoolize}
63 %{__aclocal}
64 %{__autoconf}
65 %{__autoheader}
66 %{__automake}
67 %configure \
68         %{!?with_static_libs:--disable-static}
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 # install examples
79 install examples/*.{c,h} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
80
81 # obsoleted by pkg-config
82 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcddb.la
83
84 %clean
85 rm -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
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
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libcddb.so
100 %{_includedir}/cddb
101 %{_pkgconfigdir}/libcddb.pc
102 %{_examplesdir}/%{name}-%{version}
103
104 %if %{with static_libs}
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/libcddb.a
108 %endif
This page took 0.0667 seconds and 3 git commands to generate.