File gle.spec of Package gle

#
# spec file for package gle
#
# 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:           gle
BuildRequires:  freeglut-devel libdrm-devel libstdc++-devel
BuildRequires:  libtool
License:        GPL v2 or later
Group:          System/Libraries
Version:        3.1.0
Release:        127
Source:         http://download.sourceforge.net/gle/gle-%{version}.tar.bz2
Patch0:         %{name}-%{version}.diff
Patch1:         %{name}-%{version}-fltmax.diff
Url:            http://linas.org/gle/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        The GLE Tubing and Extrusion Library

%description
The GLE Tubing and Extrusion Library is a graphics application
programming interface (API). The library consists of a number of C
language subroutines for drawing tubing and extrusions. The library is
distributed in source code form in a package that includes
documentation, a VRML proposal, make files, and full source code and
header files. It uses the OpenGL (TM) programming API to perform the
actual drawing of the tubing and extrusions.



Authors:
--------
    Linas Vepstas <linas@linas.org>
    Mark Kilgard <mjk@nvidia.com>

%package -n libgle3
License:        GPL v2 or later
Group:          System/Libraries
Summary:        The GLE Tubing and Extrusion Library

%description -n libgle3
The GLE Tubing and Extrusion Library is a graphics application
programming interface (API). The library consists of a number of C
language subroutines for drawing tubing and extrusions. The library is
distributed in source code form in a package that includes
documentation, a VRML proposal, make files, and full source code and
header files. It uses the OpenGL (TM) programming API to perform the
actual drawing of the tubing and extrusions.



Authors:
--------
    Linas Vepstas <linas@linas.org>
    Mark Kilgard <mjk@nvidia.com>

%package -n libgle-devel
License:        GPL v2 or later
Group:          System/Libraries
Summary:        The GLE Tubing and Extrusion Library
Requires:       libgle3 = %{version}

%description -n libgle-devel
The GLE Tubing and Extrusion Library is a graphics application
programming interface (API). The library consists of a number of C
language subroutines for drawing tubing and extrusions. The library is
distributed in source code form in a package that includes
documentation, a VRML proposal, make files, and full source code and
header files. It uses the OpenGL (TM) programming API to perform the
actual drawing of the tubing and extrusions.



Authors:
--------
    Linas Vepstas <linas@linas.org>
    Mark Kilgard <mjk@nvidia.com>

%prep
%setup -q
%patch0
%patch1
find -name ".cvsignore" | xargs rm -fv

%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --with-pic
make %{?jobs:-j%jobs}

%check
make check

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gle
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libgle3 -p /sbin/ldconfig

%postun -n libgle3 -p /sbin/ldconfig

%files -n libgle3
%defattr(-, root, root)
%doc AUTHORS COPYING doc/COPYING.artistic README
%{_libdir}/lib*.so.*

%files -n libgle-devel
%defattr(-, root, root)
%doc doc/html/*.jpg doc/html/*.gif doc/html/*.html doc/html/README doc/gle-*.lsm
%doc %{_mandir}/man3/*
%{_includedir}/GL
%{_libdir}/lib*.so

%changelog
openSUSE Build Service is sponsored by