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