|
|
0197589 |
Name: alleggl
|
|
|
0197589 |
Version: 0.4.0
|
|
|
2eb210d |
Release: 1%{?dist}
|
|
|
0197589 |
Summary: OpenGL support library for Allegro
|
|
|
0197589 |
Group: System Environment/Libraries
|
|
|
0197589 |
License: zlib License
|
|
|
0197589 |
URL: http://allegrogl.sourceforge.net/
|
|
|
2eb210d |
Source0: http://dl.sf.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
|
|
|
0197589 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
0197589 |
BuildRequires: allegro-devel libGLU-devel libX11-devel libXext-devel
|
|
|
0197589 |
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
|
|
|
0197589 |
%setup -q -n %{name}
|
|
|
0197589 |
|
|
|
0197589 |
|
|
|
0197589 |
%build
|
|
|
0197589 |
%configure --disable-static
|
|
|
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
|
|
|
0197589 |
mv $RPM_BUILD_ROOT%{_libdir}/libagl.so $RPM_BUILD_ROOT%{_libdir}/libagl.so.0
|
|
|
0197589 |
chmod +x $RPM_BUILD_ROOT%{_libdir}/libagl.so.0
|
|
|
0197589 |
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
|
|
|
0197589 |
%{_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
|
|
|
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
|