]> git.pld-linux.org Git - SPECS.git/blob - faad2-plugins.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / faad2-plugins.spec
1 #
2 # Conditional build:
3 %bcond_with     mpeg4ip         # MPEG4IP plugin
4 %bcond_without  xmms            # XMMS plugin
5
6 Summary:        Freeware Advanced Audio Decoder 2 plugins
7 Summary(pl.UTF-8):      Wtyczki kodeka Freeware Advanced Audio Decoder 2
8 Name:           faad2-plugins
9 Version:        2.10.1
10 Release:        2
11 License:        GPL v2+
12 Group:          Applications/Sound
13 #Source0:       http://downloads.sourceforge.net/faac/%{name}-%{version}.tar.gz
14 #Source0Download: https://github.com/knik0/faad2/releases
15 Source0:        https://github.com/knik0/faad2/archive/%{version}/faad2-%{version}.tar.gz
16 # Source0-md5:  62a0427c6ff3a273aa720e27da166758
17 Patch0:         faad2-make.patch
18 Patch1:         faad2-mpeg4ip.patch
19 Patch3:         faad2-backward_compat.patch
20 Patch4:         faad2-mp4ff.patch
21 Patch5:         faad2-mp4v2.patch
22 URL:            https://www.audiocoding.com/
23 %{?with_mpeg4ip:BuildRequires:  SDL-devel}
24 BuildRequires:  autoconf >= 2.50
25 BuildRequires:  automake
26 %{?with_xmms:BuildRequires:     id3lib-devel >= 3.8.2}
27 BuildRequires:  libtool >= 2:1.4d-3
28 %{?with_xmms:BuildRequires:     mp4ff-devel}
29 %if %{with mpeg4ip}
30 BuildRequires:  mp4v2-devel
31 BuildRequires:  mpeg4ip-devel >= 1:1.6
32 %endif
33 BuildRequires:  rpmbuild(macros) >= 1.721
34 %{?with_xmms:BuildRequires:     xmms-devel}
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder,
39 completely written from scratch.
40
41 %description -l pl.UTF-8
42 FAAD 2 to napisany całkowicie od początku dekoder MPEG2 i MPEG-4
43 obsługujący profile LC, MAIN i LTP.
44
45 %package -n mpeg4ip-plugin-faad2
46 Summary:        MPEG4IP plugin for AAC files
47 Summary(pl.UTF-8):      Wtyczka MPEG4IP do plików AAC
48 Group:          Applications/Sound
49 Requires:       faad2-libs >= %{version}
50 Requires:       mpeg4ip
51
52 %description -n mpeg4ip-plugin-faad2
53 MPEG4IP plugin for AAC files.
54
55 %description -n mpeg4ip-plugin-faad2 -l pl.UTF-8
56 Wtyczka MPEG4IP do plików AAC.
57
58 %package -n xmms-input-faad2
59 Summary:        XMMS plugin for AAC files
60 Summary(pl.UTF-8):      Wtyczka XMMS do plików AAC
61 Group:          X11/Applications/Sound
62 Requires:       faad2-libs >= %{version}
63 Requires:       xmms
64
65 %description -n xmms-input-faad2
66 XMMS plugin for AAC files.
67
68 %description -n xmms-input-faad2 -l pl.UTF-8
69 Wtyczka XMMS do plików AAC.
70
71 %prep
72 %setup -q -n faad2-%{version}
73 %patch0 -p1
74 %patch1 -p1
75 %patch3 -p1
76 %patch4 -p1
77 %patch5 -p1
78
79 %build
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         --disable-static \
87         --with-xmms%{!?with_xmms:=no} \
88         --with-mpeg4ip%{!?with_mpeg4ip:=no}
89
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 %{__rm} $RPM_BUILD_ROOT%{_bindir}/faad
99 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfaad*
100 %{__rm} $RPM_BUILD_ROOT%{_includedir}/*.h
101 %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/faad2.pc
102 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/faad.1
103
104 %if %{with xmms}
105 %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
106 %endif
107 %if %{with mpeg4ip}
108 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mp4player_plugin/*.la
109 %endif
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %if %{with xmms}
115 %files -n xmms-input-faad2
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{xmms_input_plugindir}/libmp4.so
118 %endif
119
120 %if %{with mpeg4ip}
121 %files -n mpeg4ip-plugin-faad2
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/mp4player_plugin/faad2_plugin.so*
124 %endif
This page took 2.064902 seconds and 3 git commands to generate.