10139N/A#
10139N/A# spec file for package libmusicbrainz
10139N/A#
19026N/A# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
17185N/A%define owner yippi
10139N/A# Bugdb: http://bugs.musicbrainz.org/ticket/
10139N/A#
17182N/A
17730N/A%define OSR 13113:3.0.2
17182N/A
10139N/AName: libmusicbrainz
17730N/ALicense: LGPL v2.1
10139N/AGroup: System Environment/Libraries
19026N/AVersion: 3.0.3
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
18616N/AVendor: musicbrainz.org
10139N/ASummary: Software library for accessing MusicBrainz servers
10139N/ASource: http://ftp.musicbrainz.org/pub/musicbrainz/%{name}-%{version}.tar.gz
19026N/A# date:2010-10-05 owner:yippi type:bug bugid:5801
19026N/APatch1: libmusicbrainz-01-compile.diff
10139N/AURL: http://musicbrainz.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/%{name}
10139N/AAutoreqprov: on
10139N/A
10139N/A%description
10139N/AThe MusicBrainz client library allows applications to make metadata
10139N/Alookup to a MusicBrainz server, generate signatures from WAV data and
10139N/Acreate CD Index Disk ids from audio CD-ROMs.
10139N/A
10139N/A%package devel
10139N/ASummary: Headers for developing programs that will use libmusicbrainz
10139N/AGroup: Development/Libraries
10139N/ARequires: %{name}
10139N/A
10139N/A%description devel
10139N/AThis package contains the headers that programmers will need to develop
10139N/Aapplications which will use libmusicbrainz.
10139N/A
10139N/A%prep
10139N/A%setup -q
19026N/A%patch1 -p1
19026N/A
17730N/Amv AUTHORS.txt AUTHORS
17730N/Amv COPYING.txt COPYING
17730N/Amv README.txt README
10139N/A
10139N/A%build
17730N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
17730N/A CPUS=1
10139N/Afi
10139N/A
17730N/A%if %debug_build
17730N/A%define build_type Debug
10139N/A%else
17730N/A%define build_type Release
10139N/A%endif
17730N/A
17798N/Aexport LDFLAGS="%_ldflags -i -lCstd -lCrun"
17730N/A
17730N/Acmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
17730N/A -DCMAKE_BUILD_TYPE=%{build_type} \
17730N/A -DCMAKE_C_COMPILER:FILEPATH=$(CC) \
17730N/A -DCMAKE_C_FLAGS:STRING="%optflags" \
17798N/A -DCMAKE_CXX_COMPILER:FILEPATH=$(CXX) \
17990N/A -DCMAKE_CXX_FLAGS_RELEASE:STRING="%cxx_optflags -O4" \
17730N/A -DCMAKE_VERBOSE_MAKEFILE=1
17730N/Amake
10139N/A
10139N/A%install
17730N/Amake install DESTDIR=$RPM_BUILD_ROOT CMAKE_INSTALL_PREFIX=/usr
10139N/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 {} ';'
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%changelog
19026N/A* Mon Oct 04 2010 - brian.cameron@oracle.com
19026N/A- Bump to 3.0.3.
17990N/A* Wed Dec 23 2009 - ke.wang@sun.com
17990N/A- Add cxx_optflags to fix bugster #6911844 - Invalid RUNPATH and RPATH in
17990N/A SUNWmusicbrainz.
17798N/A* Mon Nov 30 2009 - ke.wang@sun.com
17798N/A- Use SunStudio as C++ compiler instead of g++.
17730N/A* Wed Nov 18 2009 - ke.wang@sun.com
17730N/A- Bump to 3.0.2
10628N/A* Mon May 14 2006 - damien.carbery@sun.com
10628N/A- Bump to 2.1.5. Remove upstream patch, 01-fixduration.
10139N/A* Mon Jan 22 2006 - brian.cameron@sun.com
10139N/A- Add patch comments.
10139N/A* Thu Nov 30 2006 - brian.cameron@sun.com
10139N/A- Bump to 2.1.4.
10139N/A* Fri Jul 21 2006 - brian.cameron@sun.com
10139N/A- Add patch to fix calculation of track durations on Solaris.
10139N/A* Tue Jul 11 2006 - brian.cameron@sun.com
10139N/A- Bump to 2.1.3.
10139N/A* Wed Jan 04 2006 - damien.carbery@sun.com
10139N/A- Specify include dir in CFLAGS so configure finds expat files. And lists the
10139N/A dir in Makefiles.
10139N/A* Tue Jan 03 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.1.2.
10139N/A* Mon Jul 25 2005 - balamurali.viswanathan@wipro.com
10139N/A- Change the name of the spec file to libmusicbrainz.spec
10139N/A* Wed Jun 15 2005 - balamurali.viswanathan@wipro.com
10139N/A- Initial spec file checkin