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