File gdchart.spec of Package gdchart
#
# spec file for package gdchart (Version 0.11.5dev)
#
# 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://bugs.opensuse.org
#
# norootforbuild
Name: gdchart
BuildRequires: freetype2-devel gd-devel libjpeg-devel libpng-devel xorg-x11-devel
Version: 0.11.5dev
Release: 1
Group: Development/Libraries/C and C++
License: Other uncritical OpenSource License
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: http://www.fred.net/brv/chart/
Source: http://www.fred.net/brv/chart/gdchart%{version}.tar.gz
Patch: gdchart0.11.5dev_makefile.patch
Patch1: gdchart0.11.5dev_compilefixes.patch
Summary: Bruce Verderaime's GDChart chart-drawing utility.
%description
GDChart is a chart drawing library based on GD.
Authors:
--------
Bruce Verderaime <brv@fred.net>
%prep
%setup -n gdchart%{version}
%patch
%patch1
%build
%{__make} GD_LD="%{_libdir}" CFLAGS="%{optflags} -Wno-unused -fPIC"
%install
%{__install} -Dd -m 0755 %{buildroot}{%{_libdir},%{_includedir}}
%makeinstall \
PREFIX_LIB=%{buildroot}%{_libdir} \
PREFIX_INC=%{buildroot}%{_includedir}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{_includedir}/gdc.h
%{_includedir}/gdchart.h
%{_includedir}/gdcpie.h
%{_libdir}/libgdc.a
%changelog -n gdchart
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Nov 18 2005 - mrueckert@suse.de
- added -fPIC so we can link it into .so files
* Fri Nov 18 2005 - mrueckert@suse.de
- New package: version 0.11.5dev