Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > caecedfe867467e9688b0e6814b0aace > files > 2

allegro-4.0.2-2mdk.src.rpm

%define name	allegro
%define version	4.0.2
%define release	2mdk
%define libname	lib%{name}%{major}
%define major	4

Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
Summary:	Game programming library
Source0:	http://sunsite.auc.dk/allegro/%{name}-%{version}.tar.bz2
License:	Public Domain
Group:		System/Libraries
BuildRoot:	%_tmppath/%name-buildroot
Buildrequires:	glibc-static-devel
ExcludeArch:	ppc
URL:		http://alleg.sourceforge.net

%description
Allegro is a library of functions for use in computer games

%package -n %libname
Summary:        Game programming library
Group:          System/Libraries

%description -n %libname
Allegro is a library of functions for use in computer games

%package -n %libname-devel
Summary:        Game programming library
Group:          System/Libraries
Requires:	%libname = %version
Provides:	liballegro-devel allegro-devel
Obsoletes:	allegro-devel

%description -n %libname-devel
Allegro is a library of functions for use in computer games.
This package contains files needed to build programs using Allegro.

%prep
rm -rf $RPM_BUILD_ROOT
%setup -q

%build
export CFLAGS=$RPM_OPT_FLAGS
autoconf
./configure --prefix=%_prefix --datadir=%_datadir --mandir=%_mandir \
	--enable-fbcon=no --enable-shared

make depend
make

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %libname -p /sbin/ldconfig

%postun -n %libname -p /sbin/ldconfig

%files
%defattr(-,root,root)
%_bindir/colormap
%_bindir/dat
%_bindir/dat2s
%_bindir/exedat
%_bindir/grabber
%_bindir/pack
%_bindir/pat2dat
%_bindir/rgbmap
%_bindir/textconv

%files -n %libname
%defattr(-,root,root)
%doc readme.txt
%_libdir/*.so.*
%_libdir/*.so

%files -n %libname-devel
%defattr(-,root,root)
%doc faq.txt
%_bindir/allegro-config
%_libdir/*.a
%_includedir/*

%changelog
* Wed Jul 10 2002 Lenny Cartier <lenny@mandrakesoft.com> 4.0.2-2mdk
- update buildrequires 

* Mon Jul 08 2002 Lenny Cartier <lenny@mandrakesoft.com> 4.0.2-1mdk
- 4.0.2

* Mon Apr 08 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 4.0.1-2mdk
- let include in non-versioned dir

* Mon Apr 01 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 4.0.1-1mdk
- 4.0.1
- dropped patch
- moved allegro-config to devel package

* Mon Mar 11 2002 Lenny Cartier <lenny@mandrakesoft.com> 4.0.0-4mdk
- regenerate patch from Levi Ramsey to fix allegro.h

* Thu Mar 07 2002 Lenny Cartier <lenny@mandrakesoft.com> 4.0.0-3mdk
- fix(again) file section (thx Yannick Roehlly)

* Wed Jan 30 2002 Lenny Cartier <lenny@mandrakesoft.com>  4.0.0-2mdk
- fix files section

* Mon Dec 17 2001 Lenny Cartier <lenny@mandrakesoft.com>  4.0.0-1mdk
- 4.0.0

* Tue Oct 02 2001 Lenny Cartier <lenny@mandrakesoft.com>  3.9.38-1mdk
- 3.9.38

* Mon May 14 2001 Lenny Cartier <lenny@mandrakesoft.com>  3.9.36-1mdk
- updated to 3.9.36

* Wed Feb 28 2001 Lenny Cartier <lenny@mandrakesoft.com>  3.9.34-1mdk
- updated by Vlatko Kosturjak <kost@linux-mandrake.com> 3.9.34-1mdk
	- support for new version
	- removed patch
- use egcs

* Thu Jan 04 2001 David BAUDENS <baudens@mandrakesoft.com> 3.9.33-3mdk
- ExcludeArch: PPC
- Fix devel description
- Spec clean up

* Thu Jan 04 2001 Lenny Cartier <lenny@mandrakesoft.com> 3.9.33-2mdk
- rebuild

* Wed Sep 27 2000 Pixel <pixel@mandrakesoft.com> 3.9.33-1mdk
- initial spec