mjpegtools/mjpegtools.spec

changeset 0
4f133201e207
child 1
4667f24fe848
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mjpegtools/mjpegtools.spec	Fri Mar 11 21:30:26 2011 +0100
     1.3 @@ -0,0 +1,289 @@
     1.4 +Name:           mjpegtools
     1.5 +Version:        1.9.0
     1.6 +Release:        3%{?dist}
     1.7 +Summary:        Tools to manipulate MPEG data
     1.8 +
     1.9 +Group:          Applications/Multimedia
    1.10 +License:        GPLv2
    1.11 +URL:            http://mjpeg.sourceforge.net/
    1.12 +Source0:        http://downloads.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
    1.13 +Patch0:         %{name}-1.9.0rc1-anytovcd-ffmpegver.patch
    1.14 +Patch1:         mjpegtools-1.9.0-gcc44.patch
    1.15 +Patch2:         mjpegtools-1.9.0-png-memleak.patch
    1.16 +BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    1.17 +
    1.18 +BuildRequires:  libjpeg-devel
    1.19 +BuildRequires:  nasm
    1.20 +BuildRequires:  libdv-devel
    1.21 +BuildRequires:  SDL-devel >= 1.1.3
    1.22 +BuildRequires:  SDL_gfx-devel
    1.23 +BuildRequires:  libquicktime-devel >= 0.9.8
    1.24 +BuildRequires:  libpng-devel
    1.25 +BuildRequires:  gtk2-devel >= 2.4.0
    1.26 +Requires:       %{name}-libs = %{version}-%{release}
    1.27 +# mencoder for lav2avi.sh
    1.28 +Requires:       mencoder
    1.29 +# ffmpeg main package, y4mscaler and which for anytovcd.sh
    1.30 +Requires:       ffmpeg
    1.31 +Requires:       y4mscaler
    1.32 +Requires:       which
    1.33 +Requires(post): /sbin/install-info
    1.34 +Requires(preun): /sbin/install-info
    1.35 +
    1.36 +%description
    1.37 +The mjpeg programs are a set of tools that can do recording of videos
    1.38 +and playback, simple cut-and-paste editing and the MPEG compression of
    1.39 +audio and video under Linux.  This package contains mjpegtools console
    1.40 +utilities.
    1.41 +
    1.42 +%package        gui
    1.43 +Summary:        GUI tools to manipulate MPEG data
    1.44 +Group:          Applications/Multimedia
    1.45 +Requires:       %{name} = %{version}-%{release}
    1.46 +
    1.47 +%description    gui
    1.48 +The mjpeg programs are a set of tools that can do recording of videos
    1.49 +and playback, simple cut-and-paste editing and the MPEG compression of
    1.50 +audio and video under Linux.  This package contains mjpegtools GUI
    1.51 +utilities.
    1.52 +
    1.53 +%package        libs
    1.54 +Summary:        Libraries used by mjpegtools
    1.55 +Group:          System Environment/Libraries
    1.56 +Requires:       libquicktime >= 0.9.8
    1.57 +
    1.58 +%description    libs
    1.59 +The mjpeg programs are a set of tools that can do recording of videos
    1.60 +and playback, simple cut-and-paste editing and the MPEG compression of
    1.61 +audio and video under Linux.  This package contains libraries used by
    1.62 +mjpegtools.
    1.63 +
    1.64 +%package        devel
    1.65 +Summary:        Development files for mjpegtools libraries 
    1.66 +Group:          Development/Libraries
    1.67 +Requires:       %{name}-libs = %{version}-%{release}
    1.68 +Requires:       pkgconfig
    1.69 +
    1.70 +%description    devel
    1.71 +The mjpeg programs are a set of tools that can do recording of videos
    1.72 +and playback, simple cut-and-paste editing and the MPEG compression of
    1.73 +audio and video under Linux.  This package contains development files
    1.74 +for building applications that use mjpegtools libraries.
    1.75 +
    1.76 +
    1.77 +%prep 
    1.78 +%setup -q
    1.79 +%patch0 -p1
    1.80 +%patch1 -p1
    1.81 +%patch2 -p1
    1.82 +sed -i -e 's/ARCHFLAGS=.*/ARCHFLAGS=/' configure*
    1.83 +sed -i -e 's|/lib /usr/lib|/%{_lib} %{_libdir}|' configure # lib64 rpaths
    1.84 +for f in docs/yuvfps.1 ; do
    1.85 +    iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
    1.86 +done
    1.87 +
    1.88 +
    1.89 +%build
    1.90 +%configure --disable-dependency-tracking --disable-static
    1.91 +make # %{?_smp_mflags}
    1.92 +
    1.93 +
    1.94 +%install
    1.95 +rm -rf $RPM_BUILD_ROOT
    1.96 +make install DESTDIR=$RPM_BUILD_ROOT
    1.97 +rm -f $RPM_BUILD_ROOT{%{_infodir}/dir,%{_libdir}/lib*.la}
    1.98 +# too broken/outdated to be useful in 1.[89].0 (and would come with dep chain)
    1.99 +rm -f $RPM_BUILD_ROOT%{_bindir}/mpegtranscode
   1.100 +
   1.101 +
   1.102 +%clean
   1.103 +rm -rf $RPM_BUILD_ROOT
   1.104 +
   1.105 +
   1.106 +%post libs -p /sbin/ldconfig
   1.107 +
   1.108 +%postun libs -p /sbin/ldconfig
   1.109 +
   1.110 +%post
   1.111 +/sbin/install-info %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
   1.112 +
   1.113 +%preun
   1.114 +[ $1 -eq 0 ] && \
   1.115 +/sbin/install-info --delete %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
   1.116 +
   1.117 +
   1.118 +%files
   1.119 +%defattr(-,root,root,-)
   1.120 +%doc COPYING CHANGES ChangeLog AUTHORS BUGS README.lavpipe NEWS TODO
   1.121 +%{_bindir}/*
   1.122 +%exclude %{_bindir}/glav
   1.123 +%exclude %{_bindir}/lavplay
   1.124 +%exclude %{_bindir}/y4mhist
   1.125 +%exclude %{_bindir}/yuvplay
   1.126 +%{_mandir}/man1/*.1*
   1.127 +%exclude %{_mandir}/man1/lavplay.1*
   1.128 +%exclude %{_mandir}/man1/yuvplay.1*
   1.129 +%{_mandir}/man5/yuv4mpeg.5*
   1.130 +%{_infodir}/mjpeg-howto.info*
   1.131 +
   1.132 +%files gui
   1.133 +%defattr(-,root,root,-)
   1.134 +%doc README.glav
   1.135 +%{_bindir}/glav
   1.136 +# lavplay and yuvplay won't save -libs/console util users from X11 and SDL
   1.137 +# dependencies as long as liblavplay is in -libs, but they're inherently
   1.138 +# GUI tools -> include them here
   1.139 +%{_bindir}/lavplay
   1.140 +%{_bindir}/y4mhist
   1.141 +%{_bindir}/yuvplay
   1.142 +%{_mandir}/man1/lavplay.1*
   1.143 +%{_mandir}/man1/yuvplay.1*
   1.144 +
   1.145 +%files libs
   1.146 +%defattr(-,root,root,-)
   1.147 +%doc COPYING
   1.148 +%{_libdir}/lib*.so.*
   1.149 +
   1.150 +%files devel
   1.151 +%defattr(-,root,root,-)
   1.152 +%{_includedir}/%{name}
   1.153 +%{_libdir}/lib*.so
   1.154 +%{_libdir}/pkgconfig/%{name}.pc
   1.155 +
   1.156 +
   1.157 +%changelog
   1.158 +* Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.9.0-3
   1.159 +- Build for MeeGo 1.1
   1.160 +
   1.161 +* Fri Sep  3 2010 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-2
   1.162 +- Fix a memleak which is causing issues for LiVES
   1.163 +
   1.164 +* Wed Apr 15 2009 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-1
   1.165 +- Update to upstream 1.9.0 final release
   1.166 +
   1.167 +* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.9.0-0.7.rc3
   1.168 +- rebuild for new F11 features
   1.169 +
   1.170 +* Fri Jul 25 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-0.6.rc3
   1.171 +- Release bump for rpmfusion
   1.172 +- Sync with freshrpms (no changes)
   1.173 +
   1.174 +* Tue Apr 22 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.5.rc3
   1.175 +- Apply patch from Gentoo to fix build with GCC 4.3 (#1941).
   1.176 +
   1.177 +* Tue Dec  4 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.4.rc3
   1.178 +- 1.9.0rc3.
   1.179 +
   1.180 +* Sat Sep 29 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.4.rc2
   1.181 +- Requires: which
   1.182 +
   1.183 +* Wed Aug 22 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.3.rc2
   1.184 +- License: GPLv2
   1.185 +
   1.186 +* Thu Jun 21 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.2.rc2
   1.187 +- Rebuild.
   1.188 +
   1.189 +* Fri Jun  8 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.1.rc2
   1.190 +- 1.9.0rc2.
   1.191 +
   1.192 +* Sat Nov 25 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-7
   1.193 +- Split GUI utilities into -gui subpackage.
   1.194 +- Don't ship mpegtranscode, it's broken/outdated.
   1.195 +- Require mencoder for lav2avi.sh.
   1.196 +
   1.197 +* Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 1.8.0-6
   1.198 +- rebuilt for unwind info generation, broken in gcc-4.1.1-21
   1.199 +
   1.200 +* Sun Sep 24 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-5
   1.201 +- Specfile cleanup.
   1.202 +
   1.203 +* Sun Jun  4 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-4
   1.204 +- Get rid of undefined non-weak symbols in liblav*.
   1.205 +- Apply upstream fix for compiling with libquicktime 0.9.8.
   1.206 +
   1.207 +* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
   1.208 +- switch to new release field
   1.209 +
   1.210 +* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
   1.211 +- add dist
   1.212 +
   1.213 +* Sat Jan 21 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-0.lvn.3
   1.214 +- Include license text in -libs, it can be installed without the main package.
   1.215 +- Convert yuvfps man page to UTF-8.
   1.216 +- Fix -devel Group tag.
   1.217 +
   1.218 +* Thu Jan 19 2006 Adrian Reber <adrian@lisas.de> - 1.8.0-0.lvn.2
   1.219 +- Added patch to compile with gcc 4.1
   1.220 +- Dropped 0 Epoch
   1.221 +
   1.222 +* Mon Sep 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.8.0-0.lvn.1
   1.223 +- 1.8.0.
   1.224 +
   1.225 +* Sat Aug 27 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.3-0.lvn.0.1.rc3
   1.226 +- 1.6.3-rc3, Altivec fixes applied upstream.
   1.227 +
   1.228 +* Fri Aug 12 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.3-0.lvn.0.1.rc2
   1.229 +- 1.6.3-rc2, clean up obsolete pre-FC2 stuff.
   1.230 +- Fix Altivec build, kudos to upstream.
   1.231 +
   1.232 +* Thu May 26 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6,3-0.lvn.0.1.rc1
   1.233 +- 1.6.3-rc1 (1.7.0 snapshot package not released, so no Epoch bump).
   1.234 +
   1.235 +* Sun May 22 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.7.0-0.lvn.0.2.cvs20050521
   1.236 +- PPC: disable Altivec due to gcc4 build failure, honor $RPM_OPT_FLAGS.
   1.237 +
   1.238 +* Sat May 21 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.7.0-0.lvn.0.1.cvs20050521
   1.239 +- Pre-1.7.0 snapshot as of today, all patches applied or obsoleted upstream.
   1.240 +- Require pkgconfig in -devel.
   1.241 +
   1.242 +* Wed Feb  2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.7
   1.243 +- Add corrected -fPIC tweak from Thorsten.
   1.244 +
   1.245 +* Mon Jan 31 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.6
   1.246 +- Include PNG input support.
   1.247 +- Remove no-op $RPM_OPT_FLAGS setting from %%build.
   1.248 +- Remove bogus optimization settings from configure script.
   1.249 +
   1.250 +* Fri Dec 31 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:1.6.2-0.lvn.5
   1.251 +- CFLAGS="$CFLAGS -fPIC" on non x86; Fixes build error on x86_64; The 
   1.252 +  option --with-pic is not enough
   1.253 +
   1.254 +* Sat Dec 18 2004 Dams <anvil[AT]livna.org> - 0:1.6.2-0.lvn.4
   1.255 +- Disabling static libraries building
   1.256 +
   1.257 +* Tue Dec 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.3
   1.258 +- Include quicktime support.
   1.259 +- Apply patch from ALT Linux to fix info pages, fix typo in %%post.
   1.260 +- Require /sbin/install-info.
   1.261 +- Add "--without static" rpmbuild option to work around an issue with FC3 strip
   1.262 +- Always enable SIMD accelerations, CPU capabilities detected at runtime.
   1.263 +- Always disable use of cmov.
   1.264 +
   1.265 +* Thu Nov 11 2004 Dams <anvil[AT]livna.org> 0:1.6.2-0.lvn.2
   1.266 +- Added patch to fix gcc3.4 build
   1.267 +- Detected race condition in Makefiles (disabling _smp_mflags use)
   1.268 +- Added info files & scriptlets
   1.269 +- Dropped patch0 and patch1
   1.270 +
   1.271 +* Tue Jun  8 2004 Dams <anvil[AT]livna.org> 0:1.6.2-0.lvn.1
   1.272 +- Updated to 1.6.2
   1.273 +
   1.274 +* Sun Sep 28 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.6
   1.275 +- Removed comment after scriptlets
   1.276 +
   1.277 +* Fri Aug 22 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.5
   1.278 +- buildroot -> RPM_BUILD_ROOT
   1.279 +
   1.280 +* Sun Aug 10 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.4
   1.281 +- Applied upstream patches to fix build on gcc3.3 systems
   1.282 +
   1.283 +* Tue Apr 29 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.3
   1.284 +- Now test arch for configure options (from Ville)
   1.285 +- Removed ImageMagick-devel BuildRequires
   1.286 +
   1.287 +* Sun Apr 27 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.2
   1.288 +- Added missing BuildRequires 
   1.289 +- Added post/postun scriplets for libs package
   1.290 +
   1.291 +* Wed Apr 23 2003 Dams <anvil[AT]livna.org> 
   1.292 +- Initial build.

mercurial