Sisyphus repository
Last update: 26 march 2019 | SRPMs: 17629 | Visits: 13279960
en ru br
ALT Linux repos
S:0.11.5-alt1.1.qa1

Group :: System/Libraries
RPM: libgdchart

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libgdchart
Version: 0.11.5
Release: alt1.1.qa1

Packager: Victor Forsiuk <force at altlinux.org>

Summary: Generate graphs using the GD library
License: BSD
Group: System/Libraries

URL: http://www.fred.net/brv/chart/
Source: http://www.fred.net/brv/chart/gdchart%{version}dev.tar.gz

# Automatically added by buildreq on Thu Jan 28 2010

BuildRequires: libfreetype-devel libgd2-devel libjpeg-devel libpng-devel

%description
A library for generating nice 2d and 3d graphs with the use of GD.

%package devel
Summary: Development tools for programs which will use the %name library
Group: Development/C
Requires: %name = %version-%release

%description devel
The %name-devel package includes the header files necessary for developing
programs which will use the %name library.

%prep
%setup -n gdchart%{version}dev

%build
subst 's at /local at  at ' Makefile
subst 's at /usr/lib at %_libdir at ' Makefile
subst 's/^EXTERND//' array_alloc.h  gdchart.h  gdcpie.h gdc.h
%make_build CFLAGS="%optflags -fPIC -fno-stack-protector"

# Author build only static library, but we need shared one.

ld -shared -soname libgdc.so.0.11.5 -o libgdc.so.0.11.5 price_conv.o gdc.o gdc_pie.o gdchart.o array_alloc.o -lm -lgd
ln -s libgdc.so.0.11.5 libgdc.so.0
ln -s libgdc.so.0.11.5 libgdc.so

%install
install -d %buildroot{%_includedir,%_libdir}
install -pm644 gdc.h gdchart.h gdcpie.h %buildroot%_includedir
install -pm644 libgdc.so* %buildroot%_libdir

%files
%_libdir/lib*.so.*

%files devel
%_includedir/*
%_libdir/lib*.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin