650e46
#define gitdate 20120904
650e46
650e46
Name:           mesa-libGLU
650e46
Version:        9.0.0
650e46
Release:        4%{?dist}
650e46
Summary:        Mesa libGLU library
650e46
650e46
License:        MIT
650e46
URL:            http://mesa3d.org/
650e46
Source0:        ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.bz2
650e46
Source2:        make-git-snapshot.sh
650e46
650e46
%if 0%{?gitdate}
650e46
BuildRequires:  autoconf automake libtool
650e46
%endif
650e46
BuildRequires:  mesa-libGL-devel
650e46
#Requires:       
650e46
Provides: libGLU
650e46
650e46
%description
650e46
Mesa implementation of the standard GLU OpenGL utility API.
650e46
650e46
%package        devel
650e46
Summary:        Development files for %{name}
650e46
Requires:       %{name}%{?_isa} = %{version}-%{release}
650e46
Requires:       gl-manpages
650e46
Provides:	libGLU-devel
650e46
650e46
%description    devel
650e46
The %{name}-devel package contains libraries and header files for
650e46
developing applications that use %{name}.
650e46
650e46
%prep
650e46
%setup -q -n glu-%{?gitdate:%{gitdate}}%{?!gitdate:%{version}}
650e46
650e46
%build
650e46
%if 0%{?gitdate}
650e46
autoreconf -v -i -f
650e46
%endif
650e46
%configure --disable-static
650e46
make %{?_smp_mflags}
650e46
650e46
%install
650e46
rm -rf $RPM_BUILD_ROOT
650e46
make install DESTDIR=$RPM_BUILD_ROOT
650e46
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
650e46
rm -rf $RPM_BUILD_ROOT%{_datadir}/man/man3/gl[A-Z]*
650e46
650e46
%post -p /sbin/ldconfig
650e46
650e46
%postun -p /sbin/ldconfig
650e46
650e46
%files
650e46
%{_libdir}/libGLU.so.1
650e46
%{_libdir}/libGLU.so.1.3.*
650e46
650e46
%files devel
650e46
%{_includedir}/GL/glu*.h
650e46
%{_libdir}/libGLU.so
650e46
%{_libdir}/pkgconfig/glu.pc
650e46
650e46
%changelog
650e46
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 9.0.0-4
650e46
- Mass rebuild 2014-01-24
650e46
650e46
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 9.0.0-3
650e46
- Mass rebuild 2013-12-27
650e46
650e46
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.0-2
650e46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
650e46
650e46
* Tue Sep 18 2012 Adam Jackson <ajax@redhat.com> 9.0.0-1
650e46
- libGLU 9.0
650e46
650e46
* Mon Sep 10 2012 Dave Airlie <airlied@redhat.com> 9.0-0.2
650e46
- add back libGLU provides for now
650e46
650e46
* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1
650e46
- Initial packaging for split libGLU
650e46