/[packages]/updates/1/faac/current/SPECS/faac.spec
ViewVC logotype

Contents of /updates/1/faac/current/SPECS/faac.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 145151 - (show annotations) (download)
Sun Sep 18 17:42:44 2011 UTC (12 years, 7 months ago) by colin
File size: 2478 byte(s)
Introduce subrel for update package
1 %define subrel 1
2 %define name faac
3 %define epoch 1
4 %define version 1.28
5 %define rel 3
6 %define release %mkrel %rel
7
8 %define major 0
9
10 %define libname %mklibname %name %major
11 %define develname %mklibname -d %name
12
13 Summary: Freeware Advanced Audio Encoder
14 Name: %{name}
15 Version: %{version}
16 Release: %{release}
17 Source0: http://prdownloads.sourceforge.net/faac/%{name}-%{version}.tar.bz2
18 Patch0: faac-1.28-external-libmp4v2.patch
19 Patch1: faac-1.26-format.string.patch
20 URL: http://www.audiocoding.com
21 License: LGPLv2+
22 Group: Sound
23 BuildRequires: libsndfile-devel
24 BuildRequires: autoconf2.5
25 BuildRequires: dos2unix
26 #gw else the detection for libmp4v2 kicks in
27 BuildConflicts: %libname-devel < %epoch:%version-%release
28 BuildConflicts: %develname < %epoch:%version-%release
29 BuildRequires: libmp4v2-devel >= 2.0
30 Epoch: %epoch
31
32 %description
33 FAAC is an AAC encoder based on the ISO MPEG-4 reference code.
34
35 This package is in tainted repository, as the MPEG-4 format is covered by software patents.
36 %package -n %libname
37 Summary: Free Advanced Audio Encoder shared library
38 Group: System/Libraries
39
40 %description -n %libname
41 FAAC is an AAC encoder based on the ISO MPEG-4 reference code.
42
43 This package contains the shared library needed by programs based on
44 libfaac.
45
46 This package is in tainted repository, as the MPEG-4 format is covered by software patents.
47 %package -n %develname
48 Summary: Free Advanced Audio Encoder development files
49 Group: Development/C++
50 Requires: %libname = %epoch:%version
51 Provides: lib%name-devel = %epoch:%version-%release
52 Obsoletes: %mklibname -d %name 0
53
54 %description -n %develname
55 FAAC is an AAC encoder based on the ISO MPEG-4 reference code.
56
57 This package contains the needed files for compiling programs with
58 libfaac.
59
60 This package is in tainted repository, as the MPEG-4 format is covered by software patents.
61 %prep
62 %setup -q
63 %patch0 -p1 -b .mp4v2
64 %patch1 -p1
65 #dos2unix configure.in
66 aclocal
67 autoheader
68 libtoolize --automake
69 automake --add-missing --copy
70 WANT_AUTOCONF_2_5=1 autoconf
71
72 %build
73 %configure2_5x --with-mp4v2
74 %make
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 %makeinstall_std
79 # manual header installation
80 mkdir -p %buildroot/%_includedir
81 cp include/*h %buildroot/%_includedir
82
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87
88 %files
89 %defattr(-,root,root)
90 %doc README TODO ChangeLog
91 %_bindir/faac
92 %_mandir/man1/faac.1*
93
94 %files -n %libname
95 %defattr(-,root,root)
96 %_libdir/libfaac*so.%{major}*
97
98 %files -n %develname
99 %defattr(-,root,root)
100 %_libdir/*.so
101 %_libdir/*a
102 %_includedir/*
103

  ViewVC Help
Powered by ViewVC 1.1.30