Author: melmorabity
Update of /cvs/free/rpms/swftools/F-15
In directory se02.es.rpmfusion.net:/tmp/cvs-serv26622/F-15
Modified Files:
.cvsignore sources
Added Files:
swftools-0.9.1-prefix.patch swftools.spec
Log Message:
First import
swftools-0.9.1-prefix.patch:
Makefile.common.in | 8 ++++----
src/Makefile.in | 4 ++--
swfs/Makefile.in | 36 ++++++++++++++++++------------------
3 files changed, 24 insertions(+), 24 deletions(-)
--- NEW FILE swftools-0.9.1-prefix.patch ---
diff -up swftools-0.9.1/Makefile.common.in.orig swftools-0.9.1/Makefile.common.in
--- swftools-0.9.1/Makefile.common.in.orig 2010-04-03 21:34:42.000000000 +0200
+++ swftools-0.9.1/Makefile.common.in 2010-11-11 14:43:06.236986288 +0100
@@ -67,10 +67,10 @@ man1dir = $(mandir)/man1
# ------------------- defines -------------------------
-INSTALL_BIN = echo installing $$file to $(bindir);$(INSTALL_PROGRAM) $$file
$(bindir)/`echo $$file|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed
's/$$/$(EXEEXT)/'`
-UNINSTALL_BIN = ff=`echo $$file|sed 's/$(EXEEXT)$$//'|sed
'$(transform)'|sed 's/$$/$(EXEEXT)/'`;echo rm -f $(bindir)/$$ff;rm -f
$(bindir)/$$ff
-INSTALL_MAN1 = ff=$(srcdir)/$$file.1; inst=`echo $$file | sed '$(transform)'`.1;
echo "$(INSTALL_DATA) $$ff $(man1dir)/$$inst"; $(INSTALL_DATA) $$ff
$(man1dir)/$$inst
-UNINSTALL_MAN1 = ff=$(srcdir)/$$file.1; inst=`echo $$file | sed
'$(transform)'`.1; echo "rm -f $(man1dir)/$$inst"; rm -f
$(man1dir)/$$inst
+INSTALL_BIN = echo installing $$file to $(DESTDIR)/$(bindir);$(INSTALL_PROGRAM) $$file
$(DESTDIR)/$(bindir)/`echo $$file|sed 's/$(EXEEXT)$$//'|sed
'$(transform)'|sed 's/$$/$(EXEEXT)/'`
+UNINSTALL_BIN = ff=`echo $$file|sed 's/$(EXEEXT)$$//'|sed
'$(transform)'|sed 's/$$/$(EXEEXT)/'`;echo rm -f
$(DESTDIR)/$(bindir)/$$ff;rm -f $(DESTDIR)/$(bindir)/$$ff
+INSTALL_MAN1 = ff=$(srcdir)/$$file.1; inst=`echo $$file | sed '$(transform)'`.1;
echo "$(INSTALL_DATA) $$ff $(DESTDIR)/$(man1dir)/$$inst"; $(INSTALL_DATA) $$ff
$(DESTDIR)/$(man1dir)/$$inst
+UNINSTALL_MAN1 = ff=$(srcdir)/$$file.1; inst=`echo $$file | sed
'$(transform)'`.1; echo "rm -f $(DESTDIR)$(man1dir)/$$inst"; rm -f
$(DESTDIR)/$(man1dir)/$$inst
#%.o: %.c
# $(C) $< -o $@
diff -up swftools-0.9.1/src/Makefile.in.orig swftools-0.9.1/src/Makefile.in
--- swftools-0.9.1/src/Makefile.in.orig 2010-04-03 21:34:42.000000000 +0200
+++ swftools-0.9.1/src/Makefile.in 2010-11-11 14:47:36.839606899 +0100
@@ -129,8 +129,8 @@ swfc$(E): parser.$(O) swfc.$(O) swfc-fee
$(STRIP) $@
install:
- $(mkinstalldirs) $(bindir)
- $(mkinstalldirs) $(man1dir)
+ $(mkinstalldirs) $(DESTDIR)/$(bindir)
+ $(mkinstalldirs) $(DESTDIR)/$(man1dir)
@for file in $(programs) $(opt_programs); do if test -f $$file;then
$(INSTALL_BIN);$(INSTALL_MAN1);fi;done
uninstall:
diff -up swftools-0.9.1/swfs/Makefile.in.orig swftools-0.9.1/swfs/Makefile.in
--- swftools-0.9.1/swfs/Makefile.in.orig 2010-04-03 21:34:42.000000000 +0200
+++ swftools-0.9.1/swfs/Makefile.in 2010-11-11 14:51:57.004889432 +0100
@@ -34,26 +34,26 @@ PreLoaderTemplate.swf: $(programs)
./PreLoaderTemplate$(E) || true
install:
- $(mkinstalldirs) $(pkgdatadir)
- $(mkinstalldirs) $(pkgdatadir)/swfs
- $(INSTALL_DATA) ./simple_viewer.swf $(pkgdatadir)/swfs/simple_viewer.swf
- $(INSTALL_DATA) ./keyboard_viewer.swf $(pkgdatadir)/swfs/keyboard_viewer.swf
- $(INSTALL_DATA) ./PreLoaderTemplate.swf $(pkgdatadir)/swfs/PreLoaderTemplate.swf
- $(INSTALL_DATA) ./tessel_loader.swf $(pkgdatadir)/swfs/tessel_loader.swf
- $(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_loader.swf
- test -f $(pkgdatadir)/swfs/default_viewer.swf -o -L
$(pkgdatadir)/swfs/default_viewer.swf || \
- $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf;
- test -f $(pkgdatadir)/swfs/default_loader.swf -o -L
$(pkgdatadir)/swfs/default_loader.swf || \
- $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf;
+ $(mkinstalldirs) $(DESTDIR)/$(pkgdatadir)
+ $(mkinstalldirs) $(DESTDIR)/$(pkgdatadir)/swfs
+ $(INSTALL_DATA) ./simple_viewer.swf $(DESTDIR)/$(pkgdatadir)/swfs/simple_viewer.swf
+ $(INSTALL_DATA) ./keyboard_viewer.swf $(DESTDIR)/$(pkgdatadir)/swfs/keyboard_viewer.swf
+ $(INSTALL_DATA) ./PreLoaderTemplate.swf
$(DESTDIR)/$(pkgdatadir)/swfs/PreLoaderTemplate.swf
+ $(INSTALL_DATA) ./tessel_loader.swf $(DESTDIR)/$(pkgdatadir)/swfs/tessel_loader.swf
+ $(INSTALL_DATA) ./swft_loader.swf $(DESTDIR)/$(pkgdatadir)/swfs/swft_loader.swf
+ test -f $(DESTDIR)/$(pkgdatadir)/swfs/default_viewer.swf -o -L
$(DESTDIR)/$(pkgdatadir)/swfs/default_viewer.swf || \
+ $(LN_S) simple_viewer.swf $(DESTDIR)/$(pkgdatadir)/swfs/default_viewer.swf;
+ test -f $(DESTDIR)/$(pkgdatadir)/swfs/default_loader.swf -o -L
$(DESTDIR)/$(pkgdatadir)/swfs/default_loader.swf || \
+ $(LN_S) tessel_loader.swf $(DESTDIR)/$(pkgdatadir)/swfs/default_loader.swf;
uninstall:
- $(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
- $(UNINSTALL_DATA) $(pkgdatadir)/swfs/keyboard_viewer.swf
- $(UNINSTALL_DATA) $(pkgdatadir)/swfs/PreLoaderTemplate.swf
- $(UNINSTALL_DATA) $(pkgdatadir)/swfs/tessel_loader.swf
- $(UNINSTALL_DATA) $(pkgdatadir)/swfs/swft_loader.swf
- $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
- $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_loader.swf
+ $(UNINSTALL_DATA) $(DESTDIR)/$(pkgdatadir)/swfs/simple_viewer.swf
+ $(UNINSTALL_DATA) $(DESTDIR)/$(pkgdatadir)/swfs/keyboard_viewer.swf
+ $(UNINSTALL_DATA) $(DESTDIR)/$(pkgdatadir)/swfs/PreLoaderTemplate.swf
+ $(UNINSTALL_DATA) $(DESTDIR)/$(pkgdatadir)/swfs/tessel_loader.swf
+ $(UNINSTALL_DATA) $(DESTDIR)/$(pkgdatadir)/swfs/swft_loader.swf
+ $(UNINSTALL_DATA) $(DESTDIR)/$(pkgdatadir)/swfs/default_viewer.swf
+ $(UNINSTALL_DATA) $(DESTDIR)/$(pkgdatadir)/swfs/default_loader.swf
clean:
rm -f *.o *.obj *.lo *.a *.lib *.la gmon.out
--- NEW FILE swftools.spec ---
# Filter Python modules from Provides
%{?filter_setup:
%filter_provides_in %{python_sitearch}/.*\.so$
%filter_setup
}
Name: swftools
Version: 0.9.1
Release: 5%{?dist}
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: GPLv3+ 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
BuildRequires: fftw-devel
BuildRequires: fontconfig-devel
BuildRequires: giflib-devel
BuildRequires: lame-devel
BuildRequires: python-imaging-devel
BuildRequires: zziplib-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
make install DESTDIR=$RPM_BUILD_ROOT
install -dm 0755 $RPM_BUILD_ROOT%{python_sitearch}/
install -Dp lib/python/*.so $RPM_BUILD_ROOT%{python_sitearch}/
%files
%doc AUTHORS ChangeLog COPYING doc/fileformat.sc
%{_bindir}/*
%{_mandir}/man1/*.1.*
%{_datadir}/%{name}/
%files -n python-%{name}
%{python_sitearch}/*.so
%changelog
* Tue Jan 24 2012 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 0.9.1-5
- Fix License tag
* Wed Nov 30 2011 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 0.9.1-4
- Spec cleanup
* Thu Jan 10 2011 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 0.9.1-3
- Remove pdflib-devel from BuildRequires
* Thu Nov 11 2010 Mohamed El Morabity <melmorabity(a)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(a)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(a)fedoraproject.org> 0.9.0-1
- Initial RPM release
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/swftools/F-15/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 24 Jan 2012 22:09:49 -0000 1.1
+++ .cvsignore 25 Jan 2012 00:48:18 -0000 1.2
@@ -0,0 +1 @@
+swftools-0.9.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/swftools/F-15/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 24 Jan 2012 22:09:49 -0000 1.1
+++ sources 25 Jan 2012 00:48:18 -0000 1.2
@@ -0,0 +1 @@
+72dc4a7bf5cdf98c28f9cf9b1d8f5d7a swftools-0.9.1.tar.gz