File hp2xx.spec of Package hp2xx

#
# spec file for package hp2xx (Version 3.4.2)
#
# Copyright (c) 2006 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://bugs.opensuse.org
#

# norootforbuild

Name:         hp2xx
BuildRequires: libpng-devel libtiff-devel xorg-x11 xorg-x11-devel
License:      GPL
Group:        Productivity/Graphics/Convertors
URL:          http://www.gnu.org/software/hp2xx/hp2xx.html
Autoreqprov:  on
Version:      3.4.2
Release:      357
Summary:      Converts HP-GL Plotter Language into a Variety of Formats
Source:       hp2xx-%{version}.tar.bz2
Patch0:       hp2xx-%{version}-fix.patch
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
PreReq:       %install_info_prereq

%description
The hp2xx program is a versatile tool for converting vector-oriented
graphics data given in Hewlett-Packard's HP-GL plotter language into a
variety of popular graphics formats, both vector- and raster-oriented.



Authors:
--------
    Martin Kroeker <mk@daveg.com>
    Heinz W. Werntges

%prep
%setup -q
%patch -p1 -b .fix

%build
make OPTFLAGS="$RPM_OPT_FLAGS" LFLAGS="-L/usr/X11R6/%{_lib}"

%install
mkdir -p $RPM_BUILD_ROOT/{usr/bin,%{_infodir},%{_mandir}/man1}
make bindir=$RPM_BUILD_ROOT/usr/bin \
     infodir=$RPM_BUILD_ROOT/%{_infodir} \
     mandir=$RPM_BUILD_ROOT/%{_mandir} install STRIP=true

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/usr/bin/hp2xx
%{_mandir}/man1/hp2xx.*
%{_infodir}/hp2xx.*
%doc AUTHORS CHANGES README TODO copying doc/readme doc/changes doc/hp_cmds.lst

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%changelog -n hp2xx
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 - schwab@suse.de
- Don't strip binaries.
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Thu Apr 24 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
* Tue Feb 11 2003 - nadvornik@suse.cz
- added install_info macros
* Mon Jul 29 2002 - meissner@suse.de
- fixed to work on non i386.
* Fri Jul 26 2002 - nadvornik@suse.cz
- updated to 3.4.2
* Wed Apr 24 2002 - nadvornik@suse.cz
- used %%{_lib} macro
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Thu Mar 08 2001 - nadvornik@suse.cz
- update to 3.4.0
* Thu Oct 26 2000 - nadvornik@suse.cz
- new package
openSUSE Build Service is sponsored by