mjpegtools/mjpegtools.spec

Fri, 11 Mar 2011 21:30:26 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:30:26 +0100
changeset 0
4f133201e207
child 1
4667f24fe848
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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

mercurial