File gdchart.spec of Package gdchart

#
# spec file for package gdchart (Version 0.11.5dev)
#
# 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:           gdchart
BuildRequires:  freetype2-devel gd-devel libjpeg-devel libpng-devel xorg-x11-devel
Version:        0.11.5dev
Release:        174
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
* 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
openSUSE Build Service is sponsored by