]> git.pld-linux.org Git - packages/faad2.git/blob - faad2.spec
- Added --with-mp4v2
[packages/faad2.git] / faad2.spec
1 #
2 # Conditional build:
3 %bcond_without  xmms    # without XMMS plugin
4 #
5 %define         _rc rc3
6 Summary:        Freeware Advanced Audio Decoder 2
7 Summary(pl):    Darmowy zaawansowany dekoder audio
8 Name:           faad2
9 Version:        2.0
10 Release:        1
11 License:        GPL
12 Group:          Libraries
13 Source0:        http://dl.sourceforge.net/faac/%{name}-%{version}-%{_rc}.tar.gz
14 # Source0-md5:  0080076438655ed7facf1089a9805aff
15 URL:            http://www.audiocoding.com/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 %{!?_without_xmms:BuildRequires:        id3lib-devel >= 3.8.2 }
19 BuildRequires:  libsndfile-devel >= 1.0.4
20 BuildRequires:  libtool
21 %{!?_without_xmms:Buildrequires:        rpmbuild(macros) >= 1.125}
22 %{!?_without_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
73 %build
74 sh ./bootstrap
75 %configure \
76         --with-mp4v2
77
78 %{__make}
79
80 %if %{with xmms}
81 %{__make} -C plugins/xmms \
82         GTK_CONFIG=gtk-config
83 %endif
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 %if %{with xmms}
92 %{__make} \
93         -C plugins/xmms \
94         install \
95         GTK_CONFIG=gtk-config \
96         DESTDIR=$RPM_BUILD_ROOT
97 %endif
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog NEWS README TODO
108 %attr(755,root,root) %{_bindir}/*
109 %attr(755,root,root) %{_libdir}/lib*.so.*.*
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/lib*.so
114 %{_libdir}/lib*.la
115 %{_includedir}/*.h
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/lib*.a
120
121 %if %{with xmms}
122 %files -n xmms-input-faad2
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{xmms_input_plugindir}/*.so
125 %endif
This page took 0.041221 seconds and 4 git commands to generate.