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