File bdfresize.spec of Package bdfresize

#
# spec file for package bdfresize (Version 1.5)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

Name:         bdfresize
License:      GPL
Group:        System/X11/Utilities
Autoreqprov:  on
Version:      1.5
Release:      415
URL:          http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/
#Original source: http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/bdfresize-1.5.tar.gz
Source0:      http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/bdfresize-%{version}.tar.bz2
Patch:        bdfresize-gcc4.patch
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Summary:      A Tool for Resizing BDF Format Fonts

%description
Bdfresize is a command for magnifying or shrinking fonts which are
described in the standard BDF format.



Authors:
--------
    Hiroto Kagotani <kagotani@cs.titech.ac.jp>
    Kazuhiko <kazuhiko@ring.gr.jp>
    Masao Uebayashi <uebayasi@soum.co.jp>

%prep
%setup0
%patch

%build
rm -f config.cache
# update config.{guess,sub}
%{?suse_update_config}
export CFLAGS="$RPM_OPT_FLAGS" 
./configure --prefix=%{_prefix} \
            --mandir=%{_mandir} \
            --infodir=%{_infodir} \
            %{_target_cpu}-suse-linux
make 

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_prefix}/bin/*
%{_mandir}/man1/*

%changelog -n bdfresize
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Apr 08 2005 - uli@suse.de
- fixed to build with GCC4
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Wed Nov 14 2001 - mfabian@suse.de
- new package: bdfresize-1.5
openSUSE Build Service is sponsored by