libmusicbrainz.spec
author dermotm
Mon, 24 Jul 2006 12:30:39 +0000
branchgnome-2-10
changeset 19949 94f49bf19351
parent 19885 e41d7387277e
permissions -rw-r--r--
access control test #4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19613
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     1
#
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     2
# spec file for package libmusicbrainz
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     3
#
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19613
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
19613
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     6
# package are under the same license as the package itself.
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     7
#
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     8
Name:         libmusicbrainz
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     9
License:      LGPL
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    10
Group:        System Environment/Libraries
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    11
Version:      2.1.1
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    12
Release:      1
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19613
diff changeset
    13
Distribution: Java Desktop System
19613
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    14
Vendor:       Sun Microsystems, Inc.
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    15
Summary:      A software library for accessing MusicBrainz servers
19885
e41d7387277e More link updates
mattk
parents: 19884
diff changeset
    16
Source:		  ftp://ftp.musicbrainz.org/pub/musicbrainz/%{name}-%{version}.tar.gz
19613
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    17
URL:          http://www.musicbrainz.org
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    18
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    19
Docdir:       %{_defaultdocdir}/%{name}
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    20
Autoreqprov:  on
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    21
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    22
%description
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    23
The MusicBrainz client library allows applications to make metadata
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    24
lookup to a MusicBrainz server, generate signatures from WAV data and
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    25
create CD Index Disk ids from audio CD roms.
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    26
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    27
%package devel
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    28
Summary: Headers for developing programs that will use libmusicbrainz
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    29
Group:      Development/Libraries
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    30
Requires:   %{name}
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    31
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    32
%description   devel
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    33
This package contains the headers that programmers will need to develop
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    34
applications which will use libmusicbrainz.
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    35
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    36
%prep
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    37
%setup -q
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    38
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    39
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    40
%build
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    41
%ifos linux
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    42
if [ -x /usr/bin/getconf ]; then
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    43
  CPUS=`getconf _NPROCESSORS_ONLN`
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    44
fi
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    45
%else
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    46
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    47
%endif
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    48
if test "x$CPUS" = "x" -o $CPUS = 0; then
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    49
  CPUS=1
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    50
fi
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    51
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    52
CFLAGS="$RPM_OPT_FLAGS" \
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    53
  ./configure \
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    54
	--prefix=%{_prefix} \
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    55
	--sysconfdir=%{_sysconfdir} \
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    56
	--mandir=%{_mandir}
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    57
make -j $CPUS
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    58
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    59
%install
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    60
make -i install DESTDIR=$RPM_BUILD_ROOT
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    61
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    62
#Clean up unpackaged files
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    63
rm $RPM_BUILD_ROOT%{_libdir}/*.a
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    64
rm $RPM_BUILD_ROOT%{_libdir}/*la
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    65
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    66
%clean
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    67
rm -rf $RPM_BUILD_ROOT
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    68
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    69
%post -p /sbin/ldconfig
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    70
%postun -p /sbin/ldconfig
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    71
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    72
%files
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    73
%defattr (-, root, root)
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    74
%{_libdir}/*.so.*
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    75
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    76
%files devel
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    77
%defattr(-, root, root)
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    78
%{_includedir}/musicbrainz
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    79
%{_libdir}/*.so
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    80
%{_libdir}/pkgconfig/libmusicbrainz.pc
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    81
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    82
%changelog
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    83
* Mon Jul 25 2005 - [email protected]
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    84
- Change the name of the spec file to libmusicbrainz.spec
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    85
* Wed Jun 15 2005 - [email protected]
6f34d04f910a 2005-07-25 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    86
- Initial spec file checkin