Name: quesoglc
Version: 0.6.5
Release: 4%{?dist}
Summary: The OpenGL Character Renderer
Group: System Environment/Libraries
License: LGPLv2+
URL: http://quesoglc.sourceforge.net/
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}-freecode.tar.gz
# quesoglc contains non-free code that we cannot ship (under freeB and GLXPL).
# Therefore we use this script to remove the patented code before shipping it.
# Download the upstream tarball and invoke this script while in the
# tarball's directory:
# ./generate-tarball.sh 0.6.5
Source1: generate-tarball.sh
Patch0: %{name}-fixbuild.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: fontconfig-devel freeglut-devel
BuildRequires: fribidi-devel glew-devel libSM-devel libXmu-devel
BuildRequires: libXi-devel doxygen
BuildRequires: pkgconfig
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libGL-devel
%description
The OpenGL Character Renderer (GLC) is a state machine that provides OpenGL
programs with character rendering services via an application programming
interface (API).
%description devel
This package provides the libraries, include files, and other resources needed
for developing GLC applications.
%prep
%setup -q
%patch0
ln -s %{_includedir}/GL/{glxew,wglew,glew}.h include/GL/
%build
%configure --disable-static
make %{?_smp_mflags}
cd docs
doxygen
cd ../
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/libGLC.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libGLC.so.*
%doc AUTHORS Changelog LICENSE README THANKS docs/html
%files devel
%defattr(-,root,root,-)
%{_includedir}/GL/glc.h
%{_libdir}/libGLC.so
%changelog
* Thu Dec 27 2007 Karol Trzcionka <karlikt at gmail.com> - 0.6.5-4
- Delete %%check
* Sun Dec 23 2007 Karol Trzcionka <karlikt at gmail.com> - 0.6.5-3
- Add %%check section
- Remove redundant BuildRequires
* Sat Dec 22 2007 Karol Trzcionka <karlikt at gmail.com> - 0.6.5-2
- Remove freeB and GLXPL files
- Add html docs
- Add Requires for subpackage -devel
- Fix BuildRequires
* Sat Dec 01 2007 Karol Trzcionka <karlikt at gmail.com> - 0.6.5-1
- Initial release