17730N/A#
17730N/A# spec file for package libdiscid
17730N/A#
17730N/A# Copyright (c) 2009 Sun Microsystems, Inc.
17730N/A# This file and all modifications and additions to the pristine
17730N/A# package are under the same license as the package itself.
17730N/A#
17730N/A%define owner wangke
17730N/A# Bugdb: http://bugs.musicbrainz.org/ticket/
17730N/A#
17730N/A
17730N/A%define OSR 13114:0.2.2
17730N/A
17730N/AName: libdiscid
17730N/ALicense: LGPL v2.1, Public Domain
17730N/AGroup: System Environment/Libraries
17730N/AVersion: 0.2.2
17730N/ARelease: 1
17730N/ADistribution: Java Desktop System
18644N/AVendor: musicbrainz.org/doc/libdiscid
17730N/ASummary: Library for creating MusicBrainz DiscIDs
17730N/ASource: http://users.musicbrainz.org/~matt/%{name}-%{version}.tar.gz
17730N/A#owner:wangke date:2009-11-16 type:branding
17730N/APatch1: libdiscid-01-solaris.diff
17730N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
17730N/ADocdir: %{_defaultdocdir}/%{name}
17730N/AAutoreqprov: on
17730N/A
17730N/A%description
17730N/Alibdiscid is a C library for creating MusicBrainz DiscIDs from audio
17730N/ACDs. It reads a CD's table of contents (TOC) and generates an
17730N/Aidentifier which can be used to lookup the CD at MusicBrainz.
17730N/AAdditionally, it provides a submission URL for adding the DiscID to
17730N/Athe database.
17730N/A
17730N/A%package devel
17730N/ASummary: %{summary} - development files
17730N/AGroup: Development/Libraries
17730N/ARequires: %{name}
17730N/A
17730N/A%prep
17730N/A%setup -q
17730N/Acp src/disc_linux.c src/disc_solaris.c
17730N/A%patch1 -p1
17730N/A
17730N/A%build
17730N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
17730N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
17730N/A CPUS=1
17730N/Afi
17730N/A
17730N/Aexport CFLAGS="%optflags"
17730N/Aexport LDFLAGS="%_ldflags"
17730N/A
17730N/Alibtoolize --copy --force
17730N/Aaclocal
17730N/Aautoconf -f
17730N/Aautoheader
17730N/Aautomake -a -f
17730N/A./configure --prefix=%{_prefix} \
17730N/A --bindir=%{_bindir} \
17730N/A --libdir=%{_libdir} \
17730N/A --includedir=%{_includedir} \
17730N/A --mandir=%{_mandir} \
17730N/A --infodir=%{_infodir} \
17730N/A --disable-static \
17730N/A --enable-shared \
17730N/A --disable-debug
17730N/A
17730N/Amake
17730N/A
17730N/A%install
17730N/Amake install DESTDIR=$RPM_BUILD_ROOT
17730N/A
17730N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
17730N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
17730N/A
17730N/A%clean
17730N/Arm -rf $RPM_BUILD_ROOT
17730N/A
17730N/A%changelog
17730N/A* Mon Nov 16 2009 - ke.wang@sun.com
17730N/A- Initial spec file