Browse Source

added self-build-mjpegtools

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1816 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
9b17037075

+ 6 - 1
nonfree/self-build-kino/kino-vl.spec

@@ -1,7 +1,7 @@
 ##TODO: udev
 Name: kino
 Version: 1.3.4
-Release: 2%{?_dist_release}
+Release: 3%{?_dist_release}
 Summary: Kino - A simple non-linear video editor
 Summary(ja): Kino - シンプルなノンリニアビデオ編集ツール
 
@@ -44,6 +44,8 @@ Requires(post): shared-mime-info
 
 # These packages provided by other self-build-* should only be listed
 # in self-build-%{name}.spec as Requires(post).
+# Requires: mjpegtools
+# Requires: mplayer
 # Requires: ffmpeg
 # Requires: ffmpeg2theora
 
@@ -141,6 +143,9 @@ desktop-file-install \
 %{_includedir}/kino
 
 %changelog
+* Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.4-3
+- change release to sync with self-build-kino.spec
+
 * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.4-2
 - change release to sync with self-build-kino.spec
 

+ 6 - 1
nonfree/self-build-kino/self-build-kino-vl.spec

@@ -1,7 +1,7 @@
 %define pkgname kino
 %define name	self-build-%{pkgname}
 %define version 1.3.4
-%define release	2%{?_dist_release}
+%define release	3%{?_dist_release}
 
 %define sourceurl0	http://prdownloads.sourceforge.net/kino/%{pkgname}-%{version}.tar.gz
 
@@ -47,6 +47,8 @@ Requires:		libxml2
 Requires(post):		shared-mime-info
 
 Requires(post):		self-build-libquicktime
+Requires(post):		self-build-mjpegtools
+Requires(post):		self-build-mplayer
 Requires(post):		self-build-ffmpeg
 Requires(post):		self-build-ffmpeg2theora
 
@@ -145,6 +147,9 @@ Kino は DV デジタルビデオカメラで録画された動画を
 %{_datadir}/%{name}
 
 %changelog
+* Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.4-3
+- added Requires(post): self-build-mjpegtools, self-build-mplayer
+
 * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.4-2
 - renamed %%{Source0} to kino-vl.spec
 

+ 269 - 0
nonfree/self-build-mjpegtools/mjpegtools-vl.spec

@@ -0,0 +1,269 @@
+# -*- coding: utf-8-unix -*-
+Name:           mjpegtools
+Version:        1.9.0
+Release:        1%{?_dist_release}
+Summary:        Tools to manipulate MPEG data
+Summary(ja):    MPEG データを操作するツール集
+
+Group:          Applications/Multimedia
+License:        GPLv2
+URL:            http://mjpeg.sourceforge.net/
+Source0:        http://downloads.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
+Patch0:         mjpegtools-1.9.0rc1-anytovcd-ffmpegver.patch
+Patch1:         mjpegtools-1.9.0-gcc44.patch
+Patch2:         mjpegtools-1.9.0-png-memleak.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+
+BuildRequires:  libjpeg-devel
+BuildRequires:  nasm
+BuildRequires:  libdv-devel
+BuildRequires:  SDL-devel >= 1.1.3
+BuildRequires:  SDL_gfx-devel
+#BuildRequires:  libquicktime-devel >= 0.9.8
+#BuildRequires:  self-build-libquicktime >= 0.9.8
+BuildRequires:  libpng-devel
+BuildRequires:  gtk2-devel >= 2.4.0
+# mencoder for lav2avi.sh
+#Requires:       mencoder
+#Requires:       self-build-mplayer
+# ffmpeg main package, y4mscaler and which for anytovcd.sh
+#Requires:       ffmpeg
+#Requires:       self-build-ffmpeg
+#Requires:       y4mscaler
+Requires:       which
+Requires(post): /sbin/install-info
+Requires(preun): /sbin/install-info
+
+%description
+The mjpeg programs are a set of tools that can do recording of videos
+and playback, simple cut-and-paste editing and the MPEG compression of
+audio and video under Linux. 
+
+%description -l ja
+mjpegtools は、Linux 上で
+ビデオ録画や再生、
+簡単なカット&ペーストの編集、
+オーディオやビデオの MPEG 圧縮
+ができるツール集です。
+
+%package        devel
+Summary:        Development files for mjpegtools libraries 
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+Requires:       pkgconfig
+
+%description    devel
+The mjpeg programs are a set of tools that can do recording of videos
+and playback, simple cut-and-paste editing and the MPEG compression of
+audio and video under Linux.  This package contains development files
+for building applications that use mjpegtools libraries.
+
+
+%prep 
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%__sed -i -e 's/ARCHFLAGS=.*/ARCHFLAGS=/' configure*
+%__sed -i -e 's|/lib /usr/lib|/%{_lib} %{_libdir}|' configure # lib64 rpaths
+for f in docs/yuvfps.1 ; do
+    iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
+done
+
+
+%build
+%configure --disable-dependency-tracking --disable-static
+%__make # %{?_smp_mflags}
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__make install DESTDIR=$RPM_BUILD_ROOT
+%__rm -f $RPM_BUILD_ROOT{%{_infodir}/dir,%{_libdir}/lib*.la}
+# too broken/outdated to be useful in 1.[89].0 (and would come with dep chain)
+%__rm -f $RPM_BUILD_ROOT%{_bindir}/mpegtranscode
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%post
+/sbin/ldconfig
+/sbin/install-info %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
+
+%postun
+/sbin/ldconfig
+
+%preun
+[ $1 -eq 0 ] && \
+/sbin/install-info --delete %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING CHANGES ChangeLog AUTHORS BUGS README.lavpipe NEWS TODO
+%{_bindir}/*
+%{_mandir}/man1/*.1*
+%{_mandir}/man5/yuv4mpeg.5*
+%{_infodir}/mjpeg-howto.info*
+## gui
+%doc README.glav
+%{_bindir}/glav
+# lavplay and yuvplay won't save -libs/console util users from X11 and SDL
+# dependencies as long as liblavplay is in -libs, but they're inherently
+# GUI tools -> include them here
+%{_bindir}/lavplay
+%{_bindir}/y4mhist
+%{_bindir}/yuvplay
+%{_mandir}/man1/lavplay.1*
+%{_mandir}/man1/yuvplay.1*
+## libs
+%{_libdir}/lib*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+%{_libdir}/lib*.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+
+%changelog
+* Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.0-1
+- new upstream release
+
+* Fri Sep  3 2010 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-2
+- Fix a memleak which is causing issues for LiVES
+
+* Wed Apr 15 2009 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-1
+- Update to upstream 1.9.0 final release
+
+* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.9.0-0.7.rc3
+- rebuild for new F11 features
+
+* Sat Dec 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.9.0-1.rc3
+- initial build
+
+* Fri Jul 25 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-0.6.rc3
+- Release bump for rpmfusion
+- Sync with freshrpms (no changes)
+
+* Tue Apr 22 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.5.rc3
+- Apply patch from Gentoo to fix build with GCC 4.3 (#1941).
+
+* Tue Dec  4 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.4.rc3
+- 1.9.0rc3.
+
+* Sat Sep 29 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.4.rc2
+- Requires: which
+
+* Wed Aug 22 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.3.rc2
+- License: GPLv2
+
+* Thu Jun 21 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.2.rc2
+- Rebuild.
+
+* Fri Jun  8 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.9.0-0.1.rc2
+- 1.9.0rc2.
+
+* Sat Nov 25 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-7
+- Split GUI utilities into -gui subpackage.
+- Don't ship mpegtranscode, it's broken/outdated.
+- Require mencoder for lav2avi.sh.
+
+* Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 1.8.0-6
+- rebuilt for unwind info generation, broken in gcc-4.1.1-21
+
+* Sun Sep 24 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-5
+- Specfile cleanup.
+
+* Sun Jun  4 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-4
+- Get rid of undefined non-weak symbols in liblav*.
+- Apply upstream fix for compiling with libquicktime 0.9.8.
+
+* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+- switch to new release field
+
+* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+- add dist
+
+* Sat Jan 21 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.8.0-0.lvn.3
+- Include license text in -libs, it can be installed without the main package.
+- Convert yuvfps man page to UTF-8.
+- Fix -devel Group tag.
+
+* Thu Jan 19 2006 Adrian Reber <adrian@lisas.de> - 1.8.0-0.lvn.2
+- Added patch to compile with gcc 4.1
+- Dropped 0 Epoch
+
+* Mon Sep 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.8.0-0.lvn.1
+- 1.8.0.
+
+* Sat Aug 27 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.3-0.lvn.0.1.rc3
+- 1.6.3-rc3, Altivec fixes applied upstream.
+
+* Fri Aug 12 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.3-0.lvn.0.1.rc2
+- 1.6.3-rc2, clean up obsolete pre-FC2 stuff.
+- Fix Altivec build, kudos to upstream.
+
+* Thu May 26 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6,3-0.lvn.0.1.rc1
+- 1.6.3-rc1 (1.7.0 snapshot package not released, so no Epoch bump).
+
+* Sun May 22 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.7.0-0.lvn.0.2.cvs20050521
+- PPC: disable Altivec due to gcc4 build failure, honor $RPM_OPT_FLAGS.
+
+* Sat May 21 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.7.0-0.lvn.0.1.cvs20050521
+- Pre-1.7.0 snapshot as of today, all patches applied or obsoleted upstream.
+- Require pkgconfig in -devel.
+
+* Wed Feb  2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.7
+- Add corrected -fPIC tweak from Thorsten.
+
+* Mon Jan 31 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.6
+- Include PNG input support.
+- Remove no-op $RPM_OPT_FLAGS setting from %%build.
+- Remove bogus optimization settings from configure script.
+
+* Fri Dec 31 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:1.6.2-0.lvn.5
+- CFLAGS="$CFLAGS -fPIC" on non x86; Fixes build error on x86_64; The 
+  option --with-pic is not enough
+
+* Sat Dec 18 2004 Dams <anvil[AT]livna.org> - 0:1.6.2-0.lvn.4
+- Disabling static libraries building
+
+* Tue Dec 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.6.2-0.lvn.3
+- Include quicktime support.
+- Apply patch from ALT Linux to fix info pages, fix typo in %%post.
+- Require /sbin/install-info.
+- Add "--without static" rpmbuild option to work around an issue with FC3 strip
+- Always enable SIMD accelerations, CPU capabilities detected at runtime.
+- Always disable use of cmov.
+
+* Thu Nov 11 2004 Dams <anvil[AT]livna.org> 0:1.6.2-0.lvn.2
+- Added patch to fix gcc3.4 build
+- Detected race condition in Makefiles (disabling _smp_mflags use)
+- Added info files & scriptlets
+- Dropped patch0 and patch1
+
+* Tue Jun  8 2004 Dams <anvil[AT]livna.org> 0:1.6.2-0.lvn.1
+- Updated to 1.6.2
+
+* Sun Sep 28 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.6
+- Removed comment after scriptlets
+
+* Fri Aug 22 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.5
+- buildroot -> RPM_BUILD_ROOT
+
+* Sun Aug 10 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.4
+- Applied upstream patches to fix build on gcc3.3 systems
+
+* Tue Apr 29 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.3
+- Now test arch for configure options (from Ville)
+- Removed ImageMagick-devel BuildRequires
+
+* Sun Apr 27 2003 Dams <anvil[AT]livna.org> 0:1.6.1-0.fdr.2
+- Added missing BuildRequires 
+- Added post/postun scriplets for libs package
+
+* Wed Apr 23 2003 Dams <anvil[AT]livna.org> 
+- Initial build.

+ 141 - 0
nonfree/self-build-mjpegtools/self-build-mjpegtools-vl.spec

@@ -0,0 +1,141 @@
+%define pkgname mjpegtools
+%define name    self-build-%{pkgname}
+%define version 1.9.0
+%define release 1%{?_dist_release}
+
+%define sourceurl0	http://prdownloads.sourceforge.net/mjpeg/%{pkgname}-%{version}.tar.gz
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{version}
+Release: 	%{release}
+
+Source0:	%{pkgname}-vl.spec
+Source100:      mjpegtools-1.9.0rc1-anytovcd-ffmpegver.patch
+Source101:      mjpegtools-1.9.0-gcc44.patch
+Source102:      mjpegtools-1.9.0-png-memleak.patch
+
+License:	GPLv2+
+Group:		Restricted Software
+
+# Requires(posttrans) not yet implemented. So we use (post) instead.
+Requires(post):	self-build-setup >= 0.9.0
+
+Requires(post):  libjpeg-devel
+Requires(post):  nasm
+Requires(post):  libdv-devel
+Requires(post):  SDL-devel >= 1.1.3
+Requires(post):  SDL_gfx-devel
+Requires(post):  self-build-libquicktime >= 0.9.8
+Requires(post):  libpng-devel
+Requires(post):  gtk2-devel >= 2.4.0
+Requires(post):  self-build-mplayer
+Requires(post):  self-build-ffmpeg
+#Requires(post):  y4mscaler
+Requires:  which
+Requires(post): /sbin/install-info
+Requires(preun): /sbin/install-info
+
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Packager:	munepi
+
+%description
+The mjpeg programs are a set of tools that can do recording of videos
+and playback, simple cut-and-paste editing and the MPEG compression of
+audio and video under Linux. 
+
+
+If you install this package, it automaticaly downloads source
+code ,compile it, and create rpm packages of %{pkgname}-%{version}.
+And the created rpm packages are automatically installed
+if installation is executed by apt-get command or synaptic
+package manager.
+
+[Note]
+This package requires many other packages to compile
+targetsoftware. So it consume more disk space than usual.
+Also installation takes logner time because of compilation.
+(This will take a few minutes to quarter or half of an hour,
+depends on building environment)
+
+[About self-build package]
+For some kind of software, distributing of binary package
+may viorate the patent or law. Therefore we chose self-build
+packge, create binary package on your machine, for such kind
+of softwares instead of distributing binary package.
+
+Please obey the national law when you use the created binary
+packages. And if you want to use the softwares using patented 
+thechnology, it may be required to get a permission, make an 
+agreement or purchas a license. Please consider it with your
+purpose or way of use and take appropriate action.
+
+%description -l ja
+mjpegtools は、Linux 上で
+ビデオ録画や再生、
+簡単なカット&ペーストの編集、
+オーディオやビデオの MPEG 圧縮
+ができるツール集です。
+
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{pkgname}-%{version}
+の rpm パッケージを作成します。
+また apt-get コマンドや synaptic パッケージマネージャから実行
+した場合は、作成された rpm パッケージのインストールも自動的に
+行います。
+
+[注意]
+コンパイルに必要な多くの関連パッケージを要求するので通常より
+ディスクの領域を多く消費します。
+またインストール時にコンパイルを行うため、通常より時間がかか
+る場合があります。(環境にもよりますが数分から数十分程度)
+
+[self-build パッケージについて]
+ソフトウェアによってはバイナリパッケージの配布が特許や法律に
+違反する可能性があるものがあります。その為、このような問題が
+懸念されるソフトウェアについてはバイナリパッケージを直接配布
+せずに、ユーザの環境でバイナリを作成する self-build パッケー
+ジという方法を採っています。
+
+作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
+アのライセンス、および利用する国の各種法令に従ってください。
+また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
+センスの購入などが必要となる場合がありますので、利用する目的
+や形態に応じて各自で判断し適切な対応を取ってください。
+
+
+%prep
+[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
+
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 \
+    %{SOURCE100} %{SOURCE101} %{SOURCE102} \
+    ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 194000
+/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
+                                 %{pkgname}-devel-%{version}-%{release}
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}/*
+
+
+%changelog
+* Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.0-1
+- initial build
+
+### end of file