Blame alleggl.spec

0197589
Name:           alleggl
589902e
Version:        0.4.3
1c4a1cd
Release:        7%{?dist}
0197589
Summary:        OpenGL support library for Allegro
0197589
Group:          System Environment/Libraries
aa319b7
License:        zlib
0197589
URL:            http://allegrogl.sourceforge.net/
642b368
Source0:        http://downloads.sourceforge.net/allegrogl/%{name}-%{version}.tar.bz2
4e03981
Patch0:         alleggl-0.4.2-gcc43.patch
a805759
Patch1:         alleggl-0.4.3-fullscreen-viewport.patch
1c4a1cd
Patch2:         alleggl-0.4.3-make.patch
0197589
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0197589
BuildRequires:  allegro-devel libGLU-devel libX11-devel libXext-devel
c327740
BuildRequires:  libXpm-devel libXxf86vm-devel
0197589
0197589
%description
0197589
AllegroGL is an Allegro add-on that allows you to use OpenGL alongside Allegro.
0197589
You use OpenGL for your rendering to the screen, and Allegro for miscellaneous
0197589
tasks like gathering input, doing timers, getting cross-platform portability,
0197589
loading data, and drawing your textures. So this library fills the same hole
0197589
that things like glut do.
0197589
0197589
AllegroGL also automatically exposes most, if not all, OpenGL extensions
0197589
available to user programs. This means you no longer have to manually load
0197589
them; extension management is already done for you.
0197589
0197589
0197589
%package        devel
0197589
Summary:        Development files for %{name}
0197589
Group:          Development/Libraries
0197589
Requires:       %{name} = %{version}-%{release}
0197589
Requires:       allegro-devel libGL-devel
0197589
0197589
%description    devel
0197589
The %{name}-devel package contains libraries and header files for
0197589
developing applications that use %{name}.
0197589
0197589
0197589
%prep
589902e
%setup -q -n %{name}
4e03981
%patch0 -p1
a805759
%patch1 -p1
1c4a1cd
%patch2 -p1
0197589
0197589
0197589
%build
642b368
# the --with-x-foo is there so that configure doesn't add -L/usr/lib to
642b368
# the LDFLAGS, as that will result in an installed older alleggl getting used
642b368
# during the linking of the examples, possibly resulting in an error
642b368
%configure --disable-static --x-includes='' --x-libraries=''
0197589
make %{?_smp_mflags} 'LIB_BUILDER=gcc -shared -Wl,-soname,libagl.so.0 -o' \
0197589
  CFLAGS="$RPM_OPT_FLAGS -ffast-math"
0197589
0197589
0197589
%install
0197589
rm -rf $RPM_BUILD_ROOT
0197589
make install DESTDIR=$RPM_BUILD_ROOT
589902e
0197589
# alleggl installs an autoheader generated header file which could very
0197589
# well conflict with other autoheader generated header files, so we override
0197589
# this with our own version which contains only the bare minimum:
0197589
echo '#define ALLEGROGL_HAVE_DYNAMIC_LINK 1' \
0197589
  > $RPM_BUILD_ROOT%{_includedir}/alleggl_config.h
0197589
echo '#define ALLEGROGL_HAVE_XF86VIDMODE 1' \
0197589
  >> $RPM_BUILD_ROOT%{_includedir}/alleggl_config.h
589902e
0197589
# we don't want these files to end up under %%doc and there is no way
0197589
# to %%exclude files from %%doc, so we remove them
0197589
rm docs/html/index.hh?
0197589
0197589
0197589
%clean
0197589
rm -rf $RPM_BUILD_ROOT
0197589
0197589
0197589
%post -p /sbin/ldconfig
0197589
0197589
%postun -p /sbin/ldconfig
0197589
0197589
0197589
%files
0197589
%defattr(-,root,root,-)
0197589
%doc bugs.txt todo.txt
642b368
%{_libdir}/libagl.so.0*
0197589
0197589
%files devel
0197589
%defattr(-,root,root,-)
0197589
%doc extensions.txt faq.txt howto.txt quickstart.txt docs/html
0197589
%{_includedir}/*
0197589
%{_libdir}/libagl.so
0197589
0197589
0197589
%changelog
1c4a1cd
* Fri Sep 10 2010 Hans de Goede <hdegoede@redhat.com> 0.4.3-7
1c4a1cd
- Fix FTBFS (#631146)
1c4a1cd
a805759
* Thu Sep 10 2009 Hans de Goede <hdegoede@redhat.com> 0.4.3-6
a805759
- Fix (workaround) viewport issues in fullscreen mode (#522116)
a805759
41fcef9
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-5
41fcef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
41fcef9
4b4a49a
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-4
4b4a49a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4b4a49a
a18d1f7
* Fri Feb 15 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-3
a18d1f7
- Upstream has done a new (respin) release without bumping the version GRR
a18d1f7
- Rebuild for gcc 4.3
a18d1f7
4e03981
* Fri Dec  4 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-2
4e03981
- Fix headers to allow inclusion from c++ programs compiled with gcc 4.3
4e03981
589902e
* Sun Nov 11 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-1
589902e
- New upstream release 0.4.3
589902e
- Drop prebuild doxygen Source as upstream now includes prebuild doxygen docs
589902e
c327740
* Sun Oct 21 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.2-2
c327740
- Some cleanups to the multilib doxygen documentation bugfix
c327740
0e1d452
* Sun Oct 21 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.2-1
0e1d452
- Upstream has renamed rc1 to final, so drop the .rc1 from the release field
0e1d452
- Fix multilib conflicts in doxygen documentation (bz 340611)
0e1d452
aa319b7
* Thu Aug  2 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.2-0.2.rc1
aa319b7
- Update License tag for new Licensing Guidelines compliance
b38ed86
642b368
* Sun Jun  3 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.1-1
642b368
- New upstream release 0.4.1 final
642b368
2eb210d
* Wed Dec 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.0-1
2eb210d
- New upstream release 0.4.0 final
2eb210d
c7c2b75
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.0-0.5.rc4
c7c2b75
- FE6 Rebuild
c7c2b75
0197589
* Thu Aug 10 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.0-0.4.rc4
0197589
- Cleanup %%doc for both base and -devel a bit
0197589
0197589
* Fri Aug  4 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.0-0.3.rc4
0197589
- Add missing BRs: libXext-devel and libXpm-devel
0197589
0197589
* Thu Aug  3 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.0-0.2.rc4
0197589
- Replace installed autoheader generated header file with our own version
0197589
  which contains only the nescesarry alleggl specific defines, thus avoiding
0197589
  possible conflicts with other autoheader generated headers.
0197589
0197589
* Thu Aug  3 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.0-0.1.rc4
0197589
- Initial Fedora Extras package