File gtkglut.spec of Package gtkglut

# $Id: gtkglut.spec 2975 2005-03-09 05:31:45Z dag $
# Authority: Jan Friesse

%{?dist: %{expand: %%define %dist 1}}

Summary: GLUT replacement based on GTK+ and GtkGLExt
Name: gtkglut
Version: 0.3.7.1
Release: 2
License: MIT
Group: System Environment/Libraries

Source: %{name}-%{version}.tar.bz2
#Source1: configure.in
#Source2: Makefile.in
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gtk2-devel 
# libtool *sigh*
BuildRequires: gcc-c++
%if ! %defined suse_version
# FIXME: maybe redundant dependencies!
BuildRequires: libXt-devel, mesa-libGLU-devel
%endif
BuildRequires: gtkglext-devel
BuildRequires: doxygen

%description
GtkGLUT is an GLUT replacement based on GTK+ and GtkGLExt.

%package devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}, gtk2-devel

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -q -n %{name}-0.3.7

#cp %{SOURCE1} configure.in
#cp %{SOURCE2} Makefile.in
#mv Makefile Makefile.old

%build
aclocal
autoconf
./configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_defaultdocdir}
%{__make} default docs

%install
%if ! %defined suse_version
%{__rm} -rf %{buildroot}
%endif
%{__make} DESTDIR=%{buildroot} install


%clean
%{__rm} -rf %{buildroot}


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%files
%defattr(-, root, root, 0755)
%doc COPYING INSTALL README README.win32
%{_libdir}/*.so.*
%{_libdir}/*.so

%files devel
%defattr(-, root, root, 0755)
%doc doc/html/
%{_includedir}/gtkglut-0.3/
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc


%changelog
* Fri May 09 2008 Michal Vyskocil <mvyskocil@suse.cz>
- A new release (0.3.7.1)
  - import of autools into the build process in Linux
  - fixed a bug in Makefile.in
* Fri Apr 25 2008 Michal Vyskocil <mvyskocil@suse.cz> 1.2.0-2
- Imported to openSUSE Build Service
- used autotools (autoconf) to produce a more common build process
* Sat Apr 19 2008 Jan Friesse <jfriesse@gmail.com> 1.2.0-1
- First version
openSUSE Build Service is sponsored by