9397
|
1 |
#
|
|
2 |
# spec file for package libmusicbrainz
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner yippi
|
9397
|
9 |
# Bugdb: http://bugs.musicbrainz.org/ticket/
|
|
10 |
#
|
16431
|
11 |
|
16979
|
12 |
%define OSR 13113:3.0.2
|
16431
|
13 |
|
9397
|
14 |
Name: libmusicbrainz
|
16979
|
15 |
License: LGPL v2.1
|
9397
|
16 |
Group: System Environment/Libraries
|
16979
|
17 |
Version: 3.0.2
|
9397
|
18 |
Release: 1
|
|
19 |
Distribution: Java Desktop System
|
17865
|
20 |
Vendor: musicbrainz.org
|
9397
|
21 |
Summary: Software library for accessing MusicBrainz servers
|
|
22 |
Source: http://ftp.musicbrainz.org/pub/musicbrainz/%{name}-%{version}.tar.gz
|
|
23 |
URL: http://musicbrainz.org
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
Docdir: %{_defaultdocdir}/%{name}
|
|
26 |
Autoreqprov: on
|
|
27 |
|
|
28 |
%description
|
|
29 |
The MusicBrainz client library allows applications to make metadata
|
|
30 |
lookup to a MusicBrainz server, generate signatures from WAV data and
|
|
31 |
create CD Index Disk ids from audio CD-ROMs.
|
|
32 |
|
|
33 |
%package devel
|
|
34 |
Summary: Headers for developing programs that will use libmusicbrainz
|
|
35 |
Group: Development/Libraries
|
|
36 |
Requires: %{name}
|
|
37 |
|
|
38 |
%description devel
|
|
39 |
This package contains the headers that programmers will need to develop
|
|
40 |
applications which will use libmusicbrainz.
|
|
41 |
|
|
42 |
%prep
|
|
43 |
%setup -q
|
16979
|
44 |
mv AUTHORS.txt AUTHORS
|
|
45 |
mv COPYING.txt COPYING
|
|
46 |
mv README.txt README
|
9397
|
47 |
|
|
48 |
%build
|
16979
|
49 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
9397
|
50 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
16979
|
51 |
CPUS=1
|
9397
|
52 |
fi
|
|
53 |
|
16979
|
54 |
%if %debug_build
|
|
55 |
%define build_type Debug
|
9397
|
56 |
%else
|
16979
|
57 |
%define build_type Release
|
9397
|
58 |
%endif
|
16979
|
59 |
|
17047
|
60 |
export LDFLAGS="%_ldflags -i -lCstd -lCrun"
|
16979
|
61 |
|
|
62 |
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
|
63 |
-DCMAKE_BUILD_TYPE=%{build_type} \
|
|
64 |
-DCMAKE_C_COMPILER:FILEPATH=$(CC) \
|
|
65 |
-DCMAKE_C_FLAGS:STRING="%optflags" \
|
17047
|
66 |
-DCMAKE_CXX_COMPILER:FILEPATH=$(CXX) \
|
17239
|
67 |
-DCMAKE_CXX_FLAGS_RELEASE:STRING="%cxx_optflags -O4" \
|
16979
|
68 |
-DCMAKE_VERBOSE_MAKEFILE=1
|
|
69 |
make
|
9397
|
70 |
|
|
71 |
%install
|
16979
|
72 |
make install DESTDIR=$RPM_BUILD_ROOT CMAKE_INSTALL_PREFIX=/usr
|
9397
|
73 |
|
16979
|
74 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
75 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
9397
|
76 |
|
|
77 |
%clean
|
|
78 |
rm -rf $RPM_BUILD_ROOT
|
|
79 |
|
|
80 |
%changelog
|
17239
|
81 |
* Wed Dec 23 2009 - [email protected]
|
|
82 |
- Add cxx_optflags to fix bugster #6911844 - Invalid RUNPATH and RPATH in
|
|
83 |
SUNWmusicbrainz.
|
17047
|
84 |
* Mon Nov 30 2009 - [email protected]
|
|
85 |
- Use SunStudio as C++ compiler instead of g++.
|
16979
|
86 |
* Wed Nov 18 2009 - [email protected]
|
|
87 |
- Bump to 3.0.2
|
9886
|
88 |
* Mon May 14 2006 - [email protected]
|
|
89 |
- Bump to 2.1.5. Remove upstream patch, 01-fixduration.
|
9397
|
90 |
* Mon Jan 22 2006 - [email protected]
|
|
91 |
- Add patch comments.
|
|
92 |
* Thu Nov 30 2006 - [email protected]
|
|
93 |
- Bump to 2.1.4.
|
|
94 |
* Fri Jul 21 2006 - [email protected]
|
|
95 |
- Add patch to fix calculation of track durations on Solaris.
|
|
96 |
* Tue Jul 11 2006 - [email protected]
|
|
97 |
- Bump to 2.1.3.
|
|
98 |
* Wed Jan 04 2006 - [email protected]
|
|
99 |
- Specify include dir in CFLAGS so configure finds expat files. And lists the
|
|
100 |
dir in Makefiles.
|
|
101 |
* Tue Jan 03 2006 - [email protected]
|
|
102 |
- Bump to 2.1.2.
|
|
103 |
* Mon Jul 25 2005 - [email protected]
|
|
104 |
- Change the name of the spec file to libmusicbrainz.spec
|
|
105 |
* Wed Jun 15 2005 - [email protected]
|
|
106 |
- Initial spec file checkin
|