Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c8969b1ff | ||
|
|
81442ffb92 |
6 changed files with 117 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
xcftools-1.0.7.tar.gz
|
||||
|
|
@ -1 +0,0 @@
|
|||
Orphaned for 6+ weeks
|
||||
20
fix_sed_replacement_error.patch
Normal file
20
fix_sed_replacement_error.patch
Normal file
|
|
@ -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 \
|
||||
14
replace_png_null_macros.patch
Normal file
14
replace_png_null_macros.patch
Normal file
|
|
@ -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"));
|
||||
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
fd960b6470fb23520fc4b1ade6cf6e25 xcftools-1.0.7.tar.gz
|
||||
81
xcftools.spec
Normal file
81
xcftools.spec
Normal file
|
|
@ -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 <lakshminaras2002@gmail.com> - 1.0.7-5
|
||||
- Rebuild
|
||||
|
||||
* Sat Feb 18 2012 Lakshmi Narasimhan T V <lakshminaras2002@gmail.com> - 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 <lakshminaras2002@gmail.com> - 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 <rel-eng@lists.fedoraproject.org> - 1.0.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Tue Dec 22 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> 1.0.7-1
|
||||
- Initital build
|
||||
Loading…
Add table
Add a link
Reference in a new issue