Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > c038348a7fdd4beee9f0c5f674ecdf01 > files > 5

gle-3.1.0-15.mga3.src.rpm

%define major 3
%define libname %mklibname gle %major
%define develname %mklibname -d gle

Summary: GLE Tubing and Extrusion Library
Name: gle
Version: 3.1.0
Release: %mkrel 15
License: GPLv2
Group: System/Libraries
Source: gle-%{version}.tar.bz2
# (Anssi 05/2008) Link against libGL and libGLU to fix undefined symbols.
Patch0: gle-3.1.0-link-with-gl+glu.patch
# (Anssi 05/2008) Fix Makefile.am files using += on unset CLEANFILES and SUFFIXES.
# This patch simply changes += to =, which AFAICS is correct here.
Patch1: gle-3.1.0-fix-makefiles.patch
Patch2: gle-3.1.0-automake-1.13.patch
URL: http://sourceforge.net/projects/gle
BuildRequires: mesaglu-devel >= 4.0.1
BuildRequires: freeglut-devel
BuildRequires: libxmu-devel
BuildRequires: libxi-devel

%description
GLE is a library package of C functions that draw extruded surfaces,
including surfaces of revolution, sweeps, tubes, polycones,
polycylinders and helicoids.  Generically, the extruded surface is
specified with a 2D polyline that is extruded along a 3D path.  A
local coordinate system allows for additional flexibility in the
primitives drawn.  Extrusions may be texture mapped in a variety of
ways.  The GLE library generates 3D triangle coordinates, lighting
normal vectors and texture coordinates as output. GLE uses the GL or
OpenGL API's to perform the actual rendering.

%package -n %libname
Summary: GLE shared library
Group: System/Libraries

%description -n %libname
GLE is a library package of C functions that draw extruded surfaces,
including surfaces of revolution, sweeps, tubes, polycones,
polycylinders and helicoids.  Generically, the extruded surface is
specified with a 2D polyline that is extruded along a 3D path.  A
local coordinate system allows for additional flexibility in the
primitives drawn.  Extrusions may be texture mapped in a variety of
ways.  The GLE library generates 3D triangle coordinates, lighting
normal vectors and texture coordinates as output. GLE uses the GL or
OpenGL API's to perform the actual rendering.

The shared library needed by GLE applications.

%package -n %develname
Summary: Devel files for GLE
Group: Development/C
Requires: %libname = %version
Provides: libgle-devel = %version
Provides: gle-devel = %version
Obsoletes: %{_lib}gle3-devel < 3.1.0-11

%description -n %develname
GLE is a library package of C functions that draw extruded surfaces,
including surfaces of revolution, sweeps, tubes, polycones,
polycylinders and helicoids.  Generically, the extruded surface is
specified with a 2D polyline that is extruded along a 3D path.  A
local coordinate system allows for additional flexibility in the
primitives drawn.  Extrusions may be texture mapped in a variety of
ways.  The GLE library generates 3D triangle coordinates, lighting
normal vectors and texture coordinates as output. GLE uses the GL or
OpenGL API's to perform the actual rendering.

The static library and headers needed for developing GLE applications.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1 -b .automake-1_13
find examples -name .cvsignore -exec rm {} \;

%build
# link-with-gl+glu.patch
autoreconf --force --install
%configure2_5x
%make

%install
rm -rf %{buildroot} installed-docs
%makeinstall_std
mv %buildroot%_datadir/doc/gle installed-docs

cd examples
make clean

# don't ship .a, .la
rm -f %{buildroot}/%_libdir/libgle.{a,la}

%clean
rm -rf %{buildroot}

%files -n %libname
%defattr(-, root, root)
%doc README NEWS COPYING AUTHORS
%_libdir/libgle.so.%{major}*

%files -n %develname
%defattr(-, root, root)
%doc ChangeLog src/COPYING.src src/README.gutil examples installed-docs
%_libdir/libgle.so
%_includedir/GL/*
%_mandir/man3/*


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 3.1.0-15.mga3
+ Revision: 351785
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Jan 05 2013 cjw <cjw> 3.1.0-14.mga3
+ Revision: 339149
- patch2: fix build with automake 1.13

* Sat Sep 24 2011 fwang <fwang> 3.1.0-13.mga2
+ Revision: 147181
- add br for examples
- cleanup br

* Thu Jan 20 2011 ahmad <ahmad> 3.1.0-12.mga1
+ Revision: 26668
- drop old/unneeded scriptlets
- don't ship .a, .la
- imported package gle