]> git.pld-linux.org Git - packages/libcddb.git/blob - libcddb.spec
280d61d56263d8d44e55c804c226dd9c6c01c0f0
[packages/libcddb.git] / libcddb.spec
1 # Conditional build:
2 %bcond_without  static_libs     # don't build static library
3 #
4 Summary:        Library to access data on a CDDB server
5 Summary(pl):    Biblioteka dostêpu do danych na serwerze CDDB
6 Name:           libcddb
7 Version:        1.0.2
8 Release:        1
9 License:        LGPL
10 Group:          Libraries
11 Source0:        http://dl.sourceforge.net/libcddb/%{name}-%{version}.tar.gz
12 # Source0-md5:  a8f8549cc1afb3bc702a96c7d71d2241
13 URL:            http://libcddb.sourceforge.net/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libcdio-devel >= 0.74
17 BuildRequires:  libtool
18 BuildRequires:  pkgconfig
19 Requires:       libcdio >= 0.74
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 libcddb is a library that implements the different protocols (CDDBP,
24 HTTP, SMTP) to access data on a CDDB server (http://freedb.org/). It
25 tries to be as cross-platform as possible.
26
27 %description -l pl
28 libcddb to biblioteka zawieraj±ca implementacje protoko³ów (CDDBP,
29 HTTP, SMTP) dostêpu do danych na serwerze CDDB (http://freedb.org/).
30 Próbuje byæ przeno¶na na ile to mo¿liwe.
31
32 %package devel
33 Summary:        Header files for libcddb library
34 Summary(pl):    Pliki nag³ówkowe biblioteki libcddb
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files for libcddb library.
40
41 %description devel -l pl
42 Pliki nag³ówkowe biblioteki libcddb.
43
44 %package static
45 Summary:        Static libcddb library
46 Summary(pl):    Statyczna biblioteka libcddb
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static libcddb library.
52
53 %description static -l pl
54 Statyczna biblioteka libcddb.
55
56 %prep
57 %setup -q
58
59 %build
60 %{__libtoolize}
61 %{__aclocal}
62 %{__autoconf}
63 %{__automake}
64 %configure \
65         %{!?with_static_libs:--disable-static}
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog NEWS README THANKS TODO
83 %attr(755,root,root) %{_bindir}/*
84 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
85
86 %files devel
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/lib*.so
89 %{_libdir}/lib*.la
90 %{_includedir}/cddb
91 %{_pkgconfigdir}/*.pc
92
93 %if %{with static_libs}
94 %files static
95 %defattr(644,root,root,755)
96 %{_libdir}/lib*.a
97 %endif
This page took 0.027373 seconds and 3 git commands to generate.