author | dcarbery |
Tue, 31 Jul 2007 06:57:09 +0000 | |
changeset 10232 | 90e433aae3b0 |
parent 10231 | f930443c6ce1 |
child 10252 | 2d443123d319 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package flac |
|
3 |
# |
|
4 |
# Copyright (c) 2003 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 |
# Owner: yippi |
|
9748 | 9 |
# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=13478&atid=313478&aid= |
9397 | 10 |
# |
11 |
Name: flac |
|
12 |
License: Xiph |
|
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 | 15 |
Release: 2 |
16 |
Distribution: Java Desktop System |
|
17 |
Vendor: Sun Microsystems, Inc. |
|
18 |
Summary: An Open Source Lossless Audio Codec |
|
19 |
Source: http://easynews.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz |
|
9748 | 20 |
#owner:yippi date:2005-08-12 type:bug bugid:1701960 |
9397 | 21 |
Patch1: flac-01-forte.diff |
10141 | 22 |
#owner:sh162551 date:2007-06-29 type:bug bugzilla:1723295 bugster:6559191 |
23 |
Patch2: flac-02-c++.diff |
|
9397 | 24 |
URL: http://flac.sourceforge.net/ |
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
26 |
Docdir: %{_docdir}/%{name} |
|
27 |
Autoreqprov: on |
|
28 |
Prereq: /sbin/ldconfig |
|
29 |
||
30 |
%description |
|
31 |
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, |
|
32 |
FLAC is similar to MP3, but lossless, meaning that audio is compressed |
|
33 |
in FLAC without any loss in quality. This is similar to how Zip works, |
|
34 |
except with FLAC you will get much better compression because it is |
|
35 |
designed specifically for audio, and you can play back compressed FLAC |
|
36 |
files in your favorite player (or your car or home stereo, see supported |
|
37 |
devices) just like you would an MP3 file. |
|
38 |
||
39 |
%package devel |
|
40 |
Summary: flac development files |
|
41 |
Group: Development/Libraries |
|
42 |
Requires: %{name} = %{version} |
|
43 |
||
44 |
%description devel |
|
45 |
flac development files. |
|
46 |
||
47 |
%prep |
|
48 |
%setup -q |
|
49 |
perl -pi -e 's/^M$//' src/share/replaygain_analysis/replaygain_analysis.c |
|
50 |
%ifos solaris |
|
51 |
%patch1 -p1 |
|
10141 | 52 |
%patch2 -p1 |
9397 | 53 |
%endif |
54 |
||
55 |
%build |
|
56 |
%ifos linux |
|
57 |
if [ -x /usr/bin/getconf ]; then |
|
58 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
59 |
fi |
|
60 |
%else |
|
61 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
62 |
%endif |
|
63 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
64 |
CPUS=1 |
|
65 |
fi |
|
66 |
||
9576 | 67 |
export CFLAGS="%{optflags}" |
68 |
export CXXFLAGS="%{?cxx_optflags}" |
|
69 |
export LDFLAGS="%{?_ldflags}" |
|
10141 | 70 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
9576 | 71 |
libtoolize --force --copy |
9748 | 72 |
autoheader |
10141 | 73 |
automake -a -c -f |
9397 | 74 |
autoconf |
9576 | 75 |
./configure --prefix=%{_prefix} \ |
76 |
--bindir=%{_bindir} \ |
|
77 |
--libdir=%{_libdir} \ |
|
9397 | 78 |
--sysconfdir=%{_sysconfdir} \ |
10141 | 79 |
--disable-cpp \ |
9576 | 80 |
%{?sse_opt} \ |
9397 | 81 |
--mandir=%{_mandir} |
82 |
||
83 |
make -j $CPUS |
|
84 |
||
85 |
%install |
|
86 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
87 |
||
88 |
#Clean up unpackaged files |
|
89 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
9576 | 90 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
9397 | 91 |
|
92 |
%clean |
|
93 |
rm -rf $RPM_BUILD_ROOT |
|
94 |
||
95 |
%post -p /sbin/ldconfig |
|
96 |
%postun -p /sbin/ldconfig |
|
97 |
||
98 |
%files |
|
99 |
%defattr(-,root,root) |
|
100 |
%{_datadir}/doc/* |
|
101 |
%{_datadir}/man/man1/flac* |
|
102 |
%{_datadir}/man/man1/metaflac* |
|
103 |
%attr(755,root,root) %{_bindir}/* |
|
104 |
%attr(755,root,root) %{_libdir}/libFLAC.so* |
|
105 |
%attr(755,root,root) %{_libdir}/libFLAC++.so* |
|
106 |
%attr(755,root,root) %{_libdir}/libOggFLAC.so* |
|
107 |
%attr(755,root,root) %{_libdir}/libOggFLAC++.so* |
|
108 |
||
109 |
%files devel |
|
110 |
%defattr(-,root,root) |
|
111 |
%{_includedir}/* |
|
112 |
%{_datadir}/aclocal/*.m4 |
|
113 |
||
114 |
%changelog |
|
10141 | 115 |
* Fri Jun 29 2007 - [email protected] |
116 |
- add patch 02-c++.diff, add configuration option --disable-cpp |
|
9748 | 117 |
* Tue Apr 17 2007 - [email protected] |
118 |
- Add autoheader call since the patch now modifies configure.ac and |
|
119 |
adds FLAC_INLINE. |
|
9576 | 120 |
* Thu Mar 15 2007 - [email protected] |
121 |
- add some configure options and set environment variables to support |
|
122 |
building the same spec for multiple ISAs |
|
9397 | 123 |
* Thu Feb 15 2006 - [email protected] |
124 |
- Bump to 1.1.4. |
|
125 |
* Thu Nov 30 2006 - [email protected] |
|
126 |
- Bump to 1.1.3. |
|
127 |
* Fri Aug 12 2005 - [email protected] |
|
128 |
- Add patch flac-01-forte.diff |
|
129 |
* Tue Aug 02 2005 - [email protected] |
|
130 |
- Initial spec file checkin |