]> git.pld-linux.org Git - packages/faad2.git/blob - faad2.spec
- added new macros [BR: rpmbuild(macros) >= 1.125]
[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:        3
10 License:        GPL
11 Group:          Libraries
12 Source0:        http://faac.sourceforge.net/files/%{name}-%{version}.tar.gz
13 # Source0-md5:  5a20a6268484dea0e080df47f64b9075
14 Patch0:         %{name}-libsndfile.patch
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 %patch0 -p1
73
74 %build
75 rm -f missing
76 %{__libtoolize}
77 %{__aclocal}
78 %{__autoconf}
79 %{__automake}
80 %configure
81 %{__make}
82
83 %if 0%{!?_without_xmms:1}
84 cd plugins/xmms
85 %{__cc} -shared -fPIC -o libaac-XMMS.so aac-XMMS.c \
86         `xmms-config --cflags --libs` \
87         -I../../include \
88         -L../../libfaad/.libs -lfaad -lid3 -lz
89 %endif
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %if 0%{!?_without_xmms:1}
98 install -d $RPM_BUILD_ROOT%{xmms_input_plugindir}
99 install plugins/xmms/libaac-XMMS.so $RPM_BUILD_ROOT%{xmms_input_plugindir}
100 %endif
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README TODO
111 %attr(755,root,root) %{_bindir}/*
112 %attr(755,root,root) %{_libdir}/lib*.so.*.*
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/lib*.so
117 %{_libdir}/lib*.la
118 %{_includedir}/*.h
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/lib*.a
123
124 %if 0%{!?_without_xmms:1}
125 %files -n xmms-input-faad2
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{xmms_input_plugindir}/*.so
128 %endif
This page took 0.057826 seconds and 4 git commands to generate.