base-specs/libdiscid.spec
author chrisk
Wed, 21 Apr 2010 10:29:33 +0000
changeset 17893 36619080451b
parent 17881 1eaaaad29d9a
permissions -rw-r--r--
2010-04-21 Christian Kelly <[email protected]> * SUNWgnome-screensaver.spec, SUNWlibgee.spec, SUNWtgnome-tsoljdslabel.spec, SUNWgnome-ps-viewer.spec, SUNWGParted.spec, SUNWopensp.spec, base-specs/libdiscid.spec, base-specs/cairomm.spec, base-specs/libgksuui.spec, base-specs/babl.spec, base-specs/sqlite.spec, base-specs/ospm.spec, base-specs/brltty.spec, base-specs/j2re-integration.spec, base-specs/ttf-freefont.spec, base-specs/gksu.spec, base-specs/SunDesktopVersion.spec, base-specs/gnome-libs-java.spec, base-specs/docbook-style-dsssl.spec, base-specs/nimbus.spec, base-specs/ptlib.spec, base-specs/libpng10.spec, base-specs/eog-plugins.spec, base-specs/opal.spec, base-specs/libgksu.spec, base-specs/blueprint.spec, base-specs/thunderbird.spec, base-specs/pkg-config.spec, base-specs/nwam-manager.spec, base-specs/gedit-plugins.spec, base-specs/docbook-style-xsl.spec, base-specs/libexif-gtk.spec, SUNWpostrun.spec, SUNWtgnome-tsoljdsdevmgr.spec, SUNWtgnome-tsol-libs.spec, SUNWdesktop-cache.spec, SUNWgnome-dtlogin-integration.spec, closed/SUNWgnome-solaris-branding.spec, closed/SUNWflash-player-plugin.spec, SUNWgnome-base-libs.spec, SUNWjpg.spec, SUNWgnome-themes.spec, SUNWtgnome-tstripe.spec, SUNWtgnome-tsoljdsselmgr.spec, SUNWopenjade.spec, SUNWmyspell-dictionary-l10n.spec, SUNWespeak.spec: More OSR/Vendor updates.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16979
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     1
#
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     2
# spec file for package libdiscid
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     3
#
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     4
# Copyright (c) 2009 Sun Microsystems, Inc.
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     6
# package are under the same license as the package itself.
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     7
#
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     8
%define owner wangke
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     9
# Bugdb: http://bugs.musicbrainz.org/ticket/
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    10
#
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    11
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    12
%define OSR 13114:0.2.2
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    13
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    14
Name:         libdiscid
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    15
License:      LGPL v2.1, Public Domain
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    16
Group:        System Environment/Libraries
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    17
Version:      0.2.2
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    18
Release:      1
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    19
Distribution: Java Desktop System
17893
36619080451b 2010-04-21 Christian Kelly <[email protected]>
chrisk
parents: 17881
diff changeset
    20
Vendor:       musicbrainz.org/doc/libdiscid
16979
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    21
Summary:      Library for creating MusicBrainz DiscIDs
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    22
Source:       http://users.musicbrainz.org/~matt/%{name}-%{version}.tar.gz
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    23
#owner:wangke date:2009-11-16 type:branding
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    24
Patch1:       libdiscid-01-solaris.diff
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    25
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    26
Docdir:       %{_defaultdocdir}/%{name}
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    27
Autoreqprov:  on
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    28
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    29
%description
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    30
libdiscid is a C library for creating MusicBrainz DiscIDs from audio
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    31
CDs. It reads a CD's table of contents (TOC) and generates an
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    32
identifier which can be used to lookup the CD at MusicBrainz.
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    33
Additionally, it provides a submission URL for adding the DiscID to
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    34
the database.
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    35
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    36
%package devel
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    37
Summary:  %{summary} - development files
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    38
Group:    Development/Libraries
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    39
Requires: %{name}
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    40
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    41
%prep
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    42
%setup -q
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    43
cp src/disc_linux.c src/disc_solaris.c
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    44
%patch1 -p1
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    45
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    46
%build
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    47
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    48
if test "x$CPUS" = "x" -o $CPUS = 0; then
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    49
     CPUS=1
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    50
fi
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    51
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    52
export CFLAGS="%optflags"
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    53
export LDFLAGS="%_ldflags"
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    54
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    55
libtoolize --copy --force
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    56
aclocal
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    57
autoconf -f
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    58
autoheader
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    59
automake -a -f
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    60
./configure --prefix=%{_prefix}                 \
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    61
            --bindir=%{_bindir}                 \
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    62
            --libdir=%{_libdir}                 \
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    63
            --includedir=%{_includedir}         \
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    64
            --mandir=%{_mandir}                 \
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    65
            --infodir=%{_infodir}               \
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    66
            --disable-static                    \
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    67
            --enable-shared                     \
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    68
            --disable-debug
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    69
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    70
make
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    71
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    72
%install
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    73
make install DESTDIR=$RPM_BUILD_ROOT
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    74
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    75
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    76
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    77
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    78
%clean
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    79
rm -rf $RPM_BUILD_ROOT
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    80
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    81
%changelog
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    82
* Mon Nov 16 2009 - [email protected]
3391ec9443ec 2009-11-18 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    83
- Initial spec file