Browse Source

added many self-build-* specs

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@615 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 12 years ago
parent
commit
be6bccb64f
38 changed files with 8581 additions and 4 deletions
  1. 7 1
      nonfree/self-build-a52dec/a52dec-vl.spec
  2. 13 3
      nonfree/self-build-a52dec/self-build-a52dec-vl.spec
  3. 409 0
      nonfree/self-build-avidemux/avidemux-vl.spec
  4. 212 0
      nonfree/self-build-avidemux/self-build-avidemux-vl.spec
  5. 185 0
      nonfree/self-build-faac/faac-vl.spec
  6. 183 0
      nonfree/self-build-faac/self-build-faac-vl.spec
  7. 152 0
      nonfree/self-build-faad2/faad2-vl.spec
  8. 136 0
      nonfree/self-build-faad2/self-build-faad2-vl.spec
  9. 198 0
      nonfree/self-build-ffmpeg-mh/ffmpeg-mh-vl.spec
  10. 208 0
      nonfree/self-build-ffmpeg-mh/self-build-ffmpeg-mh-vl.spec
  11. 259 0
      nonfree/self-build-ffmpeg/ffmpeg-vl.spec
  12. 256 0
      nonfree/self-build-ffmpeg/self-build-ffmpeg-vl.spec
  13. 84 0
      nonfree/self-build-ffmpeg2theora/ffmpeg2theora-vl.spec
  14. 137 0
      nonfree/self-build-ffmpeg2theora/self-build-ffmpeg2theora-vl.spec
  15. 341 0
      nonfree/self-build-gpac/gpac-vl.spec
  16. 199 0
      nonfree/self-build-gpac/self-build-gpac-vl.spec
  17. 448 0
      nonfree/self-build-gstreamer-plugins-bad/gstreamer-plugins-bad-vl.spec
  18. 178 0
      nonfree/self-build-gstreamer-plugins-bad/self-build-gstreamer-plugins-bad-vl.spec
  19. 241 0
      nonfree/self-build-gstreamer-plugins-ffmpeg/gstreamer-plugins-ffmpeg-vl.spec
  20. 154 0
      nonfree/self-build-gstreamer-plugins-ffmpeg/self-build-gstreamer-plugins-ffmpeg-vl.spec
  21. 320 0
      nonfree/self-build-gstreamer-plugins-ugly/gstreamer-plugins-ugly-vl.spec
  22. 156 0
      nonfree/self-build-gstreamer-plugins-ugly/self-build-gstreamer-plugins-ugly-vl.spec
  23. 195 0
      nonfree/self-build-kino/kino-vl.spec
  24. 156 0
      nonfree/self-build-kino/self-build-kino-vl.spec
  25. 165 0
      nonfree/self-build-libdvdcss/libdvdcss-vl.spec
  26. 131 0
      nonfree/self-build-libdvdcss/self-build-libdvdcss-vl.spec
  27. 152 0
      nonfree/self-build-libmad/libmad-vl.spec
  28. 137 0
      nonfree/self-build-libmad/self-build-libmad-vl.spec
  29. 131 0
      nonfree/self-build-libmp4v2/libmp4v2-vl.spec
  30. 141 0
      nonfree/self-build-libmp4v2/self-build-libmp4v2-vl.spec
  31. 167 0
      nonfree/self-build-libquicktime/libquicktime-vl.spec
  32. 150 0
      nonfree/self-build-libquicktime/self-build-libquicktime-vl.spec
  33. 405 0
      nonfree/self-build-mplayer/mplayer-vl.spec
  34. 333 0
      nonfree/self-build-mplayer/self-build-mplayer-vl.spec
  35. 315 0
      nonfree/self-build-vlc/self-build-vlc-vl.spec
  36. 1187 0
      nonfree/self-build-vlc/vlc-vl.spec
  37. 176 0
      nonfree/self-build-x264/self-build-x264-vl.spec
  38. 164 0
      nonfree/self-build-x264/x264-vl.spec

+ 7 - 1
nonfree/self-build-a52dec/a52dec-vl.spec

@@ -1,6 +1,6 @@
 Name: a52dec
 Version: 0.7.4
-Release: 4%{?_dist_release}
+Release: 6%{?_dist_release}
 Summary: ATSC A/52 decoding library
 Summary(ja): ATSC A/52 デコーディングライブラリ
 License: GPLv2
@@ -80,6 +80,12 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
 
 
 %changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.7.4-6
+- change release to sync with self-build-a52dec
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.7.4-5
+- change release to sync with self-build-a52dec
+
 * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.7.4-4
 - dropped some tags: 
   - Autoprov: on

+ 13 - 3
nonfree/self-build-a52dec/self-build-a52dec-vl.spec

@@ -1,7 +1,7 @@
 %define pkgname a52dec
 %define name	self-build-%{pkgname}
 %define version 0.7.4
-%define release 4%{?_dist_release}
+%define release 6%{?_dist_release}
 
 %define sourceurl http://liba52.sourceforge.net/files/a52dec-%{version}.tar.gz
 
@@ -10,7 +10,7 @@ Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケ
 Name:		%{name}
 Version:	%{version}
 Release: 	%{release}
-Source0:	a52dec.spec
+Source0:	a52dec-vl.spec
 Source10:	a52dec-configure-optflags.patch
 Source11:	a52dec-0.7.4-rpath64.patch
 License:	GPLv2
@@ -79,6 +79,9 @@ a/52 標準では、さまざまなアプリケーションで使用され、デ
 や形態に応じて各自で判断し適切な対応を取ってください。
 
 
+%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}
@@ -90,7 +93,7 @@ a/52 標準では、さまざまなアプリケーションで使用され、デ
 %{__rm} -rf ${RPM_BUILD_ROOT}
 
 %posttrans
-/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}.spec "%{sourceurl}"
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl}" 25000
 /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
                                  %{pkgname}-devel-%{version}-%{release}
 
@@ -99,6 +102,13 @@ a/52 標準では、さまざまなアプリケーションで使用され、デ
 %{_datadir}/self-build-a52dec
 
 %changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.7.4-6
+- renamed %%{Source0} to a52dec-vl.spec
+- check version between original spec and self-build spec in %%prep
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.7.4-5
+- applied a progress bar to show approximately building time
+
 * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.7.4-4
 - change release to sync with a52dec.spec
 

+ 409 - 0
nonfree/self-build-avidemux/avidemux-vl.spec

@@ -0,0 +1,409 @@
+%define _pkgbuilddir %{_builddir}/%{name}_%{version}
+
+Name:           avidemux
+Version:        2.5.2
+Release:        2%{?_dist_release}
+Summary:        Graphical video editing and transcoding tool
+
+Group:          Applications/Multimedia
+License:        GPLv2+
+URL:            http://www.avidemux.org/
+Source0:        http://download.berlios.de/avidemux/avidemux_%{version}.tar.gz
+Source1:        %{name}-gtk.desktop
+Source2:        %{name}-qt.desktop
+# Patch0 obtained from avidemux-2.5.0-patches-1.tar.bz2:
+# http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/distfiles/avidemux-2.5.0-patches-1.tar.bz2
+Patch0:         2.5.0-coreImage-parallel-build.patch
+Patch1:         avidemux-2.5-pulseaudio-default.patch
+Patch2:         avidemux-2.4-qt4.patch
+Patch3:         avidemux-2.5-i18n.patch
+Patch4:         avidemux-2.5-libmpeg2enc-altivec.patch
+Patch5:         avidemux-2.5-checkfunction-includes.patch
+Patch6:         avidemux-2.5.1-tmplinktarget.patch
+
+## Vine customization patches
+Patch10:         avidemux-2.4.3-alsa-device-default.patch
+Patch11:         avidemux-2.5.2-no-qt4-ui.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+Requires:       %{name}-cli  = %{version}
+Requires:       %{name}-gui = %{version}
+Obsoletes:      %{name}-qt < 2.5.0
+
+# *-devel pacages provided by other self-build-* should only be listed
+# in self-build-%{name}.spec as PreReq.
+
+# Compiling
+BuildRequires:	cmake
+#BuildRequires:  gettext-devel
+BuildRequires:  gettext
+
+# Libraries
+BuildRequires:  nasm >= 0.98.38
+BuildRequires:  libxml2-devel >= 2.6.8
+BuildRequires:  fontconfig-devel
+#BuildRequires:  freetype-devel
+BuildRequires:  freetype2-devel
+BuildRequires:  js-devel
+BuildRequires:  libXv-devel
+BuildRequires:  libXmu-devel
+# Required by gtk: libXi-devel, libXext-devel, libX11-devel
+# Required by qt: libXt-devel, libXext-devel, libX11-devel
+BuildRequires:	libsamplerate-devel
+BuildRequires:	jack-audio-connection-kit-devel
+
+# Sound out
+BuildRequires:  alsa-lib-devel >= 1.0.3
+BuildRequires:  esound-devel >= 0.2.0
+BuildRequires:  pulseaudio-libs-devel
+
+# Video out 
+BuildRequires:  SDL-devel >= 1.2.7
+
+# Audio Codecs
+#BuildRequires:  a52dec-devel >= 0.7.4
+#BuildRequires:  faac-devel >= 1.24
+#BuildRequires:  faad2-devel >= 2.0
+#BuildRequires:  lame-devel >= 3.96.1
+#BuildRequires:  libmad-devel >= 0.15.1
+BuildRequires:  libogg-devel >= 1.1
+BuildRequires:  libvorbis-devel >= 1.0.1
+# BuildRequires:  self-build-a52dec >= 0.7.4
+# BuildRequires:  self-build-faac >= 1.24
+# BuildRequires:  self-build-faad2 >= 2.0
+# BuildRequires:  self-build-lame >= 3.96.1
+# BuildRequires:  self-build-libmad >= 0.15.1
+#BuildRequires:  libdca-devel
+# BuildRequires:  self-build-libdca
+
+# Video Codecs
+#BuildRequires:  xvidcore-devel >= 1.0.2
+#BuildRequires:  x264-devel
+#BuildRequires:  ffmpeg-devel
+# BuildRequires:  self-build-xvidcore >= 1.0.2
+# BuildRequires:  self-build-x264
+# BuildRequires:  self-build-ffmpeg
+
+# FIXME: aften not packaged, add BR when it is
+
+# Finally...
+BuildRequires:  desktop-file-utils
+
+%description
+Avidemux is a free video editor designed for simple cutting, filtering and
+encoding tasks. It supports many file types, including AVI, DVD compatible
+MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
+using projects, job queue and powerful scripting capabilities.
+
+For compatability reasons, avidemux is a meta-package which installs the
+graphical, command line and plugin packages. If you want a smaller setup,
+you may selectively install one or more of the avidemux-* subpackages.
+
+%package cli
+Summary:        CLI for %{name}
+Group:          Applications/Multimedia
+Requires:       %{name} = %{version}-%{release}
+
+%description cli
+This package provides a command-line interface to editing videos with %{name}.
+
+%package gtk
+Summary:        GTK interface for %{name}
+Group:          Applications/Multimedia
+BuildRequires:  gtk2-devel >= 2.8.0
+BuildRequires:  cairo-devel
+# Slightly higher so it is default, but it can be avoided by installing
+# avidemux-qt directly or it can be removed later once avidemux-qt is installed
+Provides:       %{name}-gui = %{version}-%{release}.1
+Requires:       %{name} = %{version}-%{release}
+
+%description gtk
+This package provides the GTK graphical interface for %{name}.
+
+%if %{?with_qt_ui:1} %{!?with_qt_ui:0}
+%package qt
+Summary:        Qt interface for %{name}
+Group:          Applications/Multimedia
+# 4.5.0-9 fixes a failure when there are duplicate translated strings
+# https://bugzilla.redhat.com/show_bug.cgi?id=491514
+BuildRequires:  qt4-devel >= 4.5.0-9
+BuildRequires:  qt4-designer
+Provides:       %{name}-gui = %{version}-%{release}
+Requires:       %{name} = %{version}-%{release}
+
+%description qt
+This package contains the Qt graphical interface for %{name}.
+%endif
+
+%package devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description devel
+This package contains files required to develop with or extend %{name}.
+
+%prep
+%__rm -rf $RPM_BUILD_ROOT
+
+%setup -q -n avidemux_%{version}
+
+# change hardcoded libdir paths
+%ifarch x86_64 ppc64
+sed -i.bak 's/startDir="lib";/startDir="lib64";/' avidemux/ADM_core/src/ADM_fileio.cpp
+sed -i.bak 's/startDir="lib";/startDir="lib64";/' avidemux/main.cpp
+%endif
+
+%patch0 -p1 -b .parallel
+%patch1 -p1 -b .pulse
+%patch2 -p1 -b .qt4
+%patch3 -p1 -b .i18n
+%patch4 -p1 -b .altivec
+%patch5 -p1 -b .cfincludes
+#%patch6 -p1 -b .tmplinktarget
+
+#%patch10 -p1 -b .alsa
+%{!?with_qt_ui:%patch11 -p1 -b .qt4}
+
+%build
+# Out of source build
+%__mkdir_p build && cd build
+%cmake -DAVIDEMUX_INSTALL_PREFIX=%{_prefix} \
+       -DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
+       -DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
+       ..
+%__make %{?_smp_mflags}
+# Create the temp link directory manuall since otherwise it happens too early
+%__mkdir_p %{_pkgbuilddir}/build/%{_lib}
+find %{_pkgbuilddir}/build/avidemux -name '*.so*' | \
+     xargs ln -sft %{_pkgbuilddir}/build/%{_lib}
+
+%__mkdir_p ../build_plugins && cd ../build_plugins
+%cmake -DAVIDEMUX_INSTALL_PREFIX="%{_pkgbuilddir}/build/" \
+       -DAVIDEMUX_SOURCE_DIR="%{_pkgbuilddir}" \
+       -DAVIDEMUX_CORECONFIG_DIR="%{_pkgbuilddir}/build/config" \
+       ../plugins
+%__make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# Temporary workaround since the i18n files aren't being built
+mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
+
+make -C build install DESTDIR=$RPM_BUILD_ROOT
+make -C build_plugins install DESTDIR=$RPM_BUILD_ROOT
+# Install the build configuration for devel package
+install -d -m755 $RPM_BUILD_ROOT%{_includedir}
+install -m644 build/config/ADM_coreConfig.h $RPM_BUILD_ROOT%{_includedir}/ADM_coreConfig.h
+
+# Find and remove all la files
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
+
+# Install .desktop shortcuts
+desktop-file-install --vendor vine \
+    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+    %{SOURCE1}
+
+desktop-file-install --vendor vine \
+    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+    %{SOURCE2}
+
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec %__rm -f {} ';'
+%find_lang %{name}
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING ChangeLog History README TODO
+%{_datadir}/%{name}/
+%{_datadir}/ADM_scripts/
+%{_libdir}/libADM*
+%{_libdir}/ADM_plugins/
+
+%files cli
+%defattr(-,root,root,-)
+%{_bindir}/avidemux2_cli
+
+%files gtk
+%defattr(-,root,root,-)
+%{_bindir}/avidemux2_gtk
+%{_datadir}/applications/*gtk*.desktop
+
+%if %{?with_qt_ui:1} %{!?with_qt_ui:0}
+%files qt
+%defattr(-,root,root,-)
+#{_datadir}/%{name}/i18n/
+%{_bindir}/avidemux2_qt4
+%{_datadir}/applications/*qt*.desktop
+%endif
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/ADM_coreConfig.h
+
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2
+- change release to sync with self-build-avidemux
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1
+- new upstream release
+
+* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.4-1
+- new upstream release
+  - update patches accordingly
+  - build with x264 >= 0.0.0-9.20090522
+- dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch
+
+* Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7
+- corrected release number
+
+* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5
+- changed to PreReq:  self-build-faad2 >= 2.0 from faad2-devel
+- changed to PreReq:  self-build-libmad >= 0.15.1 from libmad-devel
+
+* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4
+- change release to sync with self-build-avidemux
+
+* Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3
+- added avidemux-x264.patch from Gentoo
+
+* Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2
+- applied avidemux-2.4.3-alsa-device-default.patch
+
+* Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1
+- initial build based on RPM Fusion of Fedora package
+  - changed to BuildRequires: gettext from gettext-devel
+  - added BuildRequires: qt4-designer for gtk subpackage
+  - dropped avidemux-2.4.3-qt4.patch
+  
+* Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-5
+- Add CMake patch for PPC64
+- Update patches for 2.4.3
+- Remove outdated libmad patch (Nov. 2007)
+
+* Thu Sep 18 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-4
+- Add another patch to fix ppc64 build (pointer type), first
+  patch was for libmad
+
+* Fri Aug 22 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-3
+- Add patch to fix ppc64 build
+
+* Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-2
+- retag
+
+* Sat Aug 16 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.3-1
+- Update to 2.4.3
+
+* Tue Aug 12 2008 Stewart Adam <s.adam at diffingo.com> - 2.4.2-3
+- ppc64 uint_32 fun
+
+* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 2.4.2-2
+- rebuild
+
+* Sat Jul 19 2008 Thorsten Leemhuis <s.adam at diffingo.com> - 2.4.2-1
+- Update to 2.4.2
+
+* Wed May 21 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-3.20080521svn
+- Disable --new-faad
+- 20080521 subversion snapshot
+
+* Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-2
+- Disable %%{?_smp_mflags}
+
+* Sat Mar 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4.1-1
+- Update to 2.4.1
+- Don't list the bin files twice, revisited
+- Default to GTK frontend
+
+* Wed Feb 20 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-6.20080126svn
+- Make pulseaudio default for sound out
+- Don't list the bin files twice
+- Don't build with arts support
+
+* Fri Feb 15 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-5.20080126svn
+- Don't list the .desktop files twice (bz#1870)
+- Oops, we should have %%{svndate}svn in release tag!
+
+* Sat Feb 2 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-4
+- F-8/F-7 x86_64 does seem to need --with-newfaad
+
+* Fri Feb 1 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-3
+- Update to version 2.4 (20080126svn) and include fixes from devel branch
+
+* Mon Jan 14 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-2
+- Fix many copy/paste errors and desktop file's Exec field
+
+* Sun Jan 13 2008 Stewart Adam <s.adam AT diffingo DOT com> - 2.4-1
+- Update to 2.4 final
+- Split up desktop files and make them pass desktop-file-validate
+- Add structure to split into gtk and qt pacakges
+- Disable qt4 for now, doesn't compile
+
+* Sun Oct 7 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info>3- 2.3.0-4.3
+- move js-include to a place where it is honored
+
+* Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.2
+- Fix macro problem
+- Fix changelog date
+- Rebuild with faad, but don't pass --newfaad
+
+* Sun Oct 7 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4.1
+- Rebuild with no faad
+
+* Sat Oct 6 2007 Stewart Adam <s.adam AT diffingo DOT com> - 2.3.0-4
+- Rebuild for ffmpeg dependency problems
+- Update License: tag per Fedora guidelines
+
+* Sat Jan 13 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-3
+- more features with new BR's: x264-devel libXv-devel
+- make a note regarding the libdca-devel problem
+- remove the "0:" from the versioned BR's
+
+* Thu Jan 04 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.3.0-2
+- don't use smp_mflags during make for now
+
+* Sat Dec 23 2006 kwizart < kwizart at gmail.com > - 2.3.0-1
+- Update to 2.3.0 Final
+- Use find_lang
+
+* Mon Apr 03 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.1.2-1
+- Update to 2.1.2
+
+* 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
+
+* Wed Jan 04 2006 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.1.0-0.lvn.1
+- Update to 2.1.0
+- Drop epoch
+- gtk 2.6 now, so drop FC3 support
+
+* Sat Aug 27 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.3
+- Remove bogus BR ffmpeg-devel (#555)
+
+* Thu Jul 09 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.2
+- Add missing BR desktop-file-utils (thanks to ixs)
+
+* Thu Jul 07 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.42-0.lvn.1
+- Update to 2.0.42
+
+* Sat Jan 22 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.36-0.lvn.1
+- Update to 2.0.34
+- Rename package to avidemux -- no need for avidemux2 afaics
+
+* Sun Nov 21 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.34-0.lvn.1.test1
+- Update to 2.0.34-test1
+- BR gettext, libtool
+
+* Tue Oct 18 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.0.30-0.lvn.1
+- Initial RPM release.

+ 212 - 0
nonfree/self-build-avidemux/self-build-avidemux-vl.spec

@@ -0,0 +1,212 @@
+%define pkgname avidemux
+%define name    self-build-%{pkgname}
+%define version 2.5.2
+%define release 2%{?_dist_release}
+
+%define source0path	%{pkgname}/%{pkgname}_%{version}.tar.gz
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{version}
+Release: 	%{release}
+
+Obsoletes:      %{pkgname}-qt < 2.5.0
+
+Source0:	%{pkgname}-vl.spec
+Source1:        %{pkgname}-gtk.desktop
+Source2:        %{pkgname}-qt.desktop
+
+Source100:         2.5.0-coreImage-parallel-build.patch
+Source101:         avidemux-2.5-pulseaudio-default.patch
+Source102:         avidemux-2.4-qt4.patch
+Source103:         avidemux-2.5-i18n.patch
+Source104:         avidemux-2.5-libmpeg2enc-altivec.patch
+Source105:         avidemux-2.5-checkfunction-includes.patch
+Source106:         avidemux-2.5.1-tmplinktarget.patch
+
+Source110:         avidemux-2.4.3-alsa-device-default.patch
+Source111:         avidemux-2.5.2-no-qt4-ui.patch
+
+License:	GPLv2+
+Group:		Restricted Software
+
+Requires(post):		self-build-setup >= 0.9.9
+
+Requires(post):	cmake
+Requires(post):  gettext
+Requires(post):  nasm >= 0.98.38
+Requires(post):  libxml2-devel >= 2.6.8
+Requires(post):  fontconfig-devel
+Requires(post):  freetype2-devel
+Requires(post):  js-devel
+Requires(post):  libXv-devel
+Requires(post):  libXmu-devel
+Requires(post):	libsamplerate-devel
+Requires(post):	jack-audio-connection-kit-devel
+Requires(post):  alsa-lib-devel >= 1.0.3
+Requires(post):  esound-devel >= 0.2.0
+Requires(post):  SDL-devel >= 1.2.7
+Requires(post):  libogg-devel >= 1.1
+Requires(post):  libvorbis-devel >= 1.0.1
+Requires(post):  self-build-faad2 >= 2.0
+Requires(post):  self-build-libmad >= 0.15.1
+Requires(post):  self-build-a52dec >= 0.7.4
+Requires(post):  self-build-faac >= 1.24
+Requires(post):  self-build-lame >= 3.96.1
+Requires(post):  self-build-libdca
+Requires(post):  self-build-xvidcore >= 1.0.2
+Requires(post):  self-build-x264 >= 0.0.0-9.20090522
+Requires(post):  self-build-ffmpeg
+Requires(post):  desktop-file-utils
+Requires(post):  gtk2-devel >= 2.8.0
+Requires(post):  cairo-devel
+Requires(post):  qt4-devel
+Requires(post):  qt4-designer
+
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Packager:	munepi
+
+%description
+Avidemux is a free video editor designed for simple cutting, filtering and
+encoding tasks. It supports many file types, including AVI, DVD compatible
+MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
+using projects, job queue and powerful scripting capabilities.
+
+[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
+Avidemux は簡単なカット,フィルターリング,エンコード作業のために
+デザインされたフリーな動画エディターです.
+種々のコーデックを使い,AVI, DVD 互換 MPEG, MP4, ASF を含む
+たくさんのファイル形式に対応しています.
+タスクは,プロジェクトやジョブキュー,強力なスクリプト処理により
+自動的に行われます.
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{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 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE101} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE102} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE103} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE104} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE105} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE106} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE110} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE111} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec \
+    http://download{,2}.berlios.de/%{source0path} 3110000
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2
+- renamed %%{Source0} to avidemux-vl.spec
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1
+- new upstream release
+  - update patches accordingly
+  - added Obsoletes: %{pkgname}-qt < 2.5.0
+- applied a progress bar to show approximately building time
+
+* Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.4.4-2
+- applied avidemux-2.4.4-cmake.patch
+- check version between original spec and self-build spec in %%prep
+
+* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.4-1
+- new upstream release
+  - update patches accordingly
+  - build with x264 >= 0.0.0-9.20090522
+- dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch
+- added BuildArch: noarch
+- avoided to execute self-build-rpm.sh on RPM transaction
+  - moved %%post actions to %%posttrans
+
+* Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7
+- corrected release number in avidemux.spec
+- dropped ExclusiveArch:	
+
+* Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.3-6
+- add ppc to ExclusiveArch
+
+* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5
+- changed to PreReq:  self-build-faad2 >= 2.0 from faad2-devel
+- changed to PreReq:  self-build-libmad >= 0.15.1 from libmad-devel
+
+* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4
+- fixed %%files section
+
+* Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3
+- added avidemux-x264.patch from Gentoo
+
+* Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2
+- applied avidemux-2.4.3-alsa-device-default.patch
+
+* Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1
+- initial build based on RPM Fusion of Fedora package
+  - changed to BuildRequires: gettext from gettext-devel
+  - added BuildRequires: qt4-designer for gtk subpackage
+  - dropped avidemux-2.4.3-qt4.patch
+
+### end of file

+ 185 - 0
nonfree/self-build-faac/faac-vl.spec

@@ -0,0 +1,185 @@
+%define name faac
+%define version 1.28
+%define release 7%{?_dist_release}
+
+%define enable_libmp4v2_external 1
+
+Summary: Reference encoder and encoding library for MPEG2/4 AAC
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Source: http://prdownloads.sourceforge.net/faac/faac-%{version}.tar.bz2
+Patch0: http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-libs/faac/files/faac-1.28-external-libmp4v2.patch
+## this patch is based on http://launchpadlibrarian.net/33120980/mp4v2-strcasestr.diff
+Patch1: mp4v2-strcasestr-vine.diff
+License: LGPLv2+
+Group: Applications/Multimedia
+URL: http://www.audiocoding.com/
+
+BuildRequires: nkf
+BuildRequires: autoconf, automake, libtool, gcc-c++ 
+%if %{enable_libmp4v2_external}
+# *-devel pacages provided by other self-build-* should only be listed
+# in self-build-%{name}.spec as PreReq.
+# BuildRequires: libmp4v2-devel
+%endif
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+%description
+FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
+COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
+multichannel and gapless encoding.
+
+%package devel
+Summary: Development libraries of the FAAC AAC encoder
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description devel
+FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW
+COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports
+multichannel and gapless encoding.
+
+This package contains development files and documentation for libfaac.
+
+
+%if !%{enable_libmp4v2_external}
+%package -n libmp4v2
+Summary:        Library for working with files using the mp4 container format
+Group:          System Environment/Libraries
+
+%description -n libmp4v2
+The libmp4v2 library provides an abstraction layer for working with files
+using the mp4 container format. This library is developed by mpeg4ip project
+and is an exact copy of the library distributed in the mpeg4ip package.
+
+This package is built with libmp4v2 internal from %{name}-%{version}-%{release}.
+
+%package -n libmp4v2-devel
+Summary:        Development files for the mp4v2 library
+Group:          Development/Libraries
+Requires:       libmp4v2 = %{version}-%{release}
+
+%description -n libmp4v2-devel
+The libmp4v2 library provides an abstraction layer for working with files
+using the mp4 container format. This library is developed by mpeg4ip project
+and is an exact copy of the library distributed in the mpeg4ip package.
+
+This package contains development files for libmp4v2.
+
+This package is built with libmp4v2 internal from %{name}-%{version}-%{release}.
+%endif
+
+
+%prep
+%setup -q
+#find . -type f -print|xargs nkf --unix --overwrite 
+%if %{enable_libmp4v2_external}
+%patch0 -p1 -b .mp4v2
+%patch1 -p1 -b .mp4v2
+#touch -r configure.in.mp4v2 configure.in
+%endif
+
+# # avoid to append the string "2005-02-02" to the tag Requires:
+# chmod 644 ChangeLog
+
+# # modify configure.in to escape error
+# %__mv configure.in configure.in.org
+# %__sed -e 's/^CFLAGS=.*$/CFLAGS="-O2 -Wall"/' configure.in.org > configure.in
+
+
+%build
+sh bootstrap
+%configure \
+    --disable-static \
+%if !%{enable_libmp4v2_external}
+    --with-mp4v2
+%endif
+   
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install DESTDIR=%{buildroot}
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%post
+/sbin/ldconfig 2>/dev/null
+
+%postun
+/sbin/ldconfig 2>/dev/null
+
+
+%files 
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING ChangeLog NEWS README TODO docs/*
+%{_bindir}/*
+%{_libdir}/*.so.*
+%{_mandir}/man1/%{name}*
+
+%files devel
+%defattr(-,root,root,-)
+%exclude %{_libdir}/*.la
+%{_libdir}/*.so
+%{_includedir}/*.h
+
+%if !%{enable_libmp4v2_external}
+%files -n libmp4v2
+%defattr(-,root,root,-)
+%{_libdir}/libmp4v2.so.*
+
+%files -n libmp4v2-devel
+%defattr(-,root,root,-)
+%{_libdir}/libmp4v2.so
+%{_libdir}/libmp4v2.a
+%endif
+
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-7
+- change release to sync with self-build-faac
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-6
+- applied mp4v2-strcasestr.diff from lauchpad
+  - fixed wrong declaration of strcasestr() in mpeg4ip.h
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-5
+- rebuilt with mp4v2 v1.9.1
+  - applied faac-1.28-external-libmp4v2.patch from Gentoo Linux
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-4
+- change release to sync with self-build-faac
+
+* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-3
+- added BuildRequires: nkf
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-2
+- change release to sync with self-build-faac
+
+* Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-1
+- new upstream release
+
+* Sat Jan 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.26-2
+- fixed Summary: , %%description
+  - removed internal mp4v2
+
+* Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.26-1
+- new upstream release
+- added --disable-static in %%configure
+
+* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.25-2
+- spec in utf8
+- remove *.la
+
+* Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.25-1
+- apply new versioning policy
+
+* Sat Mar 8 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.25-0vl1
+- initial build 
+
+### end of file

+ 183 - 0
nonfree/self-build-faac/self-build-faac-vl.spec

@@ -0,0 +1,183 @@
+%define pkgname faac
+%define name	self-build-%{pkgname}
+%define version 1.28
+%define release	7%{?_dist_release}
+
+%define enable_libmp4v2_external 1
+
+%define sourceurl0	http://prdownloads.sourceforge.net/faac/%{pkgname}-%{version}.tar.bz2
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{version}
+Release: 	%{release}
+Source0:	%{pkgname}-vl.spec
+Source10:	http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-libs/faac/files/faac-1.28-external-libmp4v2.patch
+Source11:	mp4v2-strcasestr-vine.diff
+
+License:	LGPLv2+
+Group:		Restricted Software
+
+Requires(post):		self-build-setup >= 0.9.9
+
+# (build)requies of target package.
+Requires(post):		nkf
+Requires(post):		autoconf, automake, libtool, gcc-c++
+%if %{enable_libmp4v2_external}
+Requires(post):         self-build-libmp4v2
+%endif
+
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Packager:	munepi
+
+%description
+FAAC is an AAC audio encoder. It currently supports MPEG-4 
+LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW
+MPEG-2 object types. It also supports multichannel and 
+gapless encoding.
+
+%if !%{enable_libmp4v2_external}
+The libmp4v2 library provides an abstraction layer for
+working with files using the mp4 container format. This
+library is developed by mpeg4ip project and is an exact copy
+of the library distributed in the mpeg4ip package.
+%endif
+
+If you install this package, it automatically downloads 
+source code, compile it, and create
+rpm packages of %{pkgname}-%{version} and libmp4v2-%{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
+FAAC は AAC オーディオエンコーダーです.現在 MPEG-4 LTP, 
+Main/Low Complexity object types, Main/LOW MPEG-2 object 
+types をサポートしています.またマルチチャンネルやギャップ
+レスエンコーディングもサポートしています.
+
+%if !%{enable_libmp4v2_external}
+libmp4v2 ライブラリは mp4 コンテナフォーマットを用いたファイ
+ルで動作するものに対して抽象レイヤーを提供します.このライブ
+ラリは mpeg4ip プロジェクトにより開発されており,mpeg4ip パッ
+ケージに分散されているライブラリの完全なコピーです.
+%endif
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{pkgname}-%{version}
+と libmp4v2-%{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 %{SOURCE10} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE11} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 25000
+/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
+                                 %{pkgname}-devel-%{version}-%{release}
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-7
+- renamed %%{Source0} to faac-vl.spec
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-6
+- applied mp4v2-strcasestr.diff from lauchpad
+  - fixed wrong declaration of strcasestr() in mpeg4ip.h
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-5
+- rebuilt with mp4v2 v1.9.1
+  - applied faac-1.28-external-libmp4v2.patch from Gentoo Linux
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-4
+- applied a progress bar to show approximately building time
+
+* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-3
+- added Requires(post): nkf
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-2
+- added BuildArch: noarch
+- avoided to execute self-build-rpm.sh on RPM transaction
+  - moved %%post actions to %%posttrans
+
+* Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-1
+- new upstream release
+
+* Sat Jan 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.26-2
+- fixed Summary: , %%description
+  - removed internal mp4v2
+
+* Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.26-1
+- new upstream release
+- added PreReq: self-build-libmp4v2
+
+* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.25-2
+- spec in utf8
+- remove *.la
+
+* Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.25-1
+- run pre-allocate-rpm.sh in %%post
+- set PreReq: self-build-setup >= 0.8
+- apply new versioning policy
+
+* Sat Mar 8 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.25-0vl1
+- initial build
+
+### end of file

+ 152 - 0
nonfree/self-build-faad2/faad2-vl.spec

@@ -0,0 +1,152 @@
+%define xmmsinputdir %{_libdir}/xmms/Input
+#%define date	20040923
+
+Summary: Library and frontend for decoding MPEG2/4 AAC
+Summary(ja): MPEG2/4 AAC のデコード用ライブラリおよびフロントエンド
+Name: faad2
+Version: 2.7
+Release: 4%{?_dist_release}
+License: GPLv2+
+Group: Applications/Multimedia
+URL: http://www.audiocoding.com/
+Source: %{name}-%{version}.tar.gz
+#Source: faad2-%{date}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: autoconf, automake, libtool
+BuildRequires: gcc-c++, zlib-devel, sysfsutils-devel
+BuildRequires: id3lib-devel, gtk+-devel
+%{?_with_xmms:BuildRequires: xmms-devel}
+
+%description
+FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
+written from scratch.
+
+%if %{?_with_xmms:1}%{!?_with_xmms:0}
+%package -n xmms-aac
+Summary: X MultiMedia System input plugin to play AAC files
+Group: Applications/Multimedia
+Requires: %{name} = %{version}, xmms, id3lib
+Provides: xmms-%{name} = %{version}-%{release}
+
+%description -n xmms-aac
+This xmms plugin reads AAC files with and without ID3 tags (version 2.x).
+AAC files are MPEG2 or MPEG4 files that can be found in MPEG4 audio files
+(.mp4). MPEG4 files with AAC inside can be read by RealPlayer or Quicktime.
+%endif
+
+
+%package devel
+Summary: Development libraries of the FAAD 2 AAC decoder
+Summary(ja): FAAD 2 AAC デコーダの開発用ライブラリ
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
+written from scratch.
+
+This package contains development files and documentation for libfaad.
+
+
+%prep
+%setup -q
+
+### Required to make automake < 1.7 work
+%{__perl} -pi -e 's|dnl AC_PROG_CXX|AC_PROG_CXX|' configure.in
+
+%build
+# This is what the README.linux file recommends
+autoreconf -vif
+%configure \
+    --disable-static \
+    %{?_with_xmms:--with-xmms} \
+    --with-mpeg4ip \
+    --without-drm
+#    --with--mp4v2 \
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install DESTDIR=%{buildroot}
+
+# Remove this wrong include
+#perl -pi -e 's|#include <systems.h>||g' %{buildroot}%{_includedir}/mpeg4ip.h
+
+## remove unuse files
+rm -rf $RPM_BUILD_ROOT%{_libdir}/*.{la,a}
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-, root, root, 0755)
+%doc AUTHORS COPYING ChangeLog NEWS README TODO
+%{_bindir}/*
+%{_libdir}/*.so.*
+
+%if %{?_with_xmms:1}%{!?_with_xmms:0}
+%files -n xmms-aac
+%defattr(-, root, root, 0755)
+%doc plugins/xmms/AUTHORS plugins/xmms/NEWS
+%doc plugins/xmms/README plugins/xmms/TODO
+#%exclude %{xmmsinputdir}/*.a
+%exclude %{xmmsinputdir}/*.la
+%{xmmsinputdir}/*.so
+%endif
+
+%files devel
+%defattr(-, root, root, 0755)
+%{_includedir}/*
+#%{_libdir}/*.a
+#%{_libdir}/*.la
+%{_libdir}/*.so
+#exclude %{_libdir}/*.la
+
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-4
+- change release to sync with self-build-faad2
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-3
+- change release to sync with self-build-faad2
+
+* Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-2
+- changed to --without-drm in configure options
+
+* Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-1
+- new upstream release
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.6.1-3
+- change release to sync with self-build-faad2
+
+* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.6.1-2
+- applied faad2-cve-2008-4201.patch
+- added %%configure options: --disable-static
+- using %{?_with_xmms}
+
+* Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.6.1-1vl5
+- applied new versioning policy, spec in utf-8
+- removed *.la
+
+* Sun Dec 30 2007 Satoshi MACHINO <machino@vinelinux.org> 2.6.1-0vl1
+- new upstream release
+- dropped patch0
+
+* Mon Dec 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-1vl1
+- new upstream release based on DAG packages
+  * Fri Dec 15 2006 Matthias Saou <http://freshrpms.net/> 2.5-1 - 5002+/thias
+  - Update to 2.5.
+  - Completely remove xmms/bmp plugin, it's a real mess anyway. Use audacious.
+  - Rip out libmp4v2 too, it's best as a separate package.
+  - Add libsysfs-devel build requirement, as it seems configure checks for it.
+- added Japanese summary
+
+* Wed Nov 10 2004 Satoshi MACHINO <machino@vinelinux.org> 2.0-0.%{date}vl1
+- Built for VineLinux

+ 136 - 0
nonfree/self-build-faad2/self-build-faad2-vl.spec

@@ -0,0 +1,136 @@
+%define pkgname faad2
+%define name	self-build-%{pkgname}
+%define version 2.7
+%define release	4%{?_dist_release}
+
+%define sourceurl0	http://prdownloads.sourceforge.net/faac/%{pkgname}-%{version}.tar.gz
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{version}
+Release: 	%{release}
+
+Obsoletes:	faad2 < 2.7, faad2-devel < 2.7
+
+Source0:	%{pkgname}-vl.spec
+
+License:	GPLv2+
+Group:		Restricted Software
+
+Requires(post):		self-build-setup >= 0.9.9
+
+Requires(post): autoconf, automake, libtool
+Requires(post): gcc-c++, zlib-devel, sysfsutils-devel
+Requires(post): id3lib-devel, gtk+-devel
+%{?_with_xmms:Requires(post): xmms-devel}
+
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Packager:	munepi
+
+%description
+FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
+written from scratch.
+
+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
+FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
+written from scratch.
+
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{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}
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 40000
+/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
+                                 %{pkgname}-devel-%{version}-%{release}
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-4
+- renamed %%{Source0} to faad2-vl.spec
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-3
+- applied a progress bar to show approximately building time
+
+* Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-2
+- change release to sync with faad2.spec
+
+* Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.7-1
+- new upstream release
+- check version between original spec and self-build spec in %%prep
+- added Obsoletes: faad2 < 2.7, faad2-devel < 2.7
+  - changed so name to libfaad.so.2
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.6.1-3
+- added BuildArch: noarch
+- avoided to execute self-build-rpm.sh on RPM transaction
+  - moved %%post actions to %%posttrans
+
+* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.6.1-2
+- initial bulid for self-build

+ 198 - 0
nonfree/self-build-ffmpeg-mh/ffmpeg-mh-vl.spec

@@ -0,0 +1,198 @@
+%define name ffmpeg-mh
+%define version 0.33
+%define svndate 051130
+%define release 12%{?_dist_release}
+
+%define ffmpeg_mh ffmpeg_%{svndate}
+
+# %define amrnbver 7.1.0.2
+# %define amrwbver 7.0.0.3
+#% define _with_amr 1
+
+%define _with_x264_mh 1
+%define x264_mh x264_051028
+
+Summary: 3GP Converter (Keitai Douga Henkan-kun) for UNIX---FFmpeg Mobile Hack version
+Summary(ja): Windows 用携帯動画変換君(3GP Converter)の UNIX 版
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Source: http://www.nurs.or.jp/~calcium/3gpp/sources/ffmpeg-%{svndate}-%{version}.tar.gz
+# x264_051028.tar.gz: from http://mobilehackerz.jp/contents?plugin=attach&refer=3GPConv%2FSources&openfile=x264_051028.tar.gz
+# on http://mobilehackerz.jp/contents/3GPConv/Sources
+%if %{_with_x264_mh}
+Source1: x264_051028.tar.gz
+%endif
+# Source1: http://ftp.penguin.cz/pub/users/utx/amr/amrnb-%{amrnbver}.tar.bz2
+# Source2: http://ftp.penguin.cz/pub/users/utx/amr/amrwb-%{amrwbver}.tar.bz2
+Patch: http://can.homeunix.org/sw/psp/ffmpeg_psp/ffmpeg-mh-unix.patch
+#Patch1: ffmpeg-mh-include-amr.patch
+Patch2: ffmpeg-mh-0.33-disable-texi2html.patch
+License: GPL
+Group: Applications/Multimedia
+URL: http://www.nurs.or.jp/~calcium/3gpp/
+
+#Requires: 
+BuildRequires: zlib-devel, SDL-devel, imlib2-devel
+#BuildRequires: texi2html
+BuildRequires: libogg-devel, libvorbis-devel, libtheora-devel
+# *-devel pacages provided by other self-build-* should only be listed
+# in self-build-%{name}.spec as PreReq.
+#BuildRequires: xvidcore-devel, faac-devel, lame-devel
+#BuildRequires: x264-devel, libdca-devel, a52dec-devel, faad2-devel
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+%description
+FFMpeg is a complete and free Internet live audio and video
+broadcasting solution for Linux/Unix. It also includes a digital
+VCR. It can encode in real time in many formats including MPEG1 audio
+and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
+
+ffmpeg-mh is a 3GP Converter for UNIX. It is a FFmpeg Mobile Hack version 
+under unix, is enoughly customized for many mobiles from original sources 
+of ffmpeg. 
+
+%description -l ja
+FFMpeg は Linux/Unix に対する完全にフリーなインターネットライブ
+オーティオ・ビデオブロードキャスティングソリューションです.
+またデジタル VCR を含んでいます.MPEG1 オーディオ・ビデオ,
+MPEG4, h263, ac3, asf, avi, real, mjpeg, flash を含む
+多様なフォーマットをリアルタイムにエンコードすることができます.
+
+ffmpeg-mh は Windows 用携帯動画変換君(3GP Converter)の UNIX 版です.
+FFmpeg のモバイル端末向けに改良されたバージョンで,オリジナルのソースから
+モバイル向けにたくさん調整されています.
+
+%prep
+%setup -q -n %{ffmpeg_mh}
+%patch -p1
+#%patch1 -p1 -b include
+
+# tar jxvf %{SOURCE1}
+# tar jxvf %{SOURCE2}
+
+## use x264 for Mobile Hack version
+%if %{_with_x264_mh}
+tar zxvf %{SOURCE1}
+%endif
+
+%build
+# ## build amr
+# cd amrnb-%{amrnbver}
+# ./configure \
+#     --prefix=${RPM_BUILD_DIR}/%{ffmpeg_mh} \
+#     --includedir=${RPM_BUILD_DIR}/%{ffmpeg_mh}/include/amr \
+#     --enable-static --disable-shared
+# %{__make} %{?_smp_mflags} OPT_CFLAGS="$RPM_OPT_FLAGS"
+# %{__make} install
+# cd ..
+# cd amrwb-%{amrwbver}
+# ./configure \
+#     --prefix=${RPM_BUILD_DIR}/%{ffmpeg_mh} \
+#     --includedir=${RPM_BUILD_DIR}/%{ffmpeg_mh}/include/amr_float \
+#     --enable-static --disable-shared
+# %{__make} %{?_smp_mflags} OPT_CFLAGS="$RPM_OPT_FLAGS"
+# %{__make} install
+# cd ..
+
+## build x264 for Mobile Hack version
+%if %{_with_x264_mh}
+cd %{x264_mh}
+./configure \
+    --prefix=${RPM_BUILD_DIR}/%{ffmpeg_mh} \
+    --enable-pthread \
+    --enable-static \
+    --disable-shared
+%__make
+%__make install
+cd ..
+%endif
+
+## configure ffmpeg-mh
+./configure \
+    --prefix=%{_prefix} \
+    --incdir=%{_includedir}/%{name} \
+    --libdir=%{_libdir} \
+    --shlibdir=%{_libdir} \
+    --mandir=%{_mandir} \
+    %{?_with_x264_mh:--extra-cflags=-I${RPM_BUILD_DIR}/%{ffmpeg_mh}/include} \
+    %{?_with_x264_mh:--extra-ldflags=-L${RPM_BUILD_DIR}/%{ffmpeg_mh}/lib} \
+    %{?_with_x264_mh:--enable-x264} \
+    --disable-debug \
+    --enable-mp3lame \
+    --enable-libogg \
+    --enable-vorbis \
+    --enable-faad \
+    --enable-faac \
+    --enable-xvid \
+    --enable-a52 \
+    %{?_with_amr:--enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb} \
+    --enable-pp \
+    --enable-pthreads \
+    --enable-gpl \
+    --enable-static \
+    --disable-shared \
+    --disable-ffserver \
+    --disable-ffplay
+
+## build ffmpeg-mh
+%{__make} %{?_smp_mflags}
+
+%install
+%{__rm} -rf $RPM_BUILD_ROOT
+
+## install ffmpeg-mh
+install -d -m755 %{buildroot}/%{_bindir}
+install -m 755 ffmpeg %{buildroot}/%{_bindir}/%{name}
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/ffmpeg-mh
+
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.33-12
+- change release to sync with self-build-ffmpeg-mh
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-11
+- rebuild
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-10
+- change release to sync with self-build-ffmpeg-mh
+
+* Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-9
+- applied ffmpeg-mh-0.33-disable-texi2html.patch
+  - dropped BuildRequires: texi2html
+
+* Sun Feb 8 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-8
+- changed to PreReq:  self-build-faad2 >= 2.0 from faad2-devel 
+
+* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-7
+- change release to sync with self-build-ffmpeg-mh
+
+* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-6
+- added x264_051028 for Mobile Hack version
+- dropped BuildRequires: self-build-x264
+
+* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-5
+- spec in utf8
+- droppd BuildRequires: xvidcore-devel, faac-devel, lame-devel
+  BuildRequires: x264-devel, libdca-devel, a52dec-devel
+  (*-devel pacages provided by other self-build-*) in ffmpeg-mh.spec
+
+* Thu Apr 10 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-1vl4
+- build with new versioning policy
+
+* Thu Mar 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-0vl2
+- [self-build-ffmpeg-mh.spec]
+  For all pre-required package that is provied by self-build,  
+  changed to its self-build package
+
+* Tue Mar 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-0vl1
+- initial build for Vine Linux 4.2
+  with ffmpeg-051130-0.33
+
+### end of file

+ 208 - 0
nonfree/self-build-ffmpeg-mh/self-build-ffmpeg-mh-vl.spec

@@ -0,0 +1,208 @@
+%define pkgname ffmpeg-mh
+%define name	self-build-%{pkgname}
+%define version 0.33
+%define svndate 051130
+%define release	12%{?_dist_release}
+
+%define ffmpeg_mh ffmpeg_%{svndate}
+
+#%%define sourceurl http://www.nurs.or.jp/~calcium/3gpp/sources/ffmpeg-%{svndate}-%{version}.tar.gz
+
+# %define amrnbver 7.1.0.2
+# %define amrwbver 7.0.0.3
+#% define _with_amr 1
+
+%define _with_x264_mh 1
+%define x264_mh x264_051028
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja):	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{version}
+Release:	%{release}
+Source0:	%{pkgname}-vl.spec
+#Source1:	http://mobilehackerz.jp/contents?plugin=attach&refer=3GPConv%2FSources&openfile=ffmpeg-%{svndate}-%{version}.tar.gz
+Source1:	ffmpeg-%{svndate}-%{version}.tar.gz
+# x264_051028.tar.gz: from http://mobilehackerz.jp/contents?plugin=attach&refer=3GPConv%2FSources&openfile=x264_051028.tar.gz
+# on http://mobilehackerz.jp/contents/3GPConv/Sources
+%if %{_with_x264_mh}
+Source2:        x264_051028.tar.gz
+%endif
+Source10:       ffmpeg-mh-unix.patch
+#Source11:       ffmpeg-mh-include-amr.patch
+Source12:       ffmpeg-mh-0.33-disable-texi2html.patch 
+
+License:	GPL
+Group:		Restricted Software
+
+Requires(post):		self-build-setup >= 0.9.9
+
+# (build)requies of target package.
+Requires(post):		zlib-devel, SDL-devel, imlib2-devel
+#Requires(post):	texi2html
+Requires(post):		libogg-devel, libvorbis-devel, libtheora-devel
+Requires(post):		self-build-xvidcore self-build-faac self-build-lame 
+Requires(post):		self-build-libdca self-build-a52dec self-build-faad2
+#Requires(post):		self-build-x264
+##Requires(post):		xvidcore-devel, faac-devel, lame-devel
+##Requires(post):		x264-devel, libdca-devel, a52dec-devel
+
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Packager:	munepi
+
+%description
+FFMpeg is a complete and free Internet live audio and video
+broadcasting solution for Linux/Unix. It also includes a digital
+VCR. It can encode in real time in many formats including MPEG1 audio
+and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
+
+ffmpeg-mh is a 3GP Converter for UNIX. It is a FFmpeg Mobile Hack version 
+under unix, is enoughly customized for many mobiles from original sources 
+of ffmpeg. 
+
+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]
+Before building this package, you need to install the following 
+self-build packages: 
+self-build-xvidcore self-build-faac self-build-lame self-build-x264 self-build-libdca self-build-a52dec
+
+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
+FFMpeg は Linux/Unix に対する完全にフリーなインターネットライブ
+オーティオ・ビデオブロードキャスティングソリューションです.
+またデジタル VCR を含んでいます.MPEG1 オーディオ・ビデオ,
+MPEG4, h263, ac3, asf, avi, real, mjpeg, flash を含む
+多様なフォーマットをリアルタイムにエンコードすることができます.
+
+ffmpeg-mh は Windows 用携帯動画変換君(3GP Converter)の UNIX 版です.
+FFmpeg のモバイル端末向けに改良されたバージョンで,オリジナルのソースから
+モバイル向けにたくさん調整されています.
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{pkgname}-%{version}
+の rpm パッケージを作成します。
+また apt-get コマンドや synaptic パッケージマネージャから実行
+した場合は、作成された rpm パッケージのインストールも自動的に
+行います。
+
+[注意]
+このパッケージをビルドするより前に,以下の self-build パッケージを
+インストールしておく必要があります.
+self-build-xvidcore self-build-faac self-build-lame self-build-x264 self-build-libdca self-build-a52dec
+
+コンパイルに必要な多くの関連パッケージを要求するので通常より
+ディスクの領域を多く消費します。
+またインストール時にコンパイルを行うため、通常より時間がかか
+る場合があります。(環境にもよりますが数分から数十分程度)
+
+[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 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%if %{_with_x264_mh}
+%{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%endif
+%{__install} -m 644 %{SOURCE10} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE12} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec 160000
+#/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release}
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.33-12
+- renamed %%{Source0} to ffmpeg-mh-vl.spec
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.33-11
+- rebuild
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-10
+- avoided to execute self-build-rpm.sh on RPM transaction
+  - moved %%post actions to %%posttrans
+
+* Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-9
+- added BuildArch: noarch
+- added ffmpeg-mh-0.33-disable-texi2html.patch
+  - dropped PreReq: texi2html
+
+* Sun Feb 8 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-8
+- changed to PreReq:  self-build-faad2 >= 2.0 from faad2-devel
+
+* Sun Feb 1 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-7
+- fixed %%files section
+
+* Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-6
+- added x264_051028 for Mobile Hack version
+- dropped PreReq: self-build-x264
+
+* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-5
+- spec in utf8
+- droppd BuildRequires: xvidcore-devel, faac-devel, lame-devel
+  BuildRequires: x264-devel, libdca-devel, a52dec-devel
+  (*-devel pacages provided by other self-build-*) in ffmpeg-mh.spec
+
+* Thu Apr 10 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-1vl4
+- build with new versioning policy
+
+* Wed Apr 09 2008 Atsushi SHICHI <ats777@gmail.com> 0.33-0vl3
+- add "Source1: ffmpeg-%{svndate}-%{version}.tar.gz",
+  include Source1 in the binary package.
+
+* Tue Mar 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-0vl2
+- For all pre-required package that is provied by self-build,  
+  changed to its self-build package
+
+* Tue Mar 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-0vl1
+- initial build for Vine Linux 4.2
+  with ffmpeg-051130-0.33
+
+### end of file

+ 259 - 0
nonfree/self-build-ffmpeg/ffmpeg-vl.spec

@@ -0,0 +1,259 @@
+#TODO: Build with openjpeg
+%define name	ffmpeg
+%define version	0.5
+%define svndate	20100216
+%define release	8%{?svndate:.%svndate}%{?_dist_release}
+
+Summary:	Digital VCR and streaming server
+Name:		%{name}
+Version:	%{version}
+Release:	%{release}
+#Source:		%{name}-%{version}.tar.bz2
+Source:		%{name}-%{?svndate:%svndate}.tar.bz2
+Source1:        %{name}-snapshot.sh
+
+# pre-built man files
+Source90:       ffmpeg.1.gz
+Source91:       ffplay.1.gz
+Source92:       ffserver.1.gz
+
+# get rid of textrels on x86_64 in yasm code (from RPM Fusion)
+#Patch0:         %{name}-textrel.patch
+
+License:	GPLv2+
+Group:		Applications/Multimedia
+URL:		http://ffmpeg.org/
+
+BuildRequires:  bzip2-devel
+BuildRequires:	gsm-devel
+BuildRequires:	imlib2-devel
+BuildRequires:	libdc1394-devel
+BuildRequires:	libraw1394-devel
+BuildRequires:	libtheora-devel
+BuildRequires:  libvdpau-devel
+BuildRequires:	libvorbis-devel
+##BuildRequires:  openjpeg-devel
+BuildRequires:	SDL-devel
+BuildRequires:  speex-devel
+##BuildRequires:	texi2html
+BuildRequires:	zlib-devel 
+BuildRequires:	libogg-devel
+%ifarch %{ix86} x86_64
+BuildRequires:	yasm
+%endif
+# *-devel packages provided by other self-build-* should only be listed
+# in self-build-%{name}.spec as PreReq.
+#BuildRequires: xvidcore-devel, faac-devel, lame-devel
+#BuildRequires: x264-devel, libdca-devel, a52dec-devel
+#BuildRequires: faad2-devel
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+%description
+FFMpeg is a complete and free Internet live audio and video
+broadcasting solution for Linux/Unix. It also includes a digital
+VCR. It can encode in real time in many formats including MPEG1 audio
+and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
+
+%package libs
+Group: System Environment/Libraries
+Summary: Libraries for %{name}
+Group: System Environment/Libraries
+
+%description libs
+FFMpeg is a complete and free Internet live audio and video
+broadcasting solution for Linux/Unix. It also includes a digital
+VCR. It can encode in real time in many formats including MPEG1 audio
+and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
+
+This package contains the libraries for %{name}.
+
+%package devel
+Summary: Development package for %{name}
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+FFMpeg is a complete and free Internet live audio and video
+broadcasting solution for Linux/Unix. It also includes a digital
+VCR. It can encode in real time in many formats including MPEG1 audio
+and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
+
+This package contains development files for %{name}.
+
+
+%prep
+%setup -q -n %{name}-%{svndate}
+#% setup -q
+#%patch0 -p1 -b .textrel
+
+%build
+%ifarch ppc
+# compile with -mlongcall on ppc/ppc64 (rf804)
+export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mlongcall"
+%endif
+
+./configure \
+    --prefix=%{_prefix} \
+    --incdir=%{_includedir}/%{name} \
+    --shlibdir=%{_libdir} \
+    --libdir=%{_libdir} \
+    --mandir=%{_mandir} \
+    --arch=%{_target_cpu} \
+%ifarch %{ix86}
+    --cpu=%{_target_cpu} \
+%endif
+%ifarch ppc
+    --cpu=g3 \
+%endif
+    --enable-runtime-cpudetect \
+    --extra-cflags="$RPM_OPT_FLAGS" \
+    %{?_with_opencore_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3} \
+    --enable-bzlib \
+    --enable-libdc1394 \
+    --enable-libfaac --enable-nonfree \
+    --enable-libfaad \
+    --enable-libgsm \
+    --enable-libmp3lame \
+    %{?_with_openjpeg:--enable-libopenjpeg} \
+    --enable-libtheora \
+    --enable-libvorbis \
+    --enable-libx264 \
+    --enable-libxvid \
+    --enable-x11grab \
+    --enable-avfilter \
+    --enable-avfilter-lavf \
+    --enable-postproc \
+    --enable-swscale \
+    --enable-pthreads \
+    --disable-static \
+    --enable-shared \
+    --enable-gpl \
+    --disable-debug \
+    --disable-stripping
+
+%{__make} %{?_smp_mflags}
+#% {__make}
+#%{__make} documentation
+
+
+%install
+%__make install DESTDIR=$RPM_BUILD_ROOT
+
+## install man
+%__mkdir_p $RPM_BUILD_ROOT%{_mandir}/man1/
+%__install %{SOURCE90} %{SOURCE91} %{SOURCE92} $RPM_BUILD_ROOT%{_mandir}/man1/
+
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING.* CREDITS Changelog README doc/ffserver.conf
+%{_bindir}/ffmpeg
+%{_bindir}/ffplay
+%{_bindir}/ffserver
+%{_mandir}/man1/ffmpeg.1*
+%{_mandir}/man1/ffplay.1*
+%{_mandir}/man1/ffserver.1*
+%{_datadir}/ffmpeg
+
+
+%files libs
+%defattr(-,root,root,-)
+%{_libdir}/lib*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc MAINTAINERS doc/APIchanges doc/TODO doc/*.txt
+%{_includedir}/ffmpeg
+%{_libdir}/pkgconfig/lib*.pc
+%{_libdir}/lib*.so
+
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-8.20100216
+- change release to sync with self-build-ffmpeg
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-7.20100216
+- updated source snapshot 20100216
+  - rebuild with recent x264-devel
+- updated pre-built man files: ffmpeg.1 ffplay.1 ffserver.1
+- added BuildRequires:  libvdpau-devel
+
+* Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-6
+- change release to sync with self-build-ffmpeg
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-5
+- change release to sync with self-build-ffmpeg
+
+* Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-4
+- applied ffmpeg-0.5-disable-texi2html.patch
+  - dropped BuildRequires: texi2html
+
+* Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-3
+- change release to sync with self-build-ffmpeg
+
+* Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-2
+- corrected release number
+
+* Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-1
+- new upstream release
+- added BuildRequires: 
+  - speex-devel
+  - bzip2-devel
+
+* Sat Feb 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090227.8
+- 20090227 snapshot
+
+* Tue Feb 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.7
+- added %%{?_with_amr:%%{_datadir}/%%{name}} in %%files
+
+* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.6
+- changed to PreReq:  self-build-faad2 >= 2.0 from faad2-devel
+- dropped Requires: a52dec, faad2 in ffmpeg-libs
+
+* Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.5
+- 20090202 snapshot
+
+* Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090110.4
+- 20090110 snapshot
+- dropped some patches
+
+* Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-15488.1
+- source updated (r15488)
+- fixed License: GPLv2+
+- added BuildRequires: gsm-devel libdc1394-devel libraw1394-devel
+- added BuildRequires: yasm (only %%ix86)
+- applied ffmpeg-cpu.patch (merged from RPM Fusion)
+
+* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-11662.3vl4
+- spec in utf8
+
+* Tue May 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.9-11662.2vl4
+- change release to sync with self-build-ffmpeg
+
+* Wed Apr 16 2008 Atsushi SHICHI <ats777@gmail.com> 0.4.9-11662.1vl4
+- drop "Patch100: ffmpeg-vine.patch".
+
+* Mon Apr 7 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128.1vl4
+- build with new versioning policy
+- change to use svn export from svn checkout on post install
+- fix ffmpeg-vine.patch for libswscale/swscale.c.rej
+
+* Thu Mar 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl2
+- [self-build-ffmpeg.spec]
+  For all pre-required package that is provied by self-build,  
+  changed to its self-build package
+
+* Sun Mar 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl1
+- initial build for Vine Linux 4.2
+- snapshot 2008/01/28 + some Rev.11662 2008/01/29
+
+### end of file

+ 256 - 0
nonfree/self-build-ffmpeg/self-build-ffmpeg-vl.spec

@@ -0,0 +1,256 @@
+%define gpac_postinstall     \
+    gpac_postinstall_sh=$(mktemp) && \
+    rpm -q --scripts self-build-gpac | \
+    /bin/sed -e 's|posttrans[[:blank:]].*|\#!/bin/bash|' > ${gpac_postinstall_sh} && \
+    /bin/bash ${gpac_postinstall_sh} && /bin/rm -f ${gpac_postinstall_sh}
+
+%define pkgname ffmpeg
+%define name	self-build-%{pkgname}
+%define version 0.5
+%define svndate	20100216
+%define release	8%{?svndate:.%svndate}%{?_dist_release}
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{version}
+Release: 	%{release}
+Source0:	%{pkgname}-vl.spec
+#Source1:		%{pkgname}-%{version}.tar.bz2
+Source1:		%{pkgname}-%{?svndate:%svndate}.tar.bz2
+Source2:        %{pkgname}-snapshot.sh
+Source90:	ffmpeg.1.gz
+Source91:	ffplay.1.gz
+Source92:	ffserver.1.gz
+
+License:	GPLv2+
+Group:		Restricted Software
+
+Requires(post):		self-build-setup >= 0.9.9
+#Requires(post):		subversion
+
+# (build)requies of target package.
+Requires(post):  bzip2-devel
+Requires(post):	gsm-devel
+Requires(post):	imlib2-devel
+Requires(post):	libdc1394-devel
+Requires(post):	libraw1394-devel
+Requires(post):	libtheora-devel
+Requires(post):  libvdpau-devel
+Requires(post):	libvorbis-devel
+##Requires(post):  openjpeg-devel
+Requires(post):	SDL-devel
+Requires(post):  speex-devel
+##Requires(post):	texi2html
+Requires(post):	zlib-devel 
+Requires(post):	libogg-devel
+%ifarch %{ix86} x86_64
+Requires(post):		yasm
+%endif
+Requires(post):		self-build-xvidcore
+Requires(post):		self-build-faac
+Requires(post):		self-build-lame 
+Requires(post):		self-build-x264
+Requires(post):		self-build-libdca
+Requires(post):		self-build-a52dec
+Requires(post):		self-build-faad2
+%{?_with_amr:Requires(post):		amrnb-devel amrwb-devel}
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Packager:	munepi
+
+%description
+FFMpeg is a complete and free Internet live audio and video
+broadcasting solution for Linux/Unix. It also includes a 
+digital VCR. It can encode in real time in many formats 
+including MPEG1 audio and video, MPEG4, h263, ac3, asf, avi,
+real, mjpeg, and flash.
+
+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
+target software. So it consume more disk space than usual.
+Also installation takes longer 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
+FFMpeg は Linux/Unix に対する完全にフリーなインターネットライ
+ブオーティオ・ビデオブロードキャスティングソリューションです.
+またデジタル VCR を含んでいます.MPEG1 オーディオ・ビデオ,
+MPEG4, h263, ac3, asf, avi, real, mjpeg, flash を含む
+多様なフォーマットをリアルタイムにエンコードすることができます.
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{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} -p -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE90} %{SOURCE91} %{SOURCE92} \
+    ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec 505000
+/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
+                                 %{pkgname}-libs-%{version}-%{release} \
+                                 %{pkgname}-devel-%{version}-%{release}
+
+## Rebuild gpac with ffmpeg-devel
+# set locale
+case $LANG in
+    ja*)LOCALE=ja ;;
+    *) LOCALE=C ;;
+esac
+
+Rebuild_gpac_C(){
+    echo -n "     "
+    echo "Rebuild gpac with ffmpeg-devel"
+}
+
+Rebuild_gpac_ja(){
+    echo -n "     "
+    echo "ffmpeg-devel で gpac をリビルドします。"
+}
+
+Rebuild_gpac_$LOCALE
+%{gpac_postinstall}
+
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-8.20100216
+- renamed %%{Source0} to ffmpeg-vl.spec
+
+* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-7.20100216
+- updated source snapshot 20100216
+  - rebuild with recent x264-devel
+- updated pre-built man files: ffmpeg.1 ffplay.1 ffserver.1
+- added BuildRequires:  libvdpau-devel
+
+* Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-6
+- dropped BuildArch: noarch
+- added ffmpeg.1, ffplay.1, ffserver.1
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-5
+- avoided to execute self-build-rpm.sh on RPM transaction
+  - moved %%post actions to %%posttrans
+
+* Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-4
+- added BuildArch: noarch
+- added ffmpeg-0.5-disable-texi2html.patch
+  - dropped PreReq: texi2html
+
+* Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-3
+- added %%{gpac_postinstall} in %%post
+
+* Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-2
+- corrected release number
+
+* Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-1
+- new upstream release
+- added PreReq: 
+  - speex-devel
+  - bzip2-devel
+
+* Tue Feb 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.7
+- change release to sync with ffmpeg
+
+* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.6
+- changed to PreReq:  self-build-faad2 >= 2.0 from faad2-devel
+
+* Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.5
+- 20090202 snapshot
+
+* Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090110.4
+- 20090110 snapshot
+- dropped some patches
+
+* Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-15488.1
+- source updated (r15488)
+- fixed License: GPLv2+
+- added BuildRequires: gsm-devel libdc1394-devel libraw1394-devel
+- added BuildRequires: yasm (only %%ix86)
+- applied ffmpeg-cpu.patch (merged from RPM Fusion)
+
+* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-11662.3vl4
+- spec in utf8
+
+* Tue May 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.9-11662.2vl4
+- run pre-allocate-rpm.sh in %%post
+- set PreReq: self-build-setup >= 0.8
+- change release number
+
+* Wed Apr 16 2008 Atsushi SHICHI <ats777@gmail.com> 0.4.9-11662.1vl4
+- add "Source1: %{pkgname}-%{version}.r%{svnrev}.tar.gz",
+  include Source1 in the binary package.
+- drop "Source100: ffmpeg-vine.patch".
+- drop "PreReq: subversion".
+
+* Mon Apr 7 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128.1vl4
+- build with new versioning policy
+- change to use svn export from svn checkout on post install
+- fix ffmpeg-vine.patch for libswscale/swscale.c.rej
+
+* Thu Mar 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl2
+- For all pre-required package that is provied by self-build,  
+  changed to its self-build package
+  
+* Sun Mar 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl1
+- initial build for Vine Linux 4.2
+- snapshot 2008/01/28 + some Rev.11662 2008/01/29
+
+### end of file

+ 84 - 0
nonfree/self-build-ffmpeg2theora/ffmpeg2theora-vl.spec

@@ -0,0 +1,84 @@
+%define pkg_version	0.25
+%define pkg_release	2%{?_dist_release}
+
+Summary:	Convert any file that ffmpeg can decode to theora
+Summary(ja): 	ffmpeg がデコード可能なファイルを theora に変換するツール
+Name:		ffmpeg2theora
+Version:	%{pkg_version}
+Release: 	%{pkg_release}
+Source0:	http://www.v2v.cc/~j/ffmpeg2theora/%{name}-%{version}.tar.bz2
+License:	GPL
+Group:		Applications/Multimedia
+URL:		http://www.v2v.cc/~j/ffmpeg2theora/
+
+BuildRequires:  scons
+BuildRequires:	libogg-devel, libtheora-devel, libvorbis-devel
+### *-devel pacages provided by other self-build-* should only be listed
+### in self-build-%{name}.spec as PreReq.
+#
+# BuildRequires:	ffmpeg-devel
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+
+%description
+with ffmpeg2theora you can convert any file that ffmpeg can
+decode to theora. right now the settings are hardcoded into
+the binary. 
+
+%description -l ja
+ffmpeg2theora を使えば ffmpeg がデコードできるどんな種類のファイル
+でも theora 形式に変換できます。現状、設定情報はハードコードされて
+います。
+
+
+%prep
+
+%setup -q
+
+
+%build
+scons APPEND_CCFLAGS="$RPM_OPT_FLAGS"
+
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+scons install destdir=$RPM_BUILD_ROOT prefix=%{_prefix}
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+mv $RPM_BUILD_ROOT%{_prefix}/man/man1/ffmpeg2theora.1 $RPM_BUILD_ROOT%{_mandir}/man1
+rm -rf $RPM_BUILD_ROOT%{_prefix}/man
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+
+%files
+%defattr(-,root,root)
+%doc AUTHORS COPYING ChangeLog NEWS README TODO
+%{_bindir}/ffmpeg2theora
+%{_mandir}/man1/ffmpeg2theora.1.gz
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-2
+- change release to sync with self-build-ffmpeg2theora
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-1
+- new upstream release
+  - with recent ffmpeg
+
+* Sat Jun 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.24-1
+- new upstream release
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-2
+- change release to sync with self-build-ffmpeg2theora
+
+* Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-1
+- new upstream release
+- dropped ffmpeg2theora-0.20-new_ffmpeg.patch
+- added BuildRequires: scons
+
+* Sat May 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.20-2
+- spec in utf8
+
+* Sat May 17 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.20-1
+- initial build for Vine Linux

+ 137 - 0
nonfree/self-build-ffmpeg2theora/self-build-ffmpeg2theora-vl.spec

@@ -0,0 +1,137 @@
+%define pkgname ffmpeg2theora
+%define name	self-build-%{pkgname}
+%define version	0.25
+%define release	2%{?_dist_release}
+
+%define sourceurl	http://www.v2v.cc/~j/ffmpeg2theora/%{pkgname}-%{version}.tar.bz2
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{version}
+Release: 	%{release}
+Source0:	%{pkgname}-vl.spec
+License:	GPL
+Group:		Restricted Software
+
+Requires(post):		self-build-setup >= 0.9.9
+
+# (build)requies of target package.
+Requires(post):		scons
+Requires(post):		libogg-devel, libtheora-devel, libvorbis-devel
+Requires(post):		self-build-ffmpeg
+
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Packager:	munepi
+
+%description
+ffmpeg2theora is a tool to convert any file that ffmpeg can
+decode to theora.
+
+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
+ffmpeg2theora は ffmpeg がデコードできるファイルを theora 形式
+に変換するツールです。
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{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}
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 10000
+#/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release}
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-2
+- renamed %%{Source0} to ffmpeg2theora-vl.spec
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-1
+- new upstream release
+  - with recent ffmpeg
+
+* Sat Jun 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.24-1
+- new upstream release
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-2
+- added BuildArch: noarch
+- avoided to execute self-build-rpm.sh on RPM transaction
+  - moved %%post actions to %%posttrans
+
+* Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-1
+- new upstream release
+- dropped ffmpeg2theora-0.20-new_ffmpeg.patch
+- added PreReq: scons
+
+* Sat May 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.20-2
+- spec in utf8
+
+* Sat May 17 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.20-1
+- initial build for Vine Linux.

+ 341 - 0
nonfree/self-build-gpac/gpac-vl.spec

@@ -0,0 +1,341 @@
+%define with_static   1
+
+Name:        gpac
+Summary:     MPEG-4 multimedia framework
+Version:     0.4.5
+Release:     8%{?_dist_release}
+License:     LGPLv2+
+Group:       System Environment/Libraries
+URL:         http://gpac.sourceforge.net/
+Source0:     http://downloads.sourceforge.net/gpac/gpac-%{version}.tar.gz
+#Source0:     http://rpms.kwizart.net/fedora/SOURCE/gpac-%{version}-repack.tar.bz2
+#Source9:     gpac-snapshot.sh
+Patch0:      gpac-0.4.5-makefix.patch
+Patch1:      gpac-0.4.5-soname.patch
+Patch2:      gpac-0.4.5-amr.patch
+Patch3:      gpac-0.4.5-lib64.patch
+Patch4:      gpac-0.4.5-system_openjpeg.patch
+Patch6:      gpac-0.4.5-shared_sggen.patch
+Patch7:      gpac-0.4.5-libxml2.patch
+Patch8:      gpac-ppc64.patch
+Patch9:      gpac-0.4.5-ffmpeg.patch
+
+BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildRequires:  ImageMagick
+BuildRequires:  SDL-devel
+BuildRequires:  librsvg2-devel >= 2.5.0
+BuildRequires:  libGLU-devel
+BuildRequires:  freeglut-devel
+BuildRequires:  freetype2-devel >= 2.1.4
+BuildRequires:  libjpeg-devel
+BuildRequires:  libpng-devel >= 1.2.5
+BuildRequires:  libxml2-devel
+BuildRequires:  openssl-devel
+BuildRequires:  openjpeg-devel
+BuildRequires:  pulseaudio-libs-devel
+BuildRequires:  zlib-devel
+BuildRequires:  libogg-devel libvorbis-devel libtheora-devel
+BuildRequires:  libXt-devel
+BuildRequires:  libXpm-devel
+BuildRequires:  libXv-devel
+#BuildRequires:  wxGTK-devel
+BuildRequires:  xmlrpc-epi-devel
+%{?_with_mozilla:BuildRequires: gecko-devel}
+BuildRequires:  doxygen
+BuildRequires:  desktop-file-utils
+%{?_with_amr:BuildRequires: amrnb-devel amrwb-devel}
+# *-devel packages provided by other self-build-* should only be listed
+# in self-build-%{name}.spec as PreReq.
+#BuildRequires:  a52dec-devel
+#BuildRequires:  faad2-devel
+#BuildRequires:  libmad-devel
+#BuildRequires:  xvidcore-devel >= 1.0.0
+##BuildRequires:  ffmpeg-devel
+
+
+%description
+GPAC is a multimedia framework based on the MPEG-4 Systems standard developed
+from scratch in ANSI C.  The original development goal is to provide a clean,
+small and flexible alternative to the MPEG-4 Systems reference software.
+
+GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML,
+X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features
+MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution
+for MP4 and 3GPP(2) files and many tools for scene descriptions
+(MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc).
+
+%package        libs
+Summary:        Library for %{name}
+Group:          System Environment/Libraries
+
+%description    libs
+The %{name}-libs package contains library for %{name}.
+
+
+%package  devel
+Summary:  Development libraries and files for %{name}
+Group:    Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+
+
+%description  devel
+Development libraries and files for gpac.
+
+
+%if %{with_static}
+%package  devel-static
+Summary:  Development libraries and files for %{name}
+Group:    Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+
+%description  devel-static
+Static library for gpac.
+%endif
+
+
+%prep
+%setup -q -n gpac
+## remove extra_libs directory
+%__rm -rf extra_libs
+
+%patch0 -p1 -b .makefix
+%patch1 -p1 -b .soname
+%patch2 -p1 -b .amr
+%ifarch x86_64
+%patch3 -p1 -b .lib64
+%endif
+%patch4 -p1 -b .openjpeg
+%patch6 -p1 -b .shared
+%patch7 -p1 -b .libxml2
+%patch8 -p1 -b .ppc64
+%patch9 -p1 -b .ffmpeg
+
+## kwizart - enable dynamic mode - hardcoded with patch2
+# define SONAME number from the first number of gpac version.
+#define soname libgpac.so.0
+#sed -i.soname -e 's|EXTRALIBS+=$(GPAC_SH_FLAGS)|EXTRALIBS+=$(GPAC_SH_FLAGS)\nLDFLAGS+="-Wl,-soname,%{soname}"|' src/Makefile
+
+# Update doxygen
+pushd doc
+doxygen -u
+popd
+
+# Fix encoding warnings
+cp -p Changelog Changelog.origine
+iconv -f ISO-8859-1 -t UTF8 Changelog.origine >  Changelog
+touch -r Changelog.origine Changelog
+rm -rf Changelog.origine
+
+cp -p doc/ipmpx_syntax.bt doc/ipmpx_syntax.bt.origine
+iconv -f ISO-8859-1 -t UTF8 doc/ipmpx_syntax.bt.origine >  doc/ipmpx_syntax.bt
+touch -r doc/ipmpx_syntax.bt.origine doc/ipmpx_syntax.bt
+rm -rf doc/ipmpx_syntax.bt.origine
+
+
+# executable ./configure
+chmod +x configure
+
+%build
+%configure \
+    --enable-debug \
+    --X11-path=%{_prefix} \
+    --extra-cflags="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1" \
+    --disable-oss-audio \
+    %{?_with_mozilla:--mozdir=%{_libdir}/mozilla/plugins} \
+    %{?_with_amr:--enable-amr} \
+    --use-js=no \
+    --disable-static \
+    --disable-wx
+
+
+# Parallele build will fail
+%__make all OPTFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" 
+#{?_smp_mflags}
+%__make sggen OPTFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" 
+#{?_smp_mflags}
+
+## kwizart - build doxygen doc for devel
+pushd doc
+doxygen
+popd
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install install-lib
+
+## kwizart - rpmlint gpac no-ldconfig-symlink
+ln -sf  libgpac.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgpac.so.0
+ln -sf  libgpac.so.0 $RPM_BUILD_ROOT%{_libdir}/libgpac.so
+
+#Install generated sggen binaries
+for b in MPEG4 SVG X3D; do
+  pushd applications/generators/${b}
+    install -pm 0755 ${b}Gen $RPM_BUILD_ROOT%{_bindir}
+  popd
+done
+
+#Fix doxygen timestamp
+touch -r Changelog doc/html/*
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS BUGS Changelog COPYING README TODO 
+%{_bindir}/MP4*
+%{_bindir}/*Gen
+%{_datadir}/gpac/
+%{_mandir}/man1/*.1.*
+
+%files libs
+%defattr(-,root,root)
+%{_libdir}/libgpac.so.*
+%{_libdir}/gpac/
+
+%files devel
+%doc doc/CODING_STYLE doc/ipmpx_syntax.bt
+%doc doc/html/*
+%defattr(-,root,root)
+%{_includedir}/gpac/
+%{_libdir}/libgpac.so
+
+%if %{with_static}
+%files devel-static
+%defattr(-,root,root,-)
+%{_libdir}/libgpac_static.a
+%else
+%exclude %{_libdir}/libgpac_static.a
+%endif
+
+
+%changelog
+* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-8
+- change release to sync with self-build-gpac
+
+* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-7
+- rebuild
+
+* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-6
+- added --use-js=no in configure
+- added devel-static subpackage
+
+* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.7.4-5
+- change release to sync with self-build-gpac
+
+* Thu May 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-4
+- change release to sync with self-build-gpac
+
+* Thu Mar 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-3
+- applied gpac-0.4.5-ffmpeg.patch (RPM Fusion #454)
+- corrected default %%defattr
+
+* Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-2
+- dropped BuildRequires: ffmpeg-devel as self-build-ffmpeg
+  - rebuilt with ffmpeg-devel by self-build-ffmpeg
+
+* Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-1
+- initial build based on RPM Fusion
+  - without Osmo4 and its plugins for Mozilla browsers
+  - added --disable-wx in configure options
+  - included %%{_libdir}/libgpac_static.a in devel subpackage
+
+* Sun Dec 28 2008 kwizart < kwizart at gmail.com > - 0.4.5-3
+- Fix -devel doc timestamp which leads to multilib conflict 
+  ( RPM Fusion #270 )
+
+* Thu Dec 18 2008 kwizart < kwizart at gmail.com > - 0.4.5-2
+- Fix for ppc64
+
+* Wed Dec 17 2008 kwizart < kwizart at gmail.com > - 0.4.5-1
+- Update to 0.4.5 (final)
+- Drop upstreamed patches - Rewrite some
+- Add More BR.
+- Conditionalize --with mozilla amr
+
+* Mon Sep  8 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.5.20080217cvs
+- Fix for Large File Support (was livna #2075 )
+
+* Mon Feb 25 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.3.20080217cvs
+- Enable devel-static
+- Conditionalize Osmo4 (buggy).
+- Clean the spec
+
+* Sun Feb 17 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.2.20080217cvs
+- Update to 20080217.
+- Split libs.
+- Use the new amr nosrc scheme (need an end-users rebuilt to add support to it).
+- Add openjpeg-devel missing BR
+- Static patching instead of dyn patch when possible.
+- Disable %%{smp_mflags} (it tries to build the bin before the lib is ready)
+- Define soname as libgpac.so.0 (instead of libgpac.so.%%version )
+- Exclude static lib
+
+* Mon Feb 11 2008 Stewart Adam < s.adam at diffingo.com > - 0.4.5-0.1.20080211cvs
+- Use %%{smp_mflags}
+- Oops, we're actually 0.4.5
+- Fix gpac so filenames
+- Only install nposmozilla when %%{with_firefox} is set
+
+* Mon Feb 11 2008 Stewart Adam < s.adam at diffingo.com > - 0.4.4-3.20080211cvs
+- Update to 20080211cvs
+- Disable osmozilla, doesn't build with xulrunner
+- Fix builds with gcc 4.3
+
+* Sat Dec 15 2007 Stewart Adam < s.adam at diffingo.com > - 0.4.4-2
+- Rebuild for rawhide
+
+* Tue Oct 16 2007 Stewart Adam < s.adam at diffingo.com > - 0.4.4-1
+- Update to v4.4
+
+* Sat May 26 2007 kwizart < kwizart at gmail.com > - 0.4.3-0.1cvs20070526
+- Update to cvs 20070526
+- Enable conditional build ( 3gpp firefox )
+
+* Wed Apr 11 2007 kwizart < kwizart at gmail.com > - 0.4.3-0.1cvs20070411
+- Update to cvs 20070411
+
+* Thu Dec 08 2006 kwizart < kwizart at gmail.com > - 0.4.3-cvs20061208.1.kwizart.fc6
+- Update to 20061208
+- Uses firefox-devel (since fc6!)
+- Drop tutorial
+- Use version-DEV-date with libgpac.so
+- Disabled osmozilla
+- Fix soname 
+- Enabled gprof
+
+* Tue Oct 17 2006 kwizart < kwizart at gmail.com > - 0.4.3-cvs20061017.1_FC5
+- gpac snapshot.sh
+- Revert Patch osmozilla.cpp (v1.17 - build error from gpac/internal/terminal_dev.h)
+- TODO: - no-soname make option for libgpac.so
+  - static lib in devel - needed ?
+  - osmozilla - xpt link problem.
+  - Osmo4: segmentation fault on exit.
+  - MP4Client: segmentation fault on launch.
+  - The program 'Osmo4' received an X Window System error:
+  "The error was 'BadMatch (invalid parameter attributes)'.
+  (Details: serial 37 error_code 8 request_code 42 minor_code 0)"
+  - MP4Box -version display: GPAC version 0.4.3-DEV (try to display cvs )
+
+* Sat Oct 15 2006 kwizart < kwizart at gmail.com > - 0.4.2-rc2.1_FC5
+- Update to 0.4.2cvs20061017
+- Use DESTDIR=RPM_BUILD_ROOT in various Makefile.
+- Enable mozilla plugin: osmozilla.
+- Enable AMR_NB_FLOAT and AMR_WB_FLOAT / bundle AMR_NB_FIXED (but not used by default).
+- Provide documentation html in doc .
+- Provide tutorial from http://www.wildamerica.com/pages/Marty.html
+- Various corrections.
+
+* Fri Sep 01 2006 Anssi Hannula <anssi@zarb.org> 0.4.1-0.20060630.2plf2007.0
+- lib64 fixes
+
+* Fri Jan 30 2006 Austin Acton <austin@mandriva.org> 0.4.1-0.20060630.1plf2007.0
+- initial package

+ 199 - 0
nonfree/self-build-gpac/self-build-gpac-vl.spec

@@ -0,0 +1,199 @@
+%define pkgname gpac
+%define name	self-build-%{pkgname}
+%define version 0.4.5
+%define release	8%{?_dist_release}
+
+%define sourceurl0	http://prdownloads.sourceforge.net/gpac/%{pkgname}-%{version}.tar.gz
+#% define sourceurl0	http://dl.sourceforge.net/sourceforge/gpac/%{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:      gpac-0.4.5-makefix.patch
+Source101:      gpac-0.4.5-soname.patch
+Source102:      gpac-0.4.5-amr.patch
+Source103:      gpac-0.4.5-lib64.patch
+Source104:      gpac-0.4.5-system_openjpeg.patch
+Source106:      gpac-0.4.5-shared_sggen.patch
+Source107:      gpac-0.4.5-libxml2.patch
+Source108:      gpac-ppc64.patch
+Source109:      gpac-0.4.5-ffmpeg.patch
+Source150:      gpac-0.4.5-mozjs-vine.patch
+
+License:	LGPLv2+
+Group:		Restricted Software
+
+Requires(post):		self-build-setup >= 0.9.9
+
+Requires(post):  ImageMagick
+Requires(post):  SDL-devel
+Requires(post):  librsvg2-devel >= 2.5.0
+Requires(post):  libGLU-devel
+Requires(post):  freeglut-devel
+Requires(post):  freetype2-devel >= 2.1.4
+Requires(post):  libjpeg-devel
+Requires(post):  libpng-devel >= 1.2.5
+Requires(post):  libxml2-devel
+Requires(post):  openssl-devel
+Requires(post):  openjpeg-devel
+Requires(post):  pulseaudio-libs-devel
+Requires(post):  zlib-devel
<