diff --git a/.cvsignore b/.cvsignore index e69de29..446d349 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +guichan-0.5.0-src.tar.gz diff --git a/compat-guichan05.spec b/compat-guichan05.spec new file mode 100644 index 0000000..3c1849d --- /dev/null +++ b/compat-guichan05.spec @@ -0,0 +1,116 @@ +Name: compat-guichan05 +Version: 0.5.0 +Release: 4%{?dist} +Summary: Compatibility libraries for older guichan versions + +Group: Development/Libraries +License: BSD +URL: http://guichan.sourceforge.net +Source0: http://downloads.sourceforge.net/guichan/guichan-%{version}-src.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Obsoletes: guichan < 0.6.0 + +BuildRequires: allegro-devel, SDL-devel, SDL_image-devel, libGL-devel +BuildRequires: freeglut-devel + +%description +Guichan is a small, efficient C++ GUI library designed for games. It comes +with a standard set of widgets and can use several different objects for +displaying graphics and grabbing user input. + +This package contains compatibility libraries for guichan 0.5 + +%package devel +Summary: Header and libraries for guichan development +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This package includes header and libraries files for development using +guichan, a small and efficient C++ GUI library designed for games. This +package is needed to build programs written using guichan. + +%prep +%setup -q -n guichan-%{version}-src + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +# Removing Libtool and static archives +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a + +# Move some things around for the compat package +mkdir -p $RPM_BUILD_ROOT%{_includedir}/guichan-0.5 +mv $RPM_BUILD_ROOT%{_includedir}/guichan $RPM_BUILD_ROOT%{_includedir}/guichan-0.5 +mv $RPM_BUILD_ROOT%{_includedir}/guichan.hpp $RPM_BUILD_ROOT%{_includedir}/guichan-0.5 + +mkdir -p $RPM_BUILD_ROOT%{_libdir}/guichan-0.5 +for lib in libguichan libguichan_allegro libguichan_glut libguichan_opengl libguichan_sdl ; do + rm -f $RPM_BUILD_ROOT%{_libdir}/${lib}.so + ln -s ../${lib}.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/guichan-0.5/${lib}.so +done + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README TODO +%{_libdir}/libguichan.so.* +%{_libdir}/libguichan_allegro.so.* +%{_libdir}/libguichan_glut.so.* +%{_libdir}/libguichan_opengl.so.* +%{_libdir}/libguichan_sdl.so.* + +%files devel +%defattr(-,root,root,-) +%doc docs/html +%{_includedir}/guichan-0.5 +%dir %{_libdir}/guichan-0.5 +%{_libdir}/guichan-0.5/libguichan.so +%{_libdir}/guichan-0.5/libguichan_allegro.so +%{_libdir}/guichan-0.5/libguichan_glut.so +%{_libdir}/guichan-0.5/libguichan_opengl.so +%{_libdir}/guichan-0.5/libguichan_sdl.so + + +%changelog +* Tue Apr 10 2007 Wart 0.5.0-4 +- Fix Obsoletes: version to avoid matching some guichan 0.5.0 releases + +* Sat Apr 7 2007 Wart 0.5.0-3 +- Remove .soname from shared libs for this initial compat package + to avoid breaking compatibility with existing packages that + may be linked against guichan0.5. + +* Sun Mar 18 2007 Wart 0.5.0-2 +- initial compat package + +* Wed Oct 4 2006 Hugo Cisneiros 0.5.0-1 +- Upstream update +- Add freeglut-devel BR for the new release +- Removed unusued patches for this new version + +* Wed Sep 13 2006 Hugo Cisneiros 0.4.0-3 +- Rebuilt for FC6 + +* Sat Jun 10 2006 Hugo Cisneiros 0.4.0-2 +- Using libGL-devel instead of mesa-libGL-devel in BuildRequires +- Put documentation under -devel instead of a whole -doc +- Touch "autoxxx" files to take out autoxxx commands use in devel +- Add proper location do doc files (/usr/share/doc/xxx/html) + +* Fri Jun 9 2006 Hugo Cisneiros 0.4.0-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..8201255 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c9fcbcb360105247da06afc5c643e664 guichan-0.5.0-src.tar.gz