]>
Commit | Line | Data |
---|---|---|
4efca419 JK |
1 | # |
2 | Summary: MPD client library | |
3 | Name: libmpd | |
4 | Version: 0.12.0 | |
5 | Release: 1 | |
6 | License: GPL | |
7816da54 | 7 | Group: Libraries |
4efca419 JK |
8 | # http://sarine.nl/gmpc-downloads |
9 | Source0: %{name}-%{version}.tar.gz | |
10 | # Source0-md5: bbfe28a5c3d7ef72b042030e3af52208 | |
11 | URL: http://sarine.nl/gmpc | |
12 | BuildRequires: autoconf | |
13 | BuildRequires: automake | |
14 | BuildRequires: libtool | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Library for Music Player Daemon client development. | |
19 | ||
20 | %package devel | |
21 | Summary: Header files for the MPD client library | |
22 | Group: Development/Libraries | |
23 | Requires: %{name} = %{version}-%{release} | |
24 | ||
25 | %description devel | |
26 | Header files for MPD client library. | |
27 | ||
28 | %package static | |
29 | Summary: Static MPD client library | |
30 | Group: Development/Libraries | |
31 | Requires: %{name}-devel = %{version}-%{release} | |
32 | ||
33 | %description static | |
34 | Static MPD client library. | |
35 | ||
36 | %prep | |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | %{__libtoolize} | |
41 | %{__aclocal} | |
42 | %{__autoconf} | |
43 | %{__autoheader} | |
44 | %{__automake} | |
45 | ||
46 | %configure \ | |
47 | CPPFLAGS="-I/usr/include/ncurses" | |
48 | %{__make} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post -p /sbin/ldconfig | |
60 | %postun -p /sbin/ldconfig | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %{_includedir}/* | |
69 | %{_pkgconfigdir}/* | |
70 | %{_libdir}/lib*.so | |
71 | %{_libdir}/lib*.la | |
72 | ||
73 | %files static | |
74 | %defattr(644,root,root,755) | |
75 | %{_libdir}/lib*.a |