base-specs/libmusicbrainz.spec
author dcarbery
Mon, 14 May 2007 10:22:16 +0000
changeset 9886 2221a9921800
parent 9397 b16e349d18c5
child 9888 27ba93b00571
permissions -rw-r--r--
2007-05-14 Damien Carbery <[email protected]> * base-specs/gcalctool.spec: Bump to 5.19.2. * base-specs/orca.spec: Bump to 2.19.2. * base-specs/libmusicbrainz.spec: Bump to 2.1.5. Remove upstream patch, 01-fixduration. * patches/libmusicbrainz-01-fixduration.diff: Removed, upstream.
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
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# Owner: yippi
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
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
Name:         libmusicbrainz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
License:      LGPL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Group:        System Environment/Libraries
9886
2221a9921800 2007-05-14 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    14
Version:      2.1.5
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Distribution: Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Vendor:       Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Summary:      Software library for accessing MusicBrainz servers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
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
    20
#owner:yippi date:2006-07-21 type:bug bugid:2009
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Patch1:       libmusicbrainz-01-fixduration.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
URL:          http://musicbrainz.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
Docdir:       %{_defaultdocdir}/%{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
The MusicBrainz client library allows applications to make metadata
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
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
    30
create CD Index Disk ids from audio CD-ROMs.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Summary: Headers for developing programs that will use libmusicbrainz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Group:      Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Requires:   %{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%description   devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
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
    39
applications which will use libmusicbrainz.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
CFLAGS="$RPM_OPT_FLAGS" \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
CFLAGS="$RPM_OPT_FLAGS -I/usr/sfw/include" \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
  ./configure \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
	--prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
	--sysconfdir=%{_sysconfdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
	--mandir=%{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
make -i install DESTDIR=$RPM_BUILD_ROOT
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
#Clean up unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
rm $RPM_BUILD_ROOT%{_libdir}/*.a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
rm $RPM_BUILD_ROOT%{_libdir}/*la
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
%post -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
%postun -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%defattr (-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
%{_libdir}/*.so.*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%{_includedir}/musicbrainz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%{_libdir}/*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%{_libdir}/pkgconfig/libmusicbrainz.pc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%changelog
9886
2221a9921800 2007-05-14 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    92
* Mon May 14 2006 - [email protected]
2221a9921800 2007-05-14 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    93
- 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
    94
* Mon Jan 22 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
- Add patch comments.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
* Thu Nov 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
- Bump to 2.1.4.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
* Fri Jul 21 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
- 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
   100
* Tue Jul 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
- Bump to 2.1.3.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
* Wed Jan 04 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
- 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
   104
  dir in Makefiles.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
* Tue Jan 03 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
- Bump to 2.1.2.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
* Mon Jul 25 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
- 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
   109
* Wed Jun 15 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
- Initial spec file checkin