Blame alleggl.spec

0197589
Name:           alleggl
b38ed86
Version:        0.4.2
c327740
Release:        2%{?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
0e1d452
# prebuild doxygen docs to avoid multilib conflicts. To regenerate: untar,
c327740
# cd docs, doxygen Doxyfile, cd ..,
c327740
# tar cvfz %{name}-%{version}-doxygen-docs.tar.gz docs
c327740
Source1:        %{name}-%{version}-doxygen-docs.tar.gz
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
0e1d452
%setup -q -a 1 -n %{name}
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
0197589
# clean up messy alleggl install
b38ed86
# mv $RPM_BUILD_ROOT%{_libdir}/libagl.so $RPM_BUILD_ROOT%{_libdir}/libagl.so.0
b38ed86
# chmod +x $RPM_BUILD_ROOT%{_libdir}/libagl.so.0
b38ed86
# ln -s libagl.so.0 $RPM_BUILD_ROOT%{_libdir}/libagl.so
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
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
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