base-specs/flac.spec
author dcarbery
Tue, 31 Jul 2007 06:57:09 +0000
changeset 10232 90e433aae3b0
parent 10231 f930443c6ce1
child 10252 2d443123d319
permissions -rw-r--r--
Unbump to 1.1.4. Accidentally committed 1.2.0 but patches need work. Brian Cameron emailed about these.
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
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
License:      Xiph
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Group:        Application/Devel
10232
90e433aae3b0 Unbump to 1.1.4. Accidentally committed 1.2.0 but patches need work. Brian Cameron emailed about these.
dcarbery
parents: 10231
diff changeset
    14
Version:      1.1.4
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Release:      2
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
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Source:       http://easynews.dl.sourceforge.net/sourceforge/%{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
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
    22
#owner:sh162551 date:2007-06-29 type:bug bugzilla:1723295 bugster:6559191
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
    23
Patch2:       flac-02-c++.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
URL:          http://flac.sourceforge.net/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Docdir:       %{_docdir}/%{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Prereq:       /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
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
    33
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
    34
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
    35
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
    36
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
    37
devices) just like you would an MP3 file.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
Summary:	flac development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
Group:		Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
Requires:	%{name} = %{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
flac development files.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
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
    50
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%patch1 -p1
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
    52
%patch2 -p1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
  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
    62
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    67
export CFLAGS="%{optflags}"
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    68
export CXXFLAGS="%{?cxx_optflags}"
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    69
export LDFLAGS="%{?_ldflags}"
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
    70
aclocal $ACLOCAL_FLAGS -I ./m4
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    71
libtoolize --force --copy
9748
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
    72
autoheader
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
    73
automake -a -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
autoconf
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    75
./configure --prefix=%{_prefix}		\
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    76
	    --bindir=%{_bindir}		\
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    77
	    --libdir=%{_libdir}		\
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
            --sysconfdir=%{_sysconfdir} \
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
    79
	    --disable-cpp               \
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    80
	    %{?sse_opt}			\
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
            --mandir=%{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
make -j $CPUS
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
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
make DESTDIR=$RPM_BUILD_ROOT install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
#Clean up unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
rm $RPM_BUILD_ROOT%{_libdir}/*.a
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    90
rm $RPM_BUILD_ROOT%{_libdir}/*.la
9397
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
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
rm -rf $RPM_BUILD_ROOT
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
%post -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%postun -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%{_datadir}/doc/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%{_datadir}/man/man1/flac*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%{_datadir}/man/man1/metaflac*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%attr(755,root,root) %{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%attr(755,root,root) %{_libdir}/libFLAC.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%attr(755,root,root) %{_libdir}/libFLAC++.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%attr(755,root,root) %{_libdir}/libOggFLAC.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%attr(755,root,root) %{_libdir}/libOggFLAC++.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%{_datadir}/aclocal/*.m4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%changelog
10141
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
   115
* Fri Jun 29 2007 - [email protected]
2c74c42c1601 2007-06-29 Irene Huang <[email protected]>
sh162551
parents: 9748
diff changeset
   116
- add patch 02-c++.diff, add configuration option --disable-cpp
9748
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
   117
* Tue Apr 17 2007 - [email protected]
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
   118
- Add autoheader call since the patch now modifies configure.ac and
db4d8edd82de 2007-04-17 Brian Cameron <[email protected]>
yippi
parents: 9576
diff changeset
   119
  adds FLAC_INLINE.
9576
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   120
* Thu Mar 15 2007 - [email protected]
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   121
- add some configure options and set environment variables to support
8b6438adb524 2007-03-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   122
  building the same spec for multiple ISAs
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
* Thu Feb 15 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
- Bump to 1.1.4.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
* Thu Nov 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
- Bump to 1.1.3.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
* Fri Aug 12 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
- Add patch flac-01-forte.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
* Tue Aug 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
- Initial spec file checkin