File bdfresize.spec of Package bdfresize

#
# spec file for package bdfresize (Version 1.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           bdfresize
License:        GPL v2 or later
Group:          System/X11/Utilities
AutoReqProv:    on
Version:        1.5
Release:        548
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 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
* 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