[3289] | 1 | #% define with_pdflib_lite 1 |
---|
| 2 | |
---|
| 3 | %define pkgname swftools |
---|
| 4 | %define name self-build-%{pkgname} |
---|
| 5 | %define version 0.9.1 |
---|
| 6 | %define release 1%{?_dist_release} |
---|
| 7 | |
---|
| 8 | %define sourceurl0 http://www.swftools.org/%{pkgname}-%{version}.tar.gz |
---|
| 9 | |
---|
| 10 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 11 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 12 | Name: %{name} |
---|
| 13 | Version: %{version} |
---|
| 14 | Release: %{release} |
---|
| 15 | Source0: %{pkgname}-vl.spec |
---|
| 16 | Source100: swftools-0.9.1-prefix.patch |
---|
| 17 | |
---|
| 18 | # swftools is GPLv2+ licensed, lib/MD5.c is BSD licensed, |
---|
| 19 | # lib/action/actioncompiler.c is LGPLv2+ licensed |
---|
| 20 | License: GPLv2+ and LGPLv2+ and BSD |
---|
| 21 | Group: Restricted Software |
---|
| 22 | |
---|
| 23 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 24 | |
---|
| 25 | Requires(post): fftw-devel |
---|
| 26 | Requires(post): fontconfig-devel |
---|
| 27 | Requires(post): giflib-devel |
---|
| 28 | Requires(post): libjpeg-devel |
---|
| 29 | Requires(post): self-build-lame |
---|
| 30 | #Requires(post): python-imaging-devel |
---|
| 31 | Requires(post): python-devel |
---|
| 32 | Requires(post): python-imaging |
---|
| 33 | Requires(post): zziplib-devel |
---|
| 34 | %{?with_pdflib_lite:Requires(post): pdflib-lite-devel} |
---|
| 35 | |
---|
| 36 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 37 | BuildArch: noarch |
---|
| 38 | |
---|
| 39 | Packager: munepi |
---|
| 40 | |
---|
| 41 | %description |
---|
| 42 | SWFTools is a collection of utilities for working with Adobe Flash files (SWF |
---|
| 43 | files). The tool collection includes programs for reading SWF files, combining |
---|
| 44 | them, and creating them from other content (like images, sound files, videos or |
---|
| 45 | source code). |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | [Note] |
---|
| 49 | This package requires many other packages to compile |
---|
| 50 | targetsoftware. So it consume more disk space than usual. |
---|
| 51 | Also installation takes logner time because of compilation. |
---|
| 52 | (This will take a few minutes to quarter or half of an hour, |
---|
| 53 | depends on building environment) |
---|
| 54 | |
---|
| 55 | [About self-build package] |
---|
| 56 | For some kind of software, distributing of binary package |
---|
| 57 | may viorate the patent or law. Therefore we chose self-build |
---|
| 58 | packge, create binary package on your machine, for such kind |
---|
| 59 | of softwares instead of distributing binary package. |
---|
| 60 | |
---|
| 61 | Please obey the national law when you use the created binary |
---|
| 62 | packages. And if you want to use the softwares using patented |
---|
| 63 | thechnology, it may be required to get a permission, make an |
---|
| 64 | agreement or purchas a license. Please consider it with your |
---|
| 65 | purpose or way of use and take appropriate action. |
---|
| 66 | |
---|
| 67 | %description -l ja |
---|
| 68 | SWFTools は Adobe Flash ファイル(SWF)を操作するためのユーティリティ集です。 |
---|
| 69 | ユーティリティ集には、SWF ファイルを読んだり、SWF ファイルを結合したり、 |
---|
| 70 | 画像や音声、動画、ソースコードのような他のコンテンツからSWF ファイルを |
---|
| 71 | 作成するプログラムが含まれています。 |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | [注意] |
---|
| 75 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 76 | ディスクの領域を多く消費します。 |
---|
| 77 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 78 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 79 | |
---|
| 80 | [self-build パッケージについて] |
---|
| 81 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 82 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 83 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 84 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 85 | ジという方法を採っています。 |
---|
| 86 | |
---|
| 87 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 88 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 89 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 90 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 91 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 92 | |
---|
| 93 | %prep |
---|
| 94 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 95 | |
---|
| 96 | %install |
---|
| 97 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 98 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 99 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 100 | %{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %clean |
---|
| 104 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 105 | |
---|
| 106 | %posttrans |
---|
| 107 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 108000 |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | %files |
---|
| 111 | %defattr(-,root,root) |
---|
| 112 | %{_datadir}/%{name}/* |
---|
| 113 | |
---|
| 114 | %changelog |
---|
| 115 | * Fri Apr 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.9.1-1 |
---|
| 116 | - initial build for Vine Linux. |
---|