19613
|
1 |
#
|
|
2 |
# spec file for package libmusicbrainz
|
|
3 |
#
|
19693
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
19613
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
Name: libmusicbrainz
|
|
9 |
License: LGPL
|
|
10 |
Group: System Environment/Libraries
|
|
11 |
Version: 2.1.1
|
|
12 |
Release: 1
|
19693
|
13 |
Distribution: Java Desktop System
|
19613
|
14 |
Vendor: Sun Microsystems, Inc.
|
|
15 |
Summary: A software library for accessing MusicBrainz servers
|
19885
|
16 |
Source: ftp://ftp.musicbrainz.org/pub/musicbrainz/%{name}-%{version}.tar.gz
|
19613
|
17 |
URL: http://www.musicbrainz.org
|
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
19 |
Docdir: %{_defaultdocdir}/%{name}
|
|
20 |
Autoreqprov: on
|
|
21 |
|
|
22 |
%description
|
|
23 |
The MusicBrainz client library allows applications to make metadata
|
|
24 |
lookup to a MusicBrainz server, generate signatures from WAV data and
|
|
25 |
create CD Index Disk ids from audio CD roms.
|
|
26 |
|
|
27 |
%package devel
|
|
28 |
Summary: Headers for developing programs that will use libmusicbrainz
|
|
29 |
Group: Development/Libraries
|
|
30 |
Requires: %{name}
|
|
31 |
|
|
32 |
%description devel
|
|
33 |
This package contains the headers that programmers will need to develop
|
|
34 |
applications which will use libmusicbrainz.
|
|
35 |
|
|
36 |
%prep
|
|
37 |
%setup -q
|
|
38 |
|
|
39 |
|
|
40 |
%build
|
|
41 |
%ifos linux
|
|
42 |
if [ -x /usr/bin/getconf ]; then
|
|
43 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
44 |
fi
|
|
45 |
%else
|
|
46 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
47 |
%endif
|
|
48 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
49 |
CPUS=1
|
|
50 |
fi
|
|
51 |
|
|
52 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
53 |
./configure \
|
|
54 |
--prefix=%{_prefix} \
|
|
55 |
--sysconfdir=%{_sysconfdir} \
|
|
56 |
--mandir=%{_mandir}
|
|
57 |
make -j $CPUS
|
|
58 |
|
|
59 |
%install
|
|
60 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
61 |
|
|
62 |
#Clean up unpackaged files
|
|
63 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
64 |
rm $RPM_BUILD_ROOT%{_libdir}/*la
|
|
65 |
|
|
66 |
%clean
|
|
67 |
rm -rf $RPM_BUILD_ROOT
|
|
68 |
|
|
69 |
%post -p /sbin/ldconfig
|
|
70 |
%postun -p /sbin/ldconfig
|
|
71 |
|
|
72 |
%files
|
|
73 |
%defattr (-, root, root)
|
|
74 |
%{_libdir}/*.so.*
|
|
75 |
|
|
76 |
%files devel
|
|
77 |
%defattr(-, root, root)
|
|
78 |
%{_includedir}/musicbrainz
|
|
79 |
%{_libdir}/*.so
|
|
80 |
%{_libdir}/pkgconfig/libmusicbrainz.pc
|
|
81 |
|
|
82 |
%changelog
|
|
83 |
* Mon Jul 25 2005 - [email protected]
|
|
84 |
- Change the name of the spec file to libmusicbrainz.spec
|
|
85 |
* Wed Jun 15 2005 - [email protected]
|
|
86 |
- Initial spec file checkin
|