Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Fedora Release Engineering
a3be12702c dist-git conversion 2010-07-29 15:34:46 +00:00
Nicoleau Fabien
84f69ce926 New package 2010-02-04 18:09:31 +00:00
a339180515 Initialize branch F-11 for xcftools 2010-02-04 02:36:19 +00:00
5 changed files with 60 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
xcftools-1.0.7.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: xcftools
# $Id$
NAME := xcftools
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
fd960b6470fb23520fc4b1ade6cf6e25 xcftools-1.0.7.tar.gz

58
xcftools.spec Normal file
View file

@ -0,0 +1,58 @@
Name: xcftools
Version: 1.0.7
Release: 1%{?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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext libpng-devel
%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
# 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
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}/man1/
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README
%{_bindir}/xcf*
%{_mandir}/man?/xcf*.1.gz
%{_mandir}/da/man?/xcf*.1.gz
%changelog
* Tue Dec 22 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> 1.0.7-1
- Initital build