author | hh150184 |
Tue, 24 Jan 2006 11:56:37 +0000 | |
branch | gnome-2-12 |
changeset 19207 | b59a653a3329 |
parent 5565 | b1beceba7539 |
child 8530 | ef62fbe8c956 |
permissions | -rw-r--r-- |
5518 | 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 |
Name: flac |
|
9 |
License: Xiph |
|
10 |
Group: Application/Devel |
|
11 |
Version: 1.1.2 |
|
5521
41f732d553dc
2005-08-12 Balamurali Viswanathan <[email protected]>
bviswa
parents:
5518
diff
changeset
|
12 |
Release: 2 |
5518 | 13 |
Distribution: Java Desktop System |
14 |
Vendor: Sun Microsystems, Inc. |
|
15 |
Summary: An Open Source Lossless Audio Codec |
|
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5521
diff
changeset
|
16 |
Source: http://easynews.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz |
5521
41f732d553dc
2005-08-12 Balamurali Viswanathan <[email protected]>
bviswa
parents:
5518
diff
changeset
|
17 |
Patch1: flac-01-forte.diff |
5518 | 18 |
URL: http://flac.sourceforge.net/ |
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
20 |
Docdir: %{_docdir}/%{name} |
|
21 |
Autoreqprov: on |
|
22 |
Prereq: /sbin/ldconfig |
|
23 |
||
24 |
%description |
|
25 |
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, |
|
26 |
FLAC is similar to MP3, but lossless, meaning that audio is compressed |
|
27 |
in FLAC without any loss in quality. This is similar to how Zip works, |
|
28 |
except with FLAC you will get much better compression because it is |
|
29 |
designed specifically for audio, and you can play back compressed FLAC |
|
30 |
files in your favorite player (or your car or home stereo, see supported |
|
31 |
devices) just like you would an MP3 file. |
|
32 |
||
33 |
%package devel |
|
34 |
Summary: flac development files |
|
35 |
Group: Development/Libraries |
|
36 |
Requires: %{name} = %{version} |
|
37 |
||
38 |
%description devel |
|
39 |
flac development files. |
|
40 |
||
41 |
%prep |
|
42 |
%setup -q |
|
5521
41f732d553dc
2005-08-12 Balamurali Viswanathan <[email protected]>
bviswa
parents:
5518
diff
changeset
|
43 |
perl -pi -e 's/^M$//' src/share/replaygain_analysis/replaygain_analysis.c |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
44 |
%ifos solaris |
5521
41f732d553dc
2005-08-12 Balamurali Viswanathan <[email protected]>
bviswa
parents:
5518
diff
changeset
|
45 |
%patch1 -p1 |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
46 |
%endif |
5518 | 47 |
|
48 |
%build |
|
49 |
%ifos linux |
|
50 |
if [ -x /usr/bin/getconf ]; then |
|
51 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
52 |
fi |
|
53 |
%else |
|
54 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
55 |
%endif |
|
56 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
57 |
CPUS=1 |
|
58 |
fi |
|
59 |
||
5521
41f732d553dc
2005-08-12 Balamurali Viswanathan <[email protected]>
bviswa
parents:
5518
diff
changeset
|
60 |
autoconf |
5518 | 61 |
CFLAGS="$RPM_OPT_FLAGS" \ |
62 |
./configure --prefix=%{_prefix} \ |
|
63 |
--sysconfdir=%{_sysconfdir} \ |
|
64 |
--mandir=%{_mandir} |
|
65 |
||
66 |
make -j $CPUS |
|
67 |
||
68 |
%install |
|
69 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
70 |
||
71 |
#Clean up unpackaged files |
|
72 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
73 |
rm $RPM_BUILD_ROOT%{_libdir}/*la |
|
74 |
||
75 |
%clean |
|
76 |
rm -rf $RPM_BUILD_ROOT |
|
77 |
||
78 |
%post -p /sbin/ldconfig |
|
79 |
%postun -p /sbin/ldconfig |
|
80 |
||
81 |
%files |
|
82 |
%defattr(-,root,root) |
|
83 |
%{_datadir}/doc/* |
|
84 |
%{_datadir}/man/man1/flac* |
|
85 |
%{_datadir}/man/man1/metaflac* |
|
86 |
%attr(755,root,root) %{_bindir}/* |
|
87 |
%attr(755,root,root) %{_libdir}/libFLAC.so* |
|
88 |
%attr(755,root,root) %{_libdir}/libFLAC++.so* |
|
89 |
%attr(755,root,root) %{_libdir}/libOggFLAC.so* |
|
90 |
%attr(755,root,root) %{_libdir}/libOggFLAC++.so* |
|
91 |
||
92 |
%files devel |
|
93 |
%defattr(-,root,root) |
|
94 |
%{_includedir}/* |
|
95 |
%{_datadir}/aclocal/*.m4 |
|
96 |
||
97 |
%changelog |
|
5521
41f732d553dc
2005-08-12 Balamurali Viswanathan <[email protected]>
bviswa
parents:
5518
diff
changeset
|
98 |
* Fri Aug 12 2005 - [email protected] |
41f732d553dc
2005-08-12 Balamurali Viswanathan <[email protected]>
bviswa
parents:
5518
diff
changeset
|
99 |
- Add patch flac-01-forte.diff |
5518 | 100 |
* Tue Aug 02 2005 - [email protected] |
101 |
- Initial spec file checkin |