Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3be12702c | ||
|
|
84f69ce926 | ||
| a339180515 |
5 changed files with 60 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
xcftools-1.0.7.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -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)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
fd960b6470fb23520fc4b1ade6cf6e25 xcftools-1.0.7.tar.gz
|
||||
58
xcftools.spec
Normal file
58
xcftools.spec
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue