base-specs/flac.spec
author yippi
Fri, 07 Nov 2008 22:24:49 +0000
changeset 14571 a943a025a41e
parent 11862 da904ba6d9af
child 15146 e4ea4d82c826
permissions -rw-r--r--
2008-11-06 Brian Cameron <[email protected]> * copyright/SUNWgnome-audio.copyright, copyright/SUNWgnome-media.copyright, copyright/SUNWliboil.copyright: Minor corrections. * base-specs/totem-pl-parser.spec, base-specs/audiofile.spec, base-specs/gdm.spec, base-specs/gst-plugins-base.spec, base-specs/rhythmbox.spec, base-specs/esound.spec, base-specs/dasher.spec, base-specs/speex.spec, base-specs/vte.spec, base-specs/gnome-audio.spec, base-specs/flac.spec, base-specs/dbus-glib.spec, base-specs/libtheora.spec, base-specs/gnome-terminal.spec, base-specs/liboil.spec, base-specs/libmusicbrainz.spec, base-specs/totem.spec, base-specs/dbus.spec, base-specs/sound-juicer.spec, base-specs/dbus-python.spec, base-specs/gst.spec, base-specs/gst-plugins-good.spec, base-specs/libvorbis.spec, base-specs/libcroco.spec, base-specs/libogg.spec, base-specs/gnome-media.spec: Update License information.
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 flac
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) 2003 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
9748
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
     9
# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=13478&atid=313478&aid=
9397
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:         flac
14571
a943a025a41e 2008-11-06 Brian Cameron <[email protected]>
yippi
parents: 11862
diff changeset
    12
License:      Xiph.org BSD-style, GPL v2, LGPL v2.1, FDL v1.2
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Group:        Application/Devel
10512
b55097388a51 2007-09-18 Damien Carbery <[email protected]>
dcarbery
parents: 10256
diff changeset
    14
Version:      1.2.1
10252
2d443123d319 2007-08-01 Brian Cameron <[email protected]>
yippi
parents: 10232
diff changeset
    15
Release:      3
9397
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:      An Open Source Lossless Audio Codec
11122
a56928b8a1ec 2007-11-05 Brian Cameron <[email protected]>
yippi
parents: 10512
diff changeset
    19
Source:       http://downloads.us.xiph.org/releases/%{name}/%{name}-%{version}.tar.gz
9748
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
    20
#owner:yippi date:2005-08-12 type:bug bugid:1701960
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Patch1:       flac-01-forte.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
URL:          http://flac.sourceforge.net/
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:       %{_docdir}/%{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
Prereq:       /sbin/ldconfig
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
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
FLAC is similar to MP3, but lossless, meaning that audio is compressed 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
in FLAC without any loss in quality. This is similar to how Zip works, 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
except with FLAC you will get much better compression because it is 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
designed specifically for audio, and you can play back compressed FLAC 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
files in your favorite player (or your car or home stereo, see supported 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
devices) just like you would an MP3 file.
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
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
Summary:	flac development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
Group:		Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
Requires:	%{name} = %{version}
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
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
flac development files.
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
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
perl -pi -e 's/^M$//' src/share/replaygain_analysis/replaygain_analysis.c
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
  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
    59
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    64
export CFLAGS="%{optflags}"
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    65
export CXXFLAGS="%{?cxx_optflags}"
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    66
export LDFLAGS="%{?_ldflags}"
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
    67
aclocal $ACLOCAL_FLAGS -I ./m4
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    68
libtoolize --force --copy
9748
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
    69
autoheader
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
    70
automake -a -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
autoconf
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    72
./configure --prefix=%{_prefix}		\
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    73
	    --bindir=%{_bindir}		\
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    74
	    --libdir=%{_libdir}		\
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
            --sysconfdir=%{_sysconfdir} \
11861
de7b7d94b309 2008-03-14 Irene Huang <[email protected]>
sh162551
parents: 11122
diff changeset
    76
	    --disable-cpplibs		\
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    77
	    %{?sse_opt}			\
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
            --mandir=%{_mandir}
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
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
make DESTDIR=$RPM_BUILD_ROOT install
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
#Clean up unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
rm $RPM_BUILD_ROOT%{_libdir}/*.a
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    87
rm $RPM_BUILD_ROOT%{_libdir}/*.la
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%post -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%postun -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%{_datadir}/doc/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%{_datadir}/man/man1/flac*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%{_datadir}/man/man1/metaflac*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%attr(755,root,root) %{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%attr(755,root,root) %{_libdir}/libFLAC.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%attr(755,root,root) %{_libdir}/libFLAC++.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%attr(755,root,root) %{_libdir}/libOggFLAC.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%attr(755,root,root) %{_libdir}/libOggFLAC++.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%{_datadir}/aclocal/*.m4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%changelog
11862
da904ba6d9af 2008-03-14 Irene Huang <[email protected]>
sh162551
parents: 11861
diff changeset
   112
* Fri Mar 14 2008 - [email protected]
da904ba6d9af 2008-03-14 Irene Huang <[email protected]>
sh162551
parents: 11861
diff changeset
   113
- change --disable-cplusplus to --disable-cpplibs
11122
a56928b8a1ec 2007-11-05 Brian Cameron <[email protected]>
yippi
parents: 10512
diff changeset
   114
* Mon Nov 05 2007 - [email protected]
a56928b8a1ec 2007-11-05 Brian Cameron <[email protected]>
yippi
parents: 10512
diff changeset
   115
- Fix Source URL.
10512
b55097388a51 2007-09-18 Damien Carbery <[email protected]>
dcarbery
parents: 10256
diff changeset
   116
* Tue Sep 18 2007 - [email protected]
b55097388a51 2007-09-18 Damien Carbery <[email protected]>
dcarbery
parents: 10256
diff changeset
   117
- Bump to 1.2.1. Change --disable-cpp option to --disable-cplusplus as
b55097388a51 2007-09-18 Damien Carbery <[email protected]>
dcarbery
parents: 10256
diff changeset
   118
  configure.in has been changed. Remove upstream patches 02-c++ and
b55097388a51 2007-09-18 Damien Carbery <[email protected]>
dcarbery
parents: 10256
diff changeset
   119
  03-ogg-build-fix.
10256
b9893e7cb878 2007-08-02 Damien Carbery <[email protected]>
dcarbery
parents: 10252
diff changeset
   120
* Thu Aug 02 2007 - [email protected]
b9893e7cb878 2007-08-02 Damien Carbery <[email protected]>
dcarbery
parents: 10252
diff changeset
   121
- Add upstream patch, 03-ogg-build-fix, to fix build error.
10252
2d443123d319 2007-08-01 Brian Cameron <[email protected]>
yippi
parents: 10232
diff changeset
   122
* Tue Jul 31 2007 - [email protected]
2d443123d319 2007-08-01 Brian Cameron <[email protected]>
yippi
parents: 10232
diff changeset
   123
- Bump to 1.2.0.
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
   124
* Fri Jun 29 2007 - [email protected]
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
   125
- add patch 02-c++.diff, add configuration option --disable-cpp
9748
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
   126
* Tue Apr 17 2007 - [email protected]
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
   127
- Add autoheader call since the patch now modifies configure.ac and
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
   128
  adds FLAC_INLINE.
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   129
* Thu Mar 15 2007 - [email protected]
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   130
- add some configure options and set environment variables to support
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   131
  building the same spec for multiple ISAs
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
* Thu Feb 15 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
- Bump to 1.1.4.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
* Thu Nov 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
- Bump to 1.1.3.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
* Fri Aug 12 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
- Add patch flac-01-forte.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
* Tue Aug 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
- Initial spec file checkin