Fri, 11 Mar 2011 21:30:26 +0100
Import package vendor original specs for necessary manipulations.
1 Name: mjpegtools
2 Version: 1.9.0
3 Release: 3%{?dist}
4 Summary: Tools to manipulate MPEG data
6 Group: Applications/Multimedia
7 License: GPLv2
8 URL: http://mjpeg.sourceforge.net/
9 Source0: http://downloads.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
10 Patch0: %{name}-1.9.0rc1-anytovcd-ffmpegver.patch
11 Patch1: mjpegtools-1.9.0-gcc44.patch
12 Patch2: mjpegtools-1.9.0-png-memleak.patch
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 BuildRequires: libjpeg-devel
16 BuildRequires: nasm
17 BuildRequires: libdv-devel
18 BuildRequires: SDL-devel >= 1.1.3
19 BuildRequires: SDL_gfx-devel
20 BuildRequires: libquicktime-devel >= 0.9.8
21 BuildRequires: libpng-devel
22 BuildRequires: gtk2-devel >= 2.4.0
23 Requires: %{name}-libs = %{version}-%{release}
24 # mencoder for lav2avi.sh
25 Requires: mencoder
26 # ffmpeg main package, y4mscaler and which for anytovcd.sh
27 Requires: ffmpeg
28 Requires: y4mscaler
29 Requires: which
30 Requires(post): /sbin/install-info
31 Requires(preun): /sbin/install-info
33 %description
34 The mjpeg programs are a set of tools that can do recording of videos
35 and playback, simple cut-and-paste editing and the MPEG compression of
36 audio and video under Linux. This package contains mjpegtools console
37 utilities.
39 %package gui
40 Summary: GUI tools to manipulate MPEG data
41 Group: Applications/Multimedia
42 Requires: %{name} = %{version}-%{release}
44 %description gui
45 The mjpeg programs are a set of tools that can do recording of videos
46 and playback, simple cut-and-paste editing and the MPEG compression of
47 audio and video under Linux. This package contains mjpegtools GUI
48 utilities.
50 %package libs
51 Summary: Libraries used by mjpegtools
52 Group: System Environment/Libraries
53 Requires: libquicktime >= 0.9.8
55 %description libs
56 The mjpeg programs are a set of tools that can do recording of videos
57 and playback, simple cut-and-paste editing and the MPEG compression of
58 audio and video under Linux. This package contains libraries used by
59 mjpegtools.
61 %package devel
62 Summary: Development files for mjpegtools libraries
63 Group: Development/Libraries
64 Requires: %{name}-libs = %{version}-%{release}
65 Requires: pkgconfig
67 %description devel
68 The mjpeg programs are a set of tools that can do recording of videos
69 and playback, simple cut-and-paste editing and the MPEG compression of
70 audio and video under Linux. This package contains development files
71 for building applications that use mjpegtools libraries.
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79 sed -i -e 's/ARCHFLAGS=.*/ARCHFLAGS=/' configure*
80 sed -i -e 's|/lib /usr/lib|/%{_lib} %{_libdir}|' configure # lib64 rpaths
81 for f in docs/yuvfps.1 ; do
82 iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
83 done
86 %build
87 %configure --disable-dependency-tracking --disable-static
88 make # %{?_smp_mflags}
91 %install
92 rm -rf $RPM_BUILD_ROOT
93 make install DESTDIR=$RPM_BUILD_ROOT
94 rm -f $RPM_BUILD_ROOT{%{_infodir}/dir,%{_libdir}/lib*.la}
95 # too broken/outdated to be useful in 1.[89].0 (and would come with dep chain)
96 rm -f $RPM_BUILD_ROOT%{_bindir}/mpegtranscode
99 %clean
100 rm -rf $RPM_BUILD_ROOT
103 %post libs -p /sbin/ldconfig
105 %postun libs -p /sbin/ldconfig
107 %post
108 /sbin/install-info %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
110 %preun
111 [ $1 -eq 0 ] && \
112 /sbin/install-info --delete %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
115 %files
116 %defattr(-,root,root,-)
117 %doc COPYING CHANGES ChangeLog AUTHORS BUGS README.lavpipe NEWS TODO
118 %{_bindir}/*
119 %exclude %{_bindir}/glav
120 %exclude %{_bindir}/lavplay
121 %exclude %{_bindir}/y4mhist
122 %exclude %{_bindir}/yuvplay
123 %{_mandir}/man1/*.1*
124 %exclude %{_mandir}/man1/lavplay.1*
125 %exclude %{_mandir}/man1/yuvplay.1*
126 %{_mandir}/man5/yuv4mpeg.5*
127 %{_infodir}/mjpeg-howto.info*
129 %files gui
130 %defattr(-,root,root,-)
131 %doc README.glav
132 %{_bindir}/glav
133 # lavplay and yuvplay won't save -libs/console util users from X11 and SDL
134 # dependencies as long as liblavplay is in -libs, but they're inherently
135 # GUI tools -> include them here
136 %{_bindir}/lavplay
137 %{_bindir}/y4mhist
138 %{_bindir}/yuvplay
139 %{_mandir}/man1/lavplay.1*
140 %{_mandir}/man1/yuvplay.1*
142 %files libs
143 %defattr(-,root,root,-)
144 %doc COPYING
145 %{_libdir}/lib*.so.*
147 %files devel
148 %defattr(-,root,root,-)
149 %{_includedir}/%{name}
150 %{_libdir}/lib*.so
151 %{_libdir}/pkgconfig/%{name}.pc
154 %changelog
155 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.9.0-3
156 - Build for MeeGo 1.1
158 * Fri Sep 3 2010 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-2
159 - Fix a memleak which is causing issues for LiVES
161 * Wed Apr 15 2009 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-1
162 - Update to upstream 1.9.0 final release
164 * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.9.0-0.7.rc3
165 - rebuild for new F11 features
167 * Fri Jul 25 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-0.6.rc3
168 - Release bump for rpmfusion
169 - Sync with freshrpms (no changes)
171 * Tue Apr 22 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.5.rc3
172 - Apply patch from Gentoo to fix build with GCC 4.3 (#1941).
174 * Tue Dec 4 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.4.rc3
175 - 1.9.0rc3.
177 * Sat Sep 29 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.4.rc2
178 - Requires: which
180 * Wed Aug 22 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.3.rc2
181 - License: GPLv2
183 * Thu Jun 21 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.2.rc2
184 - Rebuild.
186 * Fri Jun 8 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.1.rc2
187 - 1.9.0rc2.
189 * Sat Nov 25 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-7
190 - Split GUI utilities into -gui subpackage.
191 - Don't ship mpegtranscode, it's broken/outdated.
192 - Require mencoder for lav2avi.sh.
194 * Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 1.8.0-6
195 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
197 * Sun Sep 24 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-5
198 - Specfile cleanup.
200 * Sun Jun 4 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-4
201 - Get rid of undefined non-weak symbols in liblav*.
202 - Apply upstream fix for compiling with libquicktime 0.9.8.
204 * Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
205 - switch to new release field
207 * Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
208 - add dist
210 * Sat Jan 21 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-0.lvn.3
211 - Include license text in -libs, it can be installed without the main package.
212 - Convert yuvfps man page to UTF-8.
213 - Fix -devel Group tag.
215 * Thu Jan 19 2006 Adrian Reber <adrian@lisas.de> - 1.8.0-0.lvn.2
216 - Added patch to compile with gcc 4.1
217 - Dropped 0 Epoch
219 * Mon Sep 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.8.0-0.lvn.1
220 - 1.8.0.
222 * Sat Aug 27 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.3-0.lvn.0.1.rc3
223 - 1.6.3-rc3, Altivec fixes applied upstream.
225 * Fri Aug 12 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.3-0.lvn.0.1.rc2
226 - 1.6.3-rc2, clean up obsolete pre-FC2 stuff.
227 - Fix Altivec build, kudos to upstream.
229 * Thu May 26 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6,3-0.lvn.0.1.rc1
230 - 1.6.3-rc1 (1.7.0 snapshot package not released, so no Epoch bump).
232 * Sun May 22 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.7.0-0.lvn.0.2.cvs20050521
233 - PPC: disable Altivec due to gcc4 build failure, honor $RPM_OPT_FLAGS.
235 * Sat May 21 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.7.0-0.lvn.0.1.cvs20050521
236 - Pre-1.7.0 snapshot as of today, all patches applied or obsoleted upstream.
237 - Require pkgconfig in -devel.
239 * Wed Feb 2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.7
240 - Add corrected -fPIC tweak from Thorsten.
242 * Mon Jan 31 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.6
243 - Include PNG input support.
244 - Remove no-op $RPM_OPT_FLAGS setting from %%build.
245 - Remove bogus optimization settings from configure script.
247 * Fri Dec 31 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:1.6.2-0.lvn.5
248 - CFLAGS="$CFLAGS -fPIC" on non x86; Fixes build error on x86_64; The
249 option --with-pic is not enough
251 * Sat Dec 18 2004 Dams <anvil[AT]livna.org> - 0:1.6.2-0.lvn.4
252 - Disabling static libraries building
254 * Tue Dec 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.3
255 - Include quicktime support.
256 - Apply patch from ALT Linux to fix info pages, fix typo in %%post.
257 - Require /sbin/install-info.
258 - Add "--without static" rpmbuild option to work around an issue with FC3 strip
259 - Always enable SIMD accelerations, CPU capabilities detected at runtime.
260 - Always disable use of cmov.
262 * Thu Nov 11 2004 Dams <anvil[AT]livna.org> 0:1.6.2-0.lvn.2
263 - Added patch to fix gcc3.4 build
264 - Detected race condition in Makefiles (disabling _smp_mflags use)
265 - Added info files & scriptlets
266 - Dropped patch0 and patch1
268 * Tue Jun 8 2004 Dams <anvil[AT]livna.org> 0:1.6.2-0.lvn.1
269 - Updated to 1.6.2
271 * Sun Sep 28 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.6
272 - Removed comment after scriptlets
274 * Fri Aug 22 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.5
275 - buildroot -> RPM_BUILD_ROOT
277 * Sun Aug 10 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.4
278 - Applied upstream patches to fix build on gcc3.3 systems
280 * Tue Apr 29 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.3
281 - Now test arch for configure options (from Ville)
282 - Removed ImageMagick-devel BuildRequires
284 * Sun Apr 27 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.2
285 - Added missing BuildRequires
286 - Added post/postun scriplets for libs package
288 * Wed Apr 23 2003 Dams <anvil[AT]livna.org>
289 - Initial build.