2006-10-23 Damien Carbery <
[email protected]>
* docs/ssa/*: Remove these, as they're now up on the
JDS project pages under 'Tasks/Single Sys Admin'.
#
# spec file for package libmusicbrainz
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: libmusicbrainz
License: LGPL
Group: System Environment/Libraries
Version: 2.1.3
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: Software library for accessing MusicBrainz servers
Source: http://ftp.musicbrainz.org/pub/musicbrainz/%{name}-%{version}.tar.gz
URL: http://musicbrainz.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/%{name}
Autoreqprov: on
%description
The MusicBrainz client library allows applications to make metadata
lookup to a MusicBrainz server, generate signatures from WAV data and
create CD Index Disk ids from audio CD-ROMs.
%package devel
Summary: Headers for developing programs that will use libmusicbrainz
Group: Development/Libraries
Requires: %{name}
%description devel
This package contains the headers that programmers will need to develop
applications which will use libmusicbrainz.
%prep
%setup -q
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
%ifos linux
CFLAGS="$RPM_OPT_FLAGS" \
%else
CFLAGS="$RPM_OPT_FLAGS -I/usr/sfw/include" \
%endif
./configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir}
make -j $CPUS
%install
make -i install DESTDIR=$RPM_BUILD_ROOT
#Clean up unpackaged files
rm $RPM_BUILD_ROOT%{_libdir}/*.a
rm $RPM_BUILD_ROOT%{_libdir}/*la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/musicbrainz
%{_libdir}/*.so
%{_libdir}/pkgconfig/libmusicbrainz.pc
%changelog
* Tue Jul 11 2006 - [email protected]
- Bump to 2.1.3.
* Wed Jan 04 2006 - [email protected]
- Specify include dir in CFLAGS so configure finds expat files. And lists the
dir in Makefiles.
* Tue Jan 03 2006 - [email protected]
- Bump to 2.1.2.
* Mon Jul 25 2005 - [email protected]
- Change the name of the spec file to libmusicbrainz.spec
* Wed Jun 15 2005 - [email protected]
- Initial spec file checkin