author | yippi |
Thu, 26 Aug 2010 21:13:07 +0000 | |
changeset 20026 | 2da80049f7bb |
parent 19973 | f05dadadf325 |
child 20052 | 93904e5bcdd5 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package flac |
|
3 |
# |
|
19973 | 4 |
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner yippi |
9748 | 9 |
# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=13478&atid=313478&aid= |
9397 | 10 |
# |
16425 | 11 |
|
12 |
%define OSR 4199:1.1.2 |
|
13 |
||
9397 | 14 |
Name: flac |
20026 | 15 |
License: Xiph.org BSD-style, binaries & media player plugins also use GPL v2, LGPL v2 & v2.1, documentation uses FDL v1.2 |
16282 | 16 |
Group: Libraries/Multimedia |
10512 | 17 |
Version: 1.2.1 |
10252 | 18 |
Release: 3 |
9397 | 19 |
Distribution: Java Desktop System |
17864 | 20 |
Vendor: Sourceforge |
9397 | 21 |
Summary: An Open Source Lossless Audio Codec |
11122 | 22 |
Source: http://downloads.us.xiph.org/releases/%{name}/%{name}-%{version}.tar.gz |
9748 | 23 |
#owner:yippi date:2005-08-12 type:bug bugid:1701960 |
9397 | 24 |
Patch1: flac-01-forte.diff |
15241
a177e4c44772
* patches/gqview-02-manpage.diff : Fix ARC Comment typo
mattman
parents:
15175
diff
changeset
|
25 |
#owner:mattman date:2009-02-26 type:branding |
a177e4c44772
* patches/gqview-02-manpage.diff : Fix ARC Comment typo
mattman
parents:
15175
diff
changeset
|
26 |
Patch2: flac-02-manpages.diff |
9397 | 27 |
URL: http://flac.sourceforge.net/ |
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
29 |
Docdir: %{_docdir}/%{name} |
|
30 |
Autoreqprov: on |
|
31 |
Prereq: /sbin/ldconfig |
|
32 |
||
33 |
%description |
|
34 |
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, |
|
35 |
FLAC is similar to MP3, but lossless, meaning that audio is compressed |
|
36 |
in FLAC without any loss in quality. This is similar to how Zip works, |
|
37 |
except with FLAC you will get much better compression because it is |
|
38 |
designed specifically for audio, and you can play back compressed FLAC |
|
39 |
files in your favorite player (or your car or home stereo, see supported |
|
40 |
devices) just like you would an MP3 file. |
|
41 |
||
42 |
%package devel |
|
16282 | 43 |
Summary: flac development files |
44 |
Group: Development/Libraries |
|
45 |
Requires: %{name} = %{version} |
|
9397 | 46 |
|
47 |
%description devel |
|
48 |
flac development files. |
|
49 |
||
50 |
%prep |
|
51 |
%setup -q |
|
52 |
perl -pi -e 's/^M$//' src/share/replaygain_analysis/replaygain_analysis.c |
|
53 |
%ifos solaris |
|
54 |
%patch1 -p1 |
|
55 |
%endif |
|
15241
a177e4c44772
* patches/gqview-02-manpage.diff : Fix ARC Comment typo
mattman
parents:
15175
diff
changeset
|
56 |
%patch2 -p1 |
9397 | 57 |
|
58 |
%build |
|
59 |
%ifos linux |
|
60 |
if [ -x /usr/bin/getconf ]; then |
|
61 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
62 |
fi |
|
63 |
%else |
|
64 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
65 |
%endif |
|
66 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
67 |
CPUS=1 |
|
68 |
fi |
|
69 |
||
9576 | 70 |
export CFLAGS="%{optflags}" |
71 |
export CXXFLAGS="%{?cxx_optflags}" |
|
15175 | 72 |
export LDFLAGS="%{?_ldflags}" |
10141 | 73 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
9576 | 74 |
libtoolize --force --copy |
9748 | 75 |
autoheader |
10141 | 76 |
automake -a -c -f |
9397 | 77 |
autoconf |
16500 | 78 |
|
79 |
%if %build_cpp |
|
80 |
ENABLE_CPPLIBS=--enable-cpplibs |
|
81 |
%else |
|
82 |
ENABLE_CPPLIBS=--disable-cpplibs |
|
83 |
%endif |
|
84 |
||
9576 | 85 |
./configure --prefix=%{_prefix} \ |
86 |
--bindir=%{_bindir} \ |
|
87 |
--libdir=%{_libdir} \ |
|
9397 | 88 |
--sysconfdir=%{_sysconfdir} \ |
16500 | 89 |
$ENABLE_CPPLIBS \ |
9397 | 90 |
--mandir=%{_mandir} |
91 |
||
92 |
make -j $CPUS |
|
93 |
||
94 |
%install |
|
95 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
96 |
||
97 |
#Clean up unpackaged files |
|
98 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
9576 | 99 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
9397 | 100 |
|
101 |
%clean |
|
102 |
rm -rf $RPM_BUILD_ROOT |
|
103 |
||
104 |
%post -p /sbin/ldconfig |
|
105 |
%postun -p /sbin/ldconfig |
|
106 |
||
107 |
%files |
|
108 |
%defattr(-,root,root) |
|
109 |
%{_datadir}/doc/* |
|
110 |
%{_datadir}/man/man1/flac* |
|
111 |
%{_datadir}/man/man1/metaflac* |
|
112 |
%attr(755,root,root) %{_bindir}/* |
|
113 |
%attr(755,root,root) %{_libdir}/libFLAC.so* |
|
114 |
%attr(755,root,root) %{_libdir}/libFLAC++.so* |
|
115 |
%attr(755,root,root) %{_libdir}/libOggFLAC.so* |
|
116 |
%attr(755,root,root) %{_libdir}/libOggFLAC++.so* |
|
117 |
||
118 |
%files devel |
|
119 |
%defattr(-,root,root) |
|
120 |
%{_includedir}/* |
|
121 |
%{_datadir}/aclocal/*.m4 |
|
122 |
||
123 |
%changelog |
|
15241
a177e4c44772
* patches/gqview-02-manpage.diff : Fix ARC Comment typo
mattman
parents:
15175
diff
changeset
|
124 |
* Thu Feb 26 2009 - [email protected] |
a177e4c44772
* patches/gqview-02-manpage.diff : Fix ARC Comment typo
mattman
parents:
15175
diff
changeset
|
125 |
- Add manpages patch for Attributes and ARC Comment |
15175 | 126 |
* Thu Feb 19 2009 - [email protected] |
127 |
- Remove patch flac-02-map.diff. Got feedback from the person who submitted |
|
128 |
the bug that this didn't resolve the issue. |
|
15146 | 129 |
* Wed Feb 18 2009 - [email protected] |
130 |
- Add patch flac-02-map.diff and add "-Wl,-Mmap.remove_all to LDFLAGS, so that |
|
131 |
FLAC builds without HWCAP enabled. This fixes bug #6653080. |
|
11862 | 132 |
* Fri Mar 14 2008 - [email protected] |
133 |
- change --disable-cplusplus to --disable-cpplibs |
|
11122 | 134 |
* Mon Nov 05 2007 - [email protected] |
135 |
- Fix Source URL. |
|
10512 | 136 |
* Tue Sep 18 2007 - [email protected] |
137 |
- Bump to 1.2.1. Change --disable-cpp option to --disable-cplusplus as |
|
138 |
configure.in has been changed. Remove upstream patches 02-c++ and |
|
139 |
03-ogg-build-fix. |
|
10256 | 140 |
* Thu Aug 02 2007 - [email protected] |
141 |
- Add upstream patch, 03-ogg-build-fix, to fix build error. |
|
10252 | 142 |
* Tue Jul 31 2007 - [email protected] |
143 |
- Bump to 1.2.0. |
|
10141 | 144 |
* Fri Jun 29 2007 - [email protected] |
145 |
- add patch 02-c++.diff, add configuration option --disable-cpp |
|
9748 | 146 |
* Tue Apr 17 2007 - [email protected] |
147 |
- Add autoheader call since the patch now modifies configure.ac and |
|
148 |
adds FLAC_INLINE. |
|
9576 | 149 |
* Thu Mar 15 2007 - [email protected] |
150 |
- add some configure options and set environment variables to support |
|
151 |
building the same spec for multiple ISAs |
|
9397 | 152 |
* Thu Feb 15 2006 - [email protected] |
153 |
- Bump to 1.1.4. |
|
154 |
* Thu Nov 30 2006 - [email protected] |
|
155 |
- Bump to 1.1.3. |
|
156 |
* Fri Aug 12 2005 - [email protected] |
|
157 |
- Add patch flac-01-forte.diff |
|
158 |
* Tue Aug 02 2005 - [email protected] |
|
159 |
- Initial spec file checkin |