File hp2xx.spec of Package hp2xx

#
# spec file for package hp2xx
#
# Copyright (c) 2011 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:           hp2xx
BuildRequires:  libpng-devel libtiff-devel xorg-x11 xorg-x11-devel
License:        GPLv2+
Group:          Productivity/Graphics/Convertors
Url:            http://www.gnu.org/software/hp2xx/hp2xx.html
AutoReqProv:    on
Version:        3.4.2
Release:        567
Summary:        Converts HP-GL Plotter Language into a Variety of Formats
Source:         hp2xx-%{version}.tar.bz2
Patch0:         hp2xx-%{version}-fix.patch
Patch1:         hp2xx-3.4.2-implicit-decls.patch
Patch2:         hp2xx-3.4.2-png-deprecated.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq

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



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

%prep
%setup -q
%patch0 -p1 -b .fix
%patch1
%patch2

%build
make CC="%__cc" 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
openSUSE Build Service is sponsored by