www.pudn.com > sswf-1.7.4-src.zip > sswf-rpm.spec


# Specification file to create an RPM package for sswf (Script to SWF)
# Written by Alexis Wilke for Made to Order Software, Ltd. (c) 2002-2006
#
# Copyright (c) 2002-2006 Made to Order Software, Ltd.
#
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and
# associated documentation files (the "Software"), to
# deal in the Software without restriction, including
# without limitation the rights to use, copy, modify,
# merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom
# the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice
# shall be included in all copies or substantial
# portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
# ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
# LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
# EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


Summary: SSWF library and compiler to create Flash movies
Name: sswf
Version: 
Release: 3
License: MIT License
# Somehow, RPM views License & Copyright as the same thing!
#Copyright: Made to Order Software, Ltd.
Group: WebDevelopment/Tools
Vendor: Made to Order Software, Ltd.
Source0: sswf--src.tar.gz
Source1: sswf--doc.tar.gz
BuildRoot: %{_topdir}/%{name}-root
URL: http://sswf.sourceforge.net
Packager: Alexis Wilke (alexis_wilke@users.sourceforge.net)
Requires: zlib libjpeg 
Provides: sswf swf_dump ft2sswf jpg2swf asc libsswf libsswf-.so libsswf.so libsswf.a libsswf_as.so libsswf_as.a libsswf_asas.so libsswf_asas.a
Distribution: SSWF RPM
BuildRequires: bison libjpeg-devel -devel zlib-devel

%description
The SSWF tool is a compiler which generates Flash movies
from a list of .sswf script files. It uses the SSWF library
which comes along.

This package includes all the binaries available in the SSWF
project, the SSWF library, the documentations and some script
samples to get you started.

The binaries are: sswf, swf_dump, ft2sswf, jpg2swf and asc.
The libraries are: libsswf, libsswf_as, libsswf_asas

%prep
%setup -b 1

%build

# The configure doesn't use the correct parameters to create
# the Makefile in the source location (weird); this maybe because
# I have an older version of rpmbuild too...
#configure
# results in:
#configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu
#	--target=i486-redhat-linux --program-prefix=
#	--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
#	--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
#	--includedir=/usr/include --libdir=/usr/lib
#	--libexecdir=/usr/libexec --localstatedir=/var
#	--sharedstatedir=/usr/com --mandir=/usr/share/man
#	--infodir=/usr/share/info

# We now avoid installing the HTML documentation with the make
# command line because the %doc will take care of that for us.
./configure --prefix=%{buildroot}%{_prefix} --mandir=%{buildroot}%{_mandir} --enable-rpm-docs
make

%install
if test ! "%{buildroot}" = "/"; then
	rm -rf %{buildroot}
fi

make install

#	prefix=%{buildroot}%{_prefix} \
#	exec_prefix=%{buildroot}%{_exec_prefix} \
#	bindir=%{buildroot}%{_bindir} \
#	sbindir=%{buildroot}%{_sbindir} \
#	sysconfdir=%{buildroot}%{_sysconfdir} \
#	datadir=%{buildroot}%{_datadir} \
#	includedir=%{buildroot}%{_includedir} \
#	libdir=%{buildroot}%{_libdir} \
#	libexecdir=%{buildroot}%{_libexecdir} \
#	localstatedir=%{buildroot}%{_localstatedir} \
#	sharedstatedir=%{buildroot}%{_sharedstatedir} \
#	docdir=%{buildroot}%{_docdir} \
#	mandir=%{buildroot}%{_mandir} \
#	infodir=%{buildroot}%{_infodir} \
#	rpminstall

%clean
if test ! "%{buildroot}" = "/"; then
	rm -rf %{buildroot}
fi

make clean

%files
%defattr(-, root, root)
%doc README.txt doc/*.txt


# Binaries
%{_bindir}/*

# Libraries & includes
%{_libdir}/*
%{_includedir}/sswf/*

# Manual pages
%{_mandir}/man1/*

# Scripts to include
%{_datadir}/sswf/scripts/*

# Documentation
%{_datadir}/sswf/*.txt
%{_datadir}/sswf/html/*

# Samples
%{_datadir}/sswf/samples/*

# Miscellaneous
%{_datadir}/sswf/misc/*

%changelog
* Sun May 28 2006 Alexis Wilke  1.7.4-3
- Moved the HTML documentation to /usr/share/doc/sswf-

* Thu Oct 25 2004 Alexis Wilke  1.7.0-2
- Changes to the .spec file so the configure script is being used

* Mon Nov 04 2002 Alexis Wilke  1.4.3-1
- Initial RMP