diff --git a/dead.package b/dead.package deleted file mode 100644 index b8c7442..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -This package was retired on 2012-02-06 due to lack of a maintainer. diff --git a/fix_sed_replacement_error.patch b/fix_sed_replacement_error.patch new file mode 100644 index 0000000..7b19d3e --- /dev/null +++ b/fix_sed_replacement_error.patch @@ -0,0 +1,20 @@ +--- xcftools-1.0.7_orig/Makefile.in 2012-02-18 12:10:35.188524032 +0530 ++++ xcftools-1.0.7/Makefile.in 2012-02-18 12:11:49.442046880 +0530 +@@ -89,14 +89,13 @@ + + install: all + for p in $(BINARIES) ; do \ +- case $$p in xcfview) strip= ;; *) strip=-s ;; esac ; \ +- $(INSTALL_PROGRAM) $$strip $$p \ +- $(DESTDIR)$(bindir)/`echo $$p | $(SED) $(program_transform_name)` \ ++ $(INSTALL_PROGRAM) $$p \ ++ $(DESTDIR)$(bindir)/$$p \ + || exit 1 ;\ + done + for m in $(MANPAGES) ; do \ + $(INSTALL_DATA) $$m \ +- $(DESTDIR)$(mandir)/man1/`echo $$m | $(SED) $(program_transform_name)` \ ++ $(DESTDIR)$(mandir)/man1/$$m \ + || exit 1 ; \ + done + for lang in $(LINGUAS) ; do \ diff --git a/replace_png_null_macros.patch b/replace_png_null_macros.patch new file mode 100644 index 0000000..5d4e20e --- /dev/null +++ b/replace_png_null_macros.patch @@ -0,0 +1,14 @@ +--- xcftools-1.0.7/xcf2png.c 2009-07-03 16:01:52.000000000 +0530 ++++ xcftools-1.0.7_new/xcf2png.c 2012-02-12 10:34:37.668114583 +0530 +@@ -71,9 +71,9 @@ + + outfile = openout(flatspec.output_filename); + libpng = png_create_write_struct(PNG_LIBPNG_VER_STRING, +- png_voidp_NULL, ++ (png_voidp)NULL, + my_error_callback, +- png_error_ptr_NULL); ++ (png_error_ptr)NULL); + if( !libpng ) + FatalUnexpected(_("Couldn't initialize libpng library")); + diff --git a/sources b/sources new file mode 100644 index 0000000..c5fd839 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +fd960b6470fb23520fc4b1ade6cf6e25 xcftools-1.0.7.tar.gz diff --git a/xcftools.spec b/xcftools.spec new file mode 100644 index 0000000..a937440 --- /dev/null +++ b/xcftools.spec @@ -0,0 +1,81 @@ +Name: xcftools +Version: 1.0.7 +Release: 5%{?dist} +Summary: Command-line tools for extracting information from XCF files + +Group: Applications/Multimedia +License: Public Domain +URL: http://henning.makholm.net/software +Source0: http://henning.makholm.net/%{name}/%{name}-%{version}.tar.gz +BuildRequires: gettext libpng-devel + +#patches +Patch1: replace_png_null_macros.patch +Patch2: fix_sed_replacement_error.patch + +%description +Xcftools is a set of fast command-line tools for extracting information from +the Gimp's native file format XCF. The tools are designed to allow efficient +use of layered XCF files as sources in a build system that use 'make' and +similar tools to manage automatic processing of the graphics. +These tools work independently of the Gimp engine and do not require +the Gimp to even be installed. + +%prep +%setup -q +%patch1 -p1 -b .orig +%patch2 -p1 -b .orig +# To avoid strip before install (that will generate an empty debuginfo) +sed -i -e '/strip=/d' Makefile.in + +%build +%configure +make %{?_smp_mflags} +cd manpo +# Convert to utf-8 +for file in xcf2png.da.1 xcf2pnm.da.1 xcfinfo.da.1 xcfview.da.1 ; do + iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && touch -r $file $file.new && mv $file.new $file +done + + +%install +mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}/man1/ +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +%find_lang %{name} + + +%files -f %{name}.lang +%doc README +%{_bindir}/xcfview +%{_bindir}/xcfinfo +%{_bindir}/xcf2pnm +%{_bindir}/xcf2png +%{_mandir}/man?/xcfview.1.gz +%{_mandir}/man?/xcfinfo.1.gz +%{_mandir}/man?/xcf2pnm.1.gz +%{_mandir}/man?/xcf2png.1.gz +%{_mandir}/da/man?/xcfview.1.gz +%{_mandir}/da/man?/xcfinfo.1.gz +%{_mandir}/da/man?/xcf2pnm.1.gz +%{_mandir}/da/man?/xcf2png.1.gz + + +%changelog +* Fri Mar 16 2012 Lakshmi Narasimhan T V - 1.0.7-5 +- Rebuild + +* Sat Feb 18 2012 Lakshmi Narasimhan T V - 1.0.7-4 +- Apply patch to fix bash substitution error. The program_transform_name macro +- becomes s&^&& instead of s,x,x after running rpmbuild's configure. Problem seems +- to be with passing --program-prefix= +- Enumerate the list of binaries and man pages + +* Sun Feb 12 2012 Lakshmi Narasimhan T V - 1.0.7-3 +- Reviving the package. Remove buildroot, and clean. +- Apply patch to fix reference to obsoleted PNG Null macros. + +* Mon Feb 07 2011 Fedora Release Engineering - 1.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 22 2009 Nicoleau Fabien 1.0.7-1 +- Initital build