source: projects/specs/trunk/nonfree/self-build-avidemux/avidemux-vl.spec @ 5297

Revision 5297, 13.8 KB checked in by munepi, 10 years ago (diff)

updated self-build-* packages: new x264 ABI and ffmpeg 0.9

Line 
1%define _pkgbuilddir %{_builddir}/%{name}_%{version}
2
3Name:           avidemux
4Version:        2.5.5
5Release:        1%{?_dist_release}
6Summary:        Graphical video editing and transcoding tool
7
8Group:          Applications/Multimedia
9License:        GPLv2+
10URL:            http://www.avidemux.org/
11Source0:        http://download.berlios.de/avidemux/avidemux_%{version}.tar.gz
12Source1:        %{name}-gtk.desktop
13Source2:        %{name}-qt.desktop
14# Patch0 obtained from avidemux-2.5.0-patches-1.tar.bz2:
15# http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/distfiles/avidemux-2.5.0-patches-1.tar.bz2
16Patch0:         2.5.0-coreImage-parallel-build.patch
17Patch1:         avidemux-2.5-pulseaudio-default.patch
18Patch2:         avidemux-2.4-qt4.patch
19# Prevents avidemux from creating the symlinks for .so files, which we do below
20Patch3:         avidemux-2.5.3-tmplinktarget.patch
21# libADM_xvidRateCtl.so and libADM_vidEnc_pluginOptions.so are supposed to be
22# build statically according to upstream... Let's get them installed instead
23Patch4:         avidemux-2.5.3-mpeg2enc.patch
24Patch5:         avidemux-2.5.3-pluginlibs.patch
25# Patch8 obtained from http://lists.rpmfusion.org/pipermail/rpmfusion-developers/2010-October/008645.html
26#Patch6:         avidemux_2.5.4-ffmpeg-aac.patch
27Patch6:         avidemux_2.5.5-ffmpeg_aac.patch
28Patch7:         avidemux-2.5.5-gcc46_tmp_fix.patch
29# Patch needed for version of x264 in F15/rawhide.
30# Use system libraries
31Patch8:         avidemux-2.5.4-libass.patch
32Patch9:         avidemux-2.5.4-liba52.patch
33Patch10:        avidemux-2.5.4-libmad.patch
34Patch11:        avidemux-2.5.4-libtwolame.patch
35Patch12:        avidemux-2.5.5_fix_lav_audio_encoder.patch
36# Patch for ABI change in x264 115.
37Patch13:        avidemux-2.5.5-x264_i_to_b_open_gop.patch
38# Uses a header file not found in the standard package
39#Patch16:        avidemux-2.5.4-mpeg2enc.patch
40
41## Vine customization patches
42Patch50:         avidemux-2.5.2-no-qt4-ui.patch
43
44BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
45
46Obsoletes:      %{name}-cli %{name}-gui %{name}-qt
47Obsoletes:      %{name}-devel <= 2.5.5
48
49# *-devel pacages provided by other self-build-* should only be listed
50# in self-build-%{name}.spec as PreReq.
51
52# Compiling
53BuildRequires:  cmake
54#BuildRequires:  gettext-devel
55BuildRequires:  gettext
56
57# Libraries
58BuildRequires:  nasm >= 0.98.38
59BuildRequires:  libxml2-devel >= 2.6.8
60BuildRequires:  fontconfig-devel
61#BuildRequires:  freetype-devel
62BuildRequires:  freetype2-devel
63BuildRequires:  js-devel
64BuildRequires:  libXv-devel
65BuildRequires:  libXmu-devel
66# Required by gtk: libXi-devel, libXext-devel, libX11-devel
67# Required by qt: libXt-devel, libXext-devel, libX11-devel
68BuildRequires:  libsamplerate-devel
69BuildRequires:  jack-audio-connection-kit-devel
70
71# Sound out
72BuildRequires:  alsa-lib-devel >= 1.0.3
73BuildRequires:  pulseaudio-libs-devel
74
75# Video out
76BuildRequires:  SDL-devel >= 1.2.7
77
78# Audio Codecs
79#BuildRequires:  a52dec-devel >= 0.7.4
80#BuildRequires:  faac-devel >= 1.24
81#BuildRequires:  faad2-devel >= 2.0
82#BuildRequires:  lame-devel >= 3.96.1
83#BuildRequires:  libmad-devel >= 0.15.1
84BuildRequires:  libogg-devel >= 1.1
85BuildRequires:  libvorbis-devel >= 1.0.1
86# BuildRequires:  self-build-a52dec >= 0.7.4
87# BuildRequires:  self-build-faac >= 1.24
88# BuildRequires:  self-build-faad2 >= 2.0
89# BuildRequires:  self-build-lame >= 3.96.1
90# BuildRequires:  self-build-libmad >= 0.15.1
91#BuildRequires:  libdca-devel
92# BuildRequires:  self-build-libdca
93
94# Video Codecs
95#BuildRequires:  xvidcore-devel >= 1.0.2
96#BuildRequires:  x264-devel
97#BuildRequires:  ffmpeg-devel
98# BuildRequires:  self-build-xvidcore >= 1.0.2
99# BuildRequires:  self-build-x264
100# BuildRequires:  self-build-ffmpeg
101
102# FIXME: aften not packaged, add BR when it is
103
104# Finally...
105BuildRequires:  desktop-file-utils
106
107#gtk
108BuildRequires:  gtk2-devel >= 2.8.0
109BuildRequires:  cairo-devel
110
111%if %{?with_qt_ui:1} %{!?with_qt_ui:0}
112BuildRequires:  qt4-devel >= 4.5.0-9
113BuildRequires:  qt4-designer
114%endif
115
116%description
117Avidemux is a free video editor designed for simple cutting, filtering and
118encoding tasks. It supports many file types, including AVI, DVD compatible
119MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
120using projects, job queue and powerful scripting capabilities.
121
122For compatability reasons, avidemux is a meta-package which installs the
123graphical, command line and plugin packages. If you want a smaller setup,
124you may selectively install one or more of the avidemux-* subpackages.
125
126
127%prep
128%__rm -rf $RPM_BUILD_ROOT
129
130%setup -q -n avidemux_%{version}
131
132# Remove unneeded external libraries
133rm -rf plugins/ADM_videoFilters/Ass/ADM_libAss
134rm -rf plugins/ADM_audioEncoders/twolame/ADM_libtwolame
135rm -rf plugins/ADM_audioDecoders/ADM_ad_mad/ADM_libMad
136rm -rf plugins/ADM_audioDecoders/ADM_ad_ac3/ADM_liba52
137#rm -rf plugins/ADM_videoEncoder/ADM_vidEnc_mpeg2enc/mpeg2enc
138
139# change hardcoded libdir paths
140%ifarch x86_64 ppc64
141%__sed -i.bak 's/startDir="lib";/startDir="lib64";/' avidemux/ADM_core/src/ADM_fileio.cpp
142%__sed -i.bak 's/startDir="lib";/startDir="lib64";/' avidemux/main.cpp
143%endif
144
145%patch0 -p1 -b .parallel
146%patch1 -p1 -b .pulse
147#%patch2 -p1 -b .qt4
148%patch3 -p1 -b .tmplinktarget
149%patch4 -p1 -b .mpeg2enc
150%patch5 -p1 -b .pluginlibs
151#%patch6 -p1 -b .ffmpegaac
152%patch7 -p1 -b .gcc46tmpfix
153%patch8 -p1 -b .libass
154%patch9 -p1 -b .liba52
155%patch10 -p1 -b .libmad
156%patch11 -p1 -b .libtwolame
157%patch12 -p1 -b .lavencode
158%patch13 -p1 -b .x264
159
160%{!?with_qt_ui:%patch50 -p1 -b .qt4}
161
162%build
163# Out of source build
164%__mkdir_p build && cd build
165%cmake -DAVIDEMUX_INSTALL_PREFIX=%{_prefix} \
166       -DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
167       -DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
168       -DUSE_SYSTEM_SPIDERMONKEY:BOOL=OFF \
169       ..
170%__make %{?_smp_mflags}
171# Create the temp link directory manuall since otherwise it happens too early
172%__mkdir_p %{_pkgbuilddir}/build/%{_lib}
173find %{_pkgbuilddir}/build/avidemux -name '*.so*' | \
174     xargs ln -sft %{_pkgbuilddir}/build/%{_lib}
175
176%__mkdir_p ../build_plugins && cd ../build_plugins
177%cmake -DAVIDEMUX_INSTALL_PREFIX="%{_pkgbuilddir}/build/" \
178       -DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
179       -DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
180       ../plugins
181%__make %{?_smp_mflags}
182
183
184%install
185%__rm -rf $RPM_BUILD_ROOT
186
187%__make -C build install DESTDIR=$RPM_BUILD_ROOT
188%__make -C build_plugins install DESTDIR=$RPM_BUILD_ROOT
189
190# Find and remove all la files
191find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
192
193# Remove Windows-only executables
194# Must check this for new Linux-relevant files upon new avidemux releases
195%__rm -rf %{buildroot}%{_datadir}/ADM_addons/avsfilter
196%__rm -rf %{buildroot}%{_datadir}/ADM_addons/
197
198# Install .desktop shortcuts
199desktop-file-install --vendor vine \
200    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
201    %{SOURCE1}
202
203%if %{?with_qt_ui:1} %{!?with_qt_ui:0}
204desktop-file-install --vendor vine \
205    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
206    %{SOURCE2}
207
208# Remove duplicated Qt translations
209rm -f %{buildroot}%{_datadir}/%{name}/i18n/qt_*.qm
210# find_lang.sh doesn't recognize this one, and there already is avidemux_sr.qm
211rm -f %{buildroot}%{_datadir}/%{name}/i18n/avidemux_sr@latin.qm
212
213# Qt-style translations
214%find_lang %{name} --with-qt --without-mo
215mv -f %{name}.lang %{name}-qt.lang
216%endif
217
218%find_lang %{name}
219
220%clean
221%__rm -rf $RPM_BUILD_ROOT
222
223%post -p /sbin/ldconfig
224%postun -p /sbin/ldconfig
225
226%files -f %{name}.lang
227%defattr(-,root,root,-)
228%doc AUTHORS COPYING README TODO
229%{_datadir}/%{name}/
230%{_datadir}/ADM_scripts/
231%{_libdir}/libADM*
232%{_libdir}/ADM_plugins/
233%{_bindir}/avidemux2_cli
234%{_bindir}/avidemux2_gtk
235%{_datadir}/applications/*gtk*.desktop
236%if %{?with_qt_ui:1} %{!?with_qt_ui:0}
237%{_bindir}/avidemux2_qt4
238%{_datadir}/applications/*qt*.desktop
239%endif
240
241
242%changelog
243* Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.5-1
244- new upstream release
245- Obsoletes: avidemux-cli avidemux-gui avidemux-qt avidemux-devel <= 2.5.5
246
247* Wed Jul 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-5
248- dropped BuildRequires: esound-devel
249
250* Sun May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.2-4
251- add Patch7 (avidemux-2.5.4-x264-X264_WEIGHTP_BLIND-fix.patch)
252
253* Sat Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-3
254- unapply avidemux-2.4-qt4.patch
255
256* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2
257- change release to sync with self-build-avidemux
258
259* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1
260- new upstream release
261
262* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.4-1
263- new upstream release
264  - update patches accordingly
265  - build with x264 >= 0.0.0-9.20090522
266- dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch
267
268* Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7
269- corrected release number
270
271* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5
272- changed to PreReq:  self-build-faad2 >= 2.0 from faad2-devel
273- changed to PreReq:  self-build-libmad >= 0.15.1 from libmad-devel
274
275* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4
276- change release to sync with self-build-avidemux
277
278* Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3
279- added avidemux-x264.patch from Gentoo
280
281* Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2
282- applied avidemux-2.4.3-alsa-device-default.patch
283
284* Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1
285- initial build based on RPM Fusion of Fedora package
286  - changed to BuildRequires: gettext from gettext-devel
287  - added BuildRequires: qt4-designer for gtk subpackage
288  - dropped avidemux-2.4.3-qt4.patch
289 
290* Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-5
291- Add CMake patch for PPC64
292- Update patches for 2.4.3
293- Remove outdated libmad patch (Nov. 2007)
294
295* Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-4
296- Add another patch to fix ppc64 build (pointer type), first
297  patch was for libmad
298
299* Fri Aug 22 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-3
300- Add patch to fix ppc64 build
301
302* Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-2
303- retag
304
305* Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-1
306- Update to 2.4.3
307
308* Tue Aug 12 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.2-3
309- ppc64 uint_32 fun
310
311* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 2.4.2-2
312- rebuild
313
314* Sat Jul 19 2008 Thorsten Leemhuis <s.adam at diffingo.com> - 2.4.2-1
315- Update to 2.4.2
316
317* Wed May 21 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-3.20080521svn
318- Disable --new-faad
319- 20080521 subversion snapshot
320
321* Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-2
322- Disable %%{?_smp_mflags}
323
324* Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-1
325- Update to 2.4.1
326- Don't list the bin files twice, revisited
327- Default to GTK frontend
328
329* Wed Feb 20 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-6.20080126svn
330- Make pulseaudio default for sound out
331- Don't list the bin files twice
332- Don't build with arts support
333
334* Fri Feb 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-5.20080126svn
335- Don't list the .desktop files twice (bz#1870)
336- Oops, we should have %%{svndate}svn in release tag!
337
338* Sat Feb 2 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-4
339- F-8/F-7 x86_64 does seem to need --with-newfaad
340
341* Fri Feb 1 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-3
342- Update to version 2.4 (20080126svn) and include fixes from devel branch
343
344* Mon Jan 14 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-2
345- Fix many copy/paste errors and desktop file's Exec field
346
347* Sun Jan 13 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-1
348- Update to 2.4 final
349- Split up desktop files and make them pass desktop-file-validate
350- Add structure to split into gtk and qt pacakges
351- Disable qt4 for now, doesn't compile
352
353* Sun Oct 7 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info>3- 2.3.0-4.3
354- move js-include to a place where it is honored
355
356* Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.2
357- Fix macro problem
358- Fix changelog date
359- Rebuild with faad, but don't pass --newfaad
360
361* Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.1
362- Rebuild with no faad
363
364* Sat Oct 6 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4
365- Rebuild for ffmpeg dependency problems
366- Update License: tag per Fedora guidelines
367
368* Sat Jan 13 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-3
369- more features with new BR's: x264-devel libXv-devel
370- make a note regarding the libdca-devel problem
371- remove the "0:" from the versioned BR's
372
373* Thu Jan 04 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-2
374- don't use smp_mflags during make for now
375
376* Sat Dec 23 2006 kwizart < kwizart at gmail.com > - 2.3.0-1
377- Update to 2.3.0 Final
378- Use find_lang
379
380* Mon Apr 03 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.1.2-1
381- Update to 2.1.2
382
383* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
384- switch to new release field
385
386* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
387- add dist
388
389* Wed Jan 04 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.1.0-0.lvn.1
390- Update to 2.1.0
391- Drop epoch
392- gtk 2.6 now, so drop FC3 support
393
394* Sat Aug 27 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.3
395- Remove bogus BR ffmpeg-devel (#555)
396
397* Thu Jul 09 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.2
398- Add missing BR desktop-file-utils (thanks to ixs)
399
400* Thu Jul 07 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.1
401- Update to 2.0.42
402
403* Sat Jan 22 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.36-0.lvn.1
404- Update to 2.0.34
405- Rename package to avidemux -- no need for avidemux2 afaics
406
407* Sun Nov 21 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.34-0.lvn.1.test1
408- Update to 2.0.34-test1
409- BR gettext, libtool
410
411* Tue Oct 18 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.30-0.lvn.1
412- Initial RPM release.
Note: See TracBrowser for help on using the repository browser.