]> git.pld-linux.org Git - packages/faad2.git/blob - faad2.spec
- updated to final 2.0, added make patch
[packages/faad2.git] / faad2.spec
1 #
2 # Conditional build:
3 %bcond_without  xmms    # without XMMS plugin
4 #
5 Summary:        Freeware Advanced Audio Decoder 2
6 Summary(pl):    Darmowy zaawansowany dekoder audio
7 Name:           faad2
8 Version:        2.0
9 Release:        2
10 License:        GPL
11 Group:          Libraries
12 Source0:        http://dl.sourceforge.net/faac/%{name}-%{version}.tar.gz
13 # Source0-md5:  1a6f79365f2934a4888b210ef47a3a07
14 Patch0:         %{name}-make.patch
15 URL:            http://www.audiocoding.com/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 %{?with_xmms:BuildRequires:     id3lib-devel >= 3.8.2}
19 BuildRequires:  libsndfile-devel >= 1.0.4
20 BuildRequires:  libtool >= 2:1.4d-3
21 %{?with_xmms:Buildrequires:     rpmbuild(macros) >= 1.125}
22 %{?with_xmms:BuildRequires:     xmms-devel}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder,
27 completely written from scratch.
28
29 %description -l pl
30 FAAD 2 to napisany ca³kowicie od pocz±tku dekoder MPEG2 i MPEG-4
31 obs³uguj±cy profile LC, MAIN i LTP.
32
33 %package devel
34 Summary:        Devel files for faad2
35 Summary(pl):    Pliki nag³ówkowe faad2
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}
38
39 %description devel
40 Devel files for faad2.
41
42 %description devel -l pl
43 Pliki nag³ówkowe faad2.
44
45 %package static
46 Summary:        Static faad2 library
47 Summary(pl):    Statyczna biblioteka faad2
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}
50
51 %description static
52 Static faad2 library.
53
54 %description static -l pl
55 Statyczna biblioteka faad2.
56
57 %package -n xmms-input-faad2
58 Summary:        XMMS plugin for AAC files
59 Summary(pl):    Wtyczka XMMS do plików AAC
60 Group:          X11/Applications/Sound
61 Requires:       %{name} = %{version}
62 Requires:       xmms
63
64 %description -n xmms-input-faad2
65 XMMS plugin for AAC files.
66
67 %description -n xmms-input-faad2 -l pl
68 Wtyczka XMMS do plików AAC.
69
70 %prep
71 %setup -q -n %{name}
72 %patch0 -p1
73
74 %build
75 %{__libtoolize}
76 %{__aclocal}
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure \
81         --with-mp4v2 \
82         %{?with_xmms:--with-xmms}
83
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.{la,a}
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS ChangeLog NEWS README TODO
103 %attr(755,root,root) %{_bindir}/*
104 %attr(755,root,root) %{_libdir}/lib*.so.*.*
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/lib*.so
109 %{_libdir}/lib*.la
110 %{_includedir}/*.h
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/lib*.a
115
116 %if %{with xmms}
117 %files -n xmms-input-faad2
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{xmms_input_plugindir}/*.so
120 %endif
This page took 0.067644 seconds and 4 git commands to generate.