16979
|
1 |
#
|
|
2 |
# spec file for package libdiscid
|
|
3 |
#
|
|
4 |
# Copyright (c) 2009 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 |
#
|
|
8 |
%define owner wangke
|
|
9 |
# Bugdb: http://bugs.musicbrainz.org/ticket/
|
|
10 |
#
|
|
11 |
|
|
12 |
%define OSR 13114:0.2.2
|
|
13 |
|
|
14 |
Name: libdiscid
|
|
15 |
License: LGPL v2.1, Public Domain
|
|
16 |
Group: System Environment/Libraries
|
|
17 |
Version: 0.2.2
|
|
18 |
Release: 1
|
|
19 |
Distribution: Java Desktop System
|
17893
|
20 |
Vendor: musicbrainz.org/doc/libdiscid
|
16979
|
21 |
Summary: Library for creating MusicBrainz DiscIDs
|
|
22 |
Source: http://users.musicbrainz.org/~matt/%{name}-%{version}.tar.gz
|
|
23 |
#owner:wangke date:2009-11-16 type:branding
|
|
24 |
Patch1: libdiscid-01-solaris.diff
|
|
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
26 |
Docdir: %{_defaultdocdir}/%{name}
|
|
27 |
Autoreqprov: on
|
|
28 |
|
|
29 |
%description
|
|
30 |
libdiscid is a C library for creating MusicBrainz DiscIDs from audio
|
|
31 |
CDs. It reads a CD's table of contents (TOC) and generates an
|
|
32 |
identifier which can be used to lookup the CD at MusicBrainz.
|
|
33 |
Additionally, it provides a submission URL for adding the DiscID to
|
|
34 |
the database.
|
|
35 |
|
|
36 |
%package devel
|
|
37 |
Summary: %{summary} - development files
|
|
38 |
Group: Development/Libraries
|
|
39 |
Requires: %{name}
|
|
40 |
|
|
41 |
%prep
|
|
42 |
%setup -q
|
|
43 |
cp src/disc_linux.c src/disc_solaris.c
|
|
44 |
%patch1 -p1
|
|
45 |
|
|
46 |
%build
|
|
47 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
48 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
49 |
CPUS=1
|
|
50 |
fi
|
|
51 |
|
|
52 |
export CFLAGS="%optflags"
|
|
53 |
export LDFLAGS="%_ldflags"
|
|
54 |
|
|
55 |
libtoolize --copy --force
|
|
56 |
aclocal
|
|
57 |
autoconf -f
|
|
58 |
autoheader
|
|
59 |
automake -a -f
|
|
60 |
./configure --prefix=%{_prefix} \
|
|
61 |
--bindir=%{_bindir} \
|
|
62 |
--libdir=%{_libdir} \
|
|
63 |
--includedir=%{_includedir} \
|
|
64 |
--mandir=%{_mandir} \
|
|
65 |
--infodir=%{_infodir} \
|
|
66 |
--disable-static \
|
|
67 |
--enable-shared \
|
|
68 |
--disable-debug
|
|
69 |
|
|
70 |
make
|
|
71 |
|
|
72 |
%install
|
|
73 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
74 |
|
|
75 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
76 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
77 |
|
|
78 |
%clean
|
|
79 |
rm -rf $RPM_BUILD_ROOT
|
|
80 |
|
|
81 |
%changelog
|
|
82 |
* Mon Nov 16 2009 - [email protected]
|
|
83 |
- Initial spec file
|