Browse Source

added zziplib, self-build-swftools

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

+ 116 - 0
nonfree/self-build-swftools/self-build-swftools-vl.spec

@@ -0,0 +1,116 @@
+#% define with_pdflib_lite 1
+
+%define pkgname swftools
+%define name    self-build-%{pkgname}
+%define version 0.9.1
+%define release 1%{?_dist_release}
+
+%define sourceurl0	http://www.swftools.org/%{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:      swftools-0.9.1-prefix.patch
+
+# swftools is GPLv2+ licensed, lib/MD5.c is BSD licensed,
+# lib/action/actioncompiler.c is LGPLv2+ licensed
+License:	GPLv2+ and LGPLv2+ and BSD
+Group:		Restricted Software
+
+Requires(post):		self-build-setup >= 0.9.9
+
+Requires(post):  fftw-devel
+Requires(post):  fontconfig-devel
+Requires(post):  giflib-devel
+Requires(post):  libjpeg-devel
+Requires(post):  self-build-lame
+#Requires(post):  python-imaging-devel
+Requires(post):  python-devel
+Requires(post):  python-imaging
+Requires(post):  zziplib-devel
+%{?with_pdflib_lite:Requires(post):  pdflib-lite-devel}
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+BuildArch:	noarch
+
+Packager:	munepi
+
+%description
+SWFTools is a collection of utilities for working with Adobe Flash files (SWF
+files). The tool collection includes programs for reading SWF files, combining
+them, and creating them from other content (like images, sound files, videos or
+source code).
+
+
+[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
+SWFTools は Adobe Flash ファイル(SWF)を操作するためのユーティリティ集です。
+ユーティリティ集には、SWF ファイルを読んだり、SWF ファイルを結合したり、
+画像や音声、動画、ソースコードのような他のコンテンツからSWF ファイルを
+作成するプログラムが含まれています。
+
+
+[注意]
+コンパイルに必要な多くの関連パッケージを要求するので通常より
+ディスクの領域を多く消費します。
+またインストール時にコンパイルを行うため、通常より時間がかか
+る場合があります。(環境にもよりますが数分から数十分程度)
+
+[self-build パッケージについて]
+ソフトウェアによってはバイナリパッケージの配布が特許や法律に
+違反する可能性があるものがあります。その為、このような問題が
+懸念されるソフトウェアについてはバイナリパッケージを直接配布
+せずに、ユーザの環境でバイナリを作成する self-build パッケー
+ジという方法を採っています。
+
+作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
+アのライセンス、および利用する国の各種法令に従ってください。
+また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
+センスの購入などが必要となる場合がありますので、利用する目的
+や形態に応じて各自で判断し適切な対応を取ってください。
+
+%prep
+[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 108000
+
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}/*
+
+%changelog
+* Fri Apr 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.9.1-1
+- initial build for Vine Linux.

+ 117 - 0
nonfree/self-build-swftools/swftools-vl.spec

@@ -0,0 +1,117 @@
+# Filter Python modules from Provides
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
+#% define with_pdflib_lite 1
+
+Name:           swftools
+Version:        0.9.1
+Release:        1%{?_dist_release}
+Summary:        SWF manipulation and generation utilities
+
+Group:          Applications/Multimedia
+# swftools is GPLv2+ licensed, lib/MD5.c is BSD licensed,
+# lib/action/actioncompiler.c is LGPLv2+ licensed
+License:        GPLv2+ and LGPLv2+ and BSD
+URL:            http://www.swftools.org
+Source0:        http://www.swftools.org/%{name}-%{version}.tar.gz
+# Add prefix to installation paths
+Patch0:         swftools-0.9.1-prefix.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildRequires:  fftw-devel
+BuildRequires:  fontconfig-devel
+BuildRequires:  giflib-devel
+BuildRequires:  libjpeg-devel
+# self-build-lame provides lame-devel
+##BuildRequires:  lame-devel
+#BuildRequires:  python-imaging-devel
+BuildRequires:  python-devel
+BuildRequires:  python-imaging
+BuildRequires:  zziplib-devel
+%{?with_pdflib_lite:BuildRequires:  pdflib-lite-devel}
+
+%description
+SWFTools is a collection of utilities for working with Adobe Flash files (SWF
+files). The tool collection includes programs for reading SWF files, combining
+them, and creating them from other content (like images, sound files, videos or
+source code).
+
+
+%package -n python-%{name}
+Summary:        Python bindings for %{name}
+Group:          System Environment/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description -n python-%{name}
+This package provides Python bindings for %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .prefix
+
+# Fix permissions
+chmod -x lib/*.[ch] lib/action/*.[ch]
+
+# Fix encoding
+for file in AUTHORS src/{jpeg2swf.1,swfstrings.1}; do
+  iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
+  touch -r $file $file.new && \
+  mv $file.new $file
+done
+
+
+%build
+export PYTHON_INCLUDES=$(python-config --includes)/Imaging
+export PYTHON_LIB=$(python-config --libs)
+export PYTHON_LIB2=$PYTHON_LIB
+export HAVE_PYTHON_IMAGING_LIB=1
+%configure
+%__make %{?_smp_mflags}
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__make install DESTDIR=$RPM_BUILD_ROOT
+
+%__mkdir_p $RPM_BUILD_ROOT%{python_sitearch}
+%__install -Dp lib/python/*.so $RPM_BUILD_ROOT%{python_sitearch}
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING doc/fileformat.sc
+%{_bindir}/*
+%{_mandir}/man1/*.1.*
+%{_datadir}/%{name}
+
+
+%files -n python-%{name}
+%defattr(-,root,root,-)
+%{python_sitearch}/*.so
+
+
+%changelog
+* Fri Apr 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.9.1-1
+- initial build
+
+* Thu Jan 10 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.9.1-3
+- Remove pdflib-devel from BuildRequires
+
+* Thu Nov 11 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.9.1-2
+- Add missing BuildRequires fftw-devel and zziplib-devel
+- Re-enable Python modules build
+
+* Sun Jun 13 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> 0.9.1-1
+- Update to 0.9.1
+- Disable Python modules build (broken in 0.9.1)
+
+* Wed Jun  3 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> 0.9.0-1
+- Initial RPM release

+ 187 - 0
z/zziplib/zziplib-vl.spec

@@ -0,0 +1,187 @@
+Summary: Lightweight library to easily extract data from zip files
+Name: zziplib
+Version: 0.13.59
+Release: 1%{?_dist_release}
+License: LGPLv2+ or MPLv1.1
+Group: Applications/Archiving
+URL: http://zziplib.sourceforge.net/
+Source: http://dl.sf.net/zziplib/zziplib-%{version}.tar.bz2
+Patch0: zziplib-0.13.59-multilib.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: perl
+BuildRequires: python
+BuildRequires: zip
+BuildRequires: xmlto
+BuildRequires: zlib-devel
+BuildRequires: SDL-devel
+BuildRequires: pkgconfig
+#BuildRequires: autoconf
+#BuildRequires: automake
+
+%description
+The zziplib library is intentionally lightweight, it offers the ability to
+easily extract data from files archived in a single zip file. Applications
+can bundle files into a single zip archive and access them. The implementation
+is based only on the (free) subset of compression with the zlib algorithm
+which is actually used by the zip/unzip tools.
+
+
+%package utils
+Summary: Utilities for the zziplib library
+Group: Applications/Archiving
+Requires: %{name} = %{version}-%{release}
+
+%description utils
+The zziplib library is intentionally lightweight, it offers the ability to
+easily extract data from files archived in a single zip file. Applications
+can bundle files into a single zip archive and access them. The implementation
+is based only on the (free) subset of compression with the zlib algorithm
+which is actually used by the zip/unzip tools.
+
+This packages contains all the utilities that come with the zziplib library.
+
+
+%package devel
+Summary: Development files for the zziplib library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+Requires: zlib-devel
+Requires: SDL-devel
+
+%description devel
+The zziplib library is intentionally lightweight, it offers the ability to
+easily extract data from files archived in a single zip file. Applications
+can bundle files into a single zip archive and access them. The implementation
+is based only on the (free) subset of compression with the zlib algorithm
+which is actually used by the zip/unzip tools.
+
+This package contains files required to build applications that will use the
+zziplib library.
+
+
+%prep
+%setup -q
+%patch0 -p1
+# Save the common patched _config.h file to overwrite the generated one
+%{__cp} -a zzip/_config.h _config.h
+
+
+%build
+%configure \
+    --disable-static \
+    --enable-sdl \
+    --enable-frame-pointer
+# Remove rpath on 64bit archs
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' */libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' */libtool
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install DESTDIR=%{buildroot}
+# Overwrite the platform specific _config.h with our own modified common one
+%{__rm} -f %{buildroot}%{_includedir}/zzip/_config.h
+%{__install} -p -m 0644 _config.h %{buildroot}%{_includedir}/zzip/_config.h
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc docs/COPYING* ChangeLog README TODO
+%{_libdir}/*.so.*
+
+%files utils
+%defattr(-,root,root,-)
+%{_bindir}/*
+
+%files devel
+%defattr(-,root,root,-)
+%doc docs/README.SDL docs/*.htm
+%{_includedir}/*
+%exclude %{_libdir}/*.la
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+%{_datadir}/aclocal/*.m4
+%{_mandir}/man3/*
+
+
+%changelog
+* Fri Apr 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.13.59-1
+- initial build based on Fedora rawhide
+
+* Thu Dec  9 2010 Hans de Goede <hdegoede@redhat.com> 0.13.59-2
+- Fix broken zzip/_config.h which causes apps using zziplib to fail to compile
+
+* Sat Dec  4 2010 Matthias Saou <http://freshrpms.net/> 0.13.59-1
+- Update to 0.13.59.
+- Remove no longer needed 'open' patch.
+- Rebase the multilib patch, still required.
+- Re-enable _smp_mflags, build works again with it apparently.
+
+* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.49-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.49-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Dec 22 2008 Matthias Saou <http://freshrpms.net/> 0.13.49-6
+- Patch _config.h to make it identical for 32bit and 64bit archs (#343521).
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
+- Autorebuild for GCC 4.3
+
+* Wed Aug  8 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-4
+- Include patch to fix fd.open calls with recent glibc.
+- Disable _smp_mflags since the docs fail to build.
+
+* Fri Aug  3 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-3
+- Update License field.
+
+* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-2
+- Disable static lib build instead of excluding it later.
+- Remove rpath on 64bit archs.
+- Switch to using DESTDIR install method.
+
+* Mon Mar 26 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-1
+- Update to 0.13.49 to fix CVE-2007-1614 (rhbz #233700).
+- Include new man3 pages to the devel sub-package.
+
+* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 0.13.47-1
+- Update to 0.13.47.
+- FC6 rebuild.
+
+* Mon Jul 24 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-3
+- Split off -utils sub-package (#199467). Could have been plain "zzip"?
+- Have sub-packages require exact release too.
+- Build require automake to make the aclocal-1.9 check happy.
+- Use --enable-frame-pointer otherwise -g gets removed from the CFLAGS.
+
+* Mon Mar  6 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-2
+- FC5 rebuild.
+
+* Thu Feb  9 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-1
+- Update to 0.13.45.
+- Exclude static library.
+
+* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.13.38-2
+- rebuild on all arches
+
+* Tue Apr  5 2005 Matthias Saou <http://freshrpms.net/> 0.13.38-1
+- Update to 0.13.38, fixes gcc4 compile issues (Adrian Reber).
+
+* Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 0.13.36-2
+- Bump release to provide Extras upgrade path.
+
+* Tue Jun  8 2004 Matthias Saou <http://freshrpms.net/> 0.13.36-1
+- Initial RPM release.
+