]> git.pld-linux.org Git - packages/faad2.git/blob - faad2.spec
- Release 2.
[packages/faad2.git] / faad2.spec
1 #
2 # Conditional build:
3 # _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:        1.1
9 Release:        2
10 License:        GPL
11 Group:          Libraries
12 Source0:        http://faac.sourceforge.net/files/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-libsndfile.patch
14 URL:            http://www.audiocoding.com/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 %{!?_without_xmms:BuildRequires:        id3lib-devel >= 3.8.2 }
18 BuildRequires:  libsndfile-devel >= 1.0.4
19 BuildRequires:  libtool
20 %{!?_without_xmms:BuildRequires:        xmms-devel}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %if 0%{!?_without_xmms:1}
24 %define         _xmms_plugin_dir        %(xmms-config --input-plugin-dir)
25 %endif
26
27 %description
28 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder,
29 completely written from scratch.
30
31 %description -l pl
32 FAAD 2 to napisany ca³kowicie od pocz±tku dekoder MPEG2 i MPEG-4
33 obs³uguj±cy profile LC, MAIN i LTP.
34
35 %package devel
36 Summary:        Devel files for faad2
37 Summary(pl):    Pliki nag³ówkowe faad2
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}
40
41 %description devel
42 Devel files for faad2.
43
44 %description devel -l pl
45 Pliki nag³ówkowe faad2.
46
47 %package static
48 Summary:        Static faad2 library
49 Summary(pl):    Statyczna biblioteka faad2
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}
52
53 %description static
54 Static faad2 library.
55
56 %description static -l pl
57 Statyczna biblioteka faad2.
58
59 %package -n xmms-input-faad2
60 Summary:        XMMS plugin for AAC files
61 Summary(pl):    Wtyczka XMMS do plików AAC
62 Group:          X11/Applications/Sound
63 Requires:       %{name} = %{version}
64
65 %description -n xmms-input-faad2
66 XMMS plugin for AAC files.
67
68 %description -n xmms-input-faad2 -l pl
69 Wtyczka XMMS do plików AAC.
70
71 %prep
72 %setup -q -n %{name}
73 %patch0 -p1
74
75 %build
76 rm -f missing
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__automake}
81 %configure
82 %{__make}
83
84 %if 0%{!?_without_xmms:1}
85 cd plugins/xmms
86 %{__cc} -shared -fPIC -o libaac-XMMS.so aac-XMMS.c \
87         `xmms-config --cflags --libs` \
88         -I../../include \
89         -L../../libfaad/.libs -lfaad -lid3 -lz
90 %endif
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 %if 0%{!?_without_xmms:1}
99 install -d $RPM_BUILD_ROOT%{_xmms_plugin_dir}
100 install plugins/xmms/libaac-XMMS.so $RPM_BUILD_ROOT%{_xmms_plugin_dir}
101 %endif
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog NEWS README TODO
112 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/lib*.so
118 %{_libdir}/lib*.la
119 %{_includedir}/*.h
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/lib*.a
124
125 %if 0%{!?_without_xmms:1}
126 %files -n xmms-input-faad2
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_xmms_plugin_dir}/*.so
129 %endif
This page took 0.08107 seconds and 3 git commands to generate.