134b1bc
%define realname ClanLib
134b1bc
134b1bc
Summary:        Cross platform C++ game library
134b1bc
Name:           ClanLib1
134b1bc
Version:        1.0.0
Lubomir Rintel d5dd2b3
Release:        16%{?dist}
134b1bc
Group:          System Environment/Libraries
134b1bc
License:        zlib
134b1bc
URL:            http://www.clanlib.org/
134b1bc
Source0:        http://www.clanlib.org/download/releases-1.0/%{realname}-%{version}.tgz
134b1bc
# Prebuild docs to avoid multilib conflicts. To regenerate, build and install
134b1bc
# ClanLib without passing --disable-docs (requires perl, libxslt) and then:
134b1bc
# mv $RPM_BUILD_ROOT%{_datadir}/doc/clanlib html
134b1bc
# tar cvfz ClanLib-%{version}-generated-docs.tar.gz html
134b1bc
Source1:        ClanLib-%{version}-generated-docs.tar.gz
134b1bc
Patch0:         ClanLib-0.8.0-gcc43.patch
134b1bc
Patch1:         ClanLib-1.0.0-fullscreen-viewport.patch
d961815
Patch2:         ClanLib-1.0.0-libpng15.patch
134b1bc
BuildRequires:  libX11-devel libXi-devel libXmu-devel libGLU-devel libICE-devel
134b1bc
BuildRequires:  libXext-devel libXxf86vm-devel libXt-devel xorg-x11-proto-devel
134b1bc
BuildRequires:  libvorbis-devel mikmod-devel SDL-devel SDL_gfx-devel
134b1bc
BuildRequires:  libpng-devel libjpeg-devel
134b1bc
# Obsoletes for upgrade path, no Provides as "ClanLib" will be provided
134b1bc
# By the new ClanLib-2.x package
134b1bc
Obsoletes:      ClanLib < %{version}-%{release}
134b1bc
134b1bc
%description
134b1bc
ClanLib is a cross platform C++ game library.
134b1bc
134b1bc
134b1bc
%package devel
134b1bc
Summary:        Development Libraries and Headers for ClanLib
134b1bc
Group:          Development/Libraries
d961815
Requires:       %{name}%{?_isa} = %{version}-%{release}
134b1bc
Requires:       libGLU-devel xorg-x11-proto-devel pkgconfig
134b1bc
# Obsoletes for upgrade path, no Provides as "ClanLib-devel" will be provided
134b1bc
# By the new ClanLib-devel-2.x package
134b1bc
Obsoletes:      ClanLib-devel < %{version}-%{release}
134b1bc
134b1bc
%description devel
134b1bc
ClanLib development headers and libraries
134b1bc
134b1bc
134b1bc
%prep
134b1bc
%setup -q -a 1 -n %{realname}-%{version}
134b1bc
%patch0 -p1
134b1bc
%patch1 -p1
d961815
%patch2 -p1
134b1bc
iconv -f iso8859-1 -t utf8 NEWS -o NEWS.utf8
134b1bc
touch -r NEWS.utf8 NEWS
134b1bc
mv NEWS.utf8 NEWS
134b1bc
iconv -f iso8859-1 -t utf8 CREDITS -o CREDITS.utf8
134b1bc
touch -r CREDITS.utf8 CREDITS
134b1bc
mv CREDITS.utf8 CREDITS
134b1bc
# fixup pc files
134b1bc
sed -i 's|libdir=${exec_prefix}/lib|libdir=@libdir@|' pkgconfig/clan*.pc.in
134b1bc
sed -i 's|Libs:   -L${libdir}|Libs:   -L${libdir}/%{realname}-1.0|' \
134b1bc
  pkgconfig/clan*.pc.in
134b1bc
134b1bc
134b1bc
%build
134b1bc
%configure --disable-dependency-tracking --disable-static --enable-dyn \
134b1bc
  --disable-docs
134b1bc
make %{?_smp_mflags}
134b1bc
134b1bc
134b1bc
%install
134b1bc
make install DESTDIR=$RPM_BUILD_ROOT
134b1bc
rm $RPM_BUILD_ROOT%{_libdir}/*.la
134b1bc
# put .so links in a subdir of %{libdir} so they don't conflict with
134b1bc
# ClanLib06-devel .so links. The pkg-config files are patches to transparently
134b1bc
# handle this for applications using us.
134b1bc
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{realname}-1.0
134b1bc
mv $RPM_BUILD_ROOT%{_libdir}/*.so $RPM_BUILD_ROOT%{_libdir}/%{realname}-1.0
134b1bc
for i in $RPM_BUILD_ROOT%{_libdir}/%{realname}-1.0/*; do
134b1bc
  ln -sf ../`readlink $i` $i
134b1bc
done
134b1bc
# we're API compatible with 0.8, add 0.8 pkgconfig symlinks, so 0.8
134b1bc
# expecting sources can be build against us
134b1bc
for i in $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc; do
134b1bc
  ln -s `basename $i` `echo $i|sed 's/1\.0\.pc/0\.8\.pc/'`
134b1bc
done
134b1bc
134b1bc
134b1bc
%post -p /sbin/ldconfig
134b1bc
%postun -p /sbin/ldconfig
134b1bc
e54c96c
134b1bc
%files
134b1bc
%doc COPYING CREDITS NEWS TODO-RSN
134b1bc
%{_libdir}/*.so.*
134b1bc
134b1bc
%files devel
134b1bc
%doc README* html
134b1bc
%{_libdir}/%{realname}-1.0
134b1bc
%{_includedir}/%{realname}-1.0
134b1bc
%{_libdir}/pkgconfig/clan*.pc
134b1bc
134b1bc
134b1bc
%changelog
Lubomir Rintel 08f2edf
* Tue Sep 10 2013 Lubomir Rintel <lkundrak@v3.sk> - 1.0.0-16
Lubomir Rintel d5dd2b3
- Rebuild for new SDL_gfx
Lubomir Rintel d5dd2b3
256e9a1
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-15
256e9a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
256e9a1
0522705
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-14
0522705
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0522705
5e127ba
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.0.0-13
5e127ba
- rebuild due to "jpeg8-ABI" feature drop
5e127ba
4155667
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 1.0.0-12
4155667
- rebuild against new libjpeg
4155667
6e34474
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-11
6e34474
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6e34474
bcb628a
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-10
bcb628a
- Rebuilt for c++ ABI breakage
bcb628a
b3c33fe
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-9
b3c33fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b3c33fe
d961815
* Sun Dec 11 2011 Hans de Goede <hdegoede@redhat.com> - 1.0.0-8
d961815
- Fix building with new libpng
d961815
d177d94
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.0.0-7
d177d94
- Rebuild for new libpng
d177d94
e54c96c
* Fri Jul 15 2011 Hans de Goede <hdegoede@redhat.com> - 1.0.0-6
e54c96c
- Rebuild for new SDL_gfx
e54c96c
5832cac
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-5
5832cac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5832cac
134b1bc
* Tue Nov  3 2009 Hans de Goede <hdegoede@redhat.com> 1.0.0-4
134b1bc
- Rename package from ClanLib to ClanLib1, so that the ClanLib package name
134b1bc
  can be used for the new 2.x series, without dropping ClanLib-1.x from
134b1bc
  the distro as most ClanLib packages still need 1.x to build / run
134b1bc
134b1bc
* Thu Sep 10 2009 Hans de Goede <hdegoede@redhat.com> 1.0.0-3
134b1bc
- Fix (workaround) viewport issues in fullscreen mode (#522116)
134b1bc
134b1bc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
134b1bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
134b1bc
134b1bc
* Sun May 17 2009 Hans de Goede <hdegoede@redhat.com> 1.0.0-1
134b1bc
- New upstream release 1.0.0, note: API compatible but changes soname
134b1bc
134b1bc
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
134b1bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
134b1bc
134b1bc
* Sat Feb 21 2009 Hans de Goede <hdegoede@redhat.com> 0.8.1-2
134b1bc
- Fix build with gcc 4.4  
134b1bc
134b1bc
* Wed Mar 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.1-1
134b1bc
- New upstream release
134b1bc
- Drop all patches (all upstreamed)
134b1bc
- Add patch to keep libclanDisplay-0.8 abi compatible with 0.8.0
134b1bc
- Warning, this release changes the ABI of the GUIStyleSilver input_box widget
134b1bc
- Warning, some small API changes, CL_KEY_ADD -> CL_KEY_NUMPAD_ADD, etc.
134b1bc
134b1bc
* Sat Mar  8 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-11
134b1bc
- Add a patch from Dave Jones fixing various wrong invocations of memset
134b1bc
134b1bc
* Sun Mar  2 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-10
134b1bc
- Add support for audio output through alsa (original ClanLib only supports
134b1bc
  OSS??), this also adds support for using pulseaudio through alsa
134b1bc
134b1bc
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.8.0-9
134b1bc
- Autorebuild for GCC 4.3
134b1bc
134b1bc
* Fri Jan  4 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-8
134b1bc
- Fix building with gcc 4.3
134b1bc
134b1bc
* Sun Oct 21 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-7
134b1bc
- Fix multilib conflicts in generated Reference documentation (bz 340851)
134b1bc
134b1bc
* Fri Aug  3 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-6
134b1bc
- Update License tag for new Licensing Guidelines compliance
134b1bc
134b1bc
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 0.8.0-5
134b1bc
- Rebuild against SDL_gfx 2.0.16.
134b1bc
134b1bc
* Sat Mar 31 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-4
134b1bc
- Fix some stupidness in the OpenGL surface code, which triggers an obscure
134b1bc
  bug in mesa-6.5.2, as a bonus the OpenGL surface's should be somewhat faster
134b1bc
  now. Details: https://bugs.freedesktop.org/show_bug.cgi?id=10491
134b1bc
134b1bc
* Sun Oct  8 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-3
134b1bc
- Rewrote ClanLib fullscreen handling to fix an issue where a part of the
134b1bc
  window decoration show in fullscreen mode on certain videocards
134b1bc
134b1bc
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-2
134b1bc
- FE6 Rebuild
134b1bc
134b1bc
* Sun Aug 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-1
134b1bc
- 0.8.0 final, warning ABI changed without soname change!
134b1bc
- Drop both our patches (both upstreamed)
134b1bc
134b1bc
* Wed Jul 26 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-0.6.RC2
134b1bc
- Add missing Requires: pkgconfig to -devel package
134b1bc
134b1bc
* Tue Jul 25 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-0.5.RC2
134b1bc
- Add libXt-devel BR to fix X detection on FC-5, sorry about all these
134b1bc
  missing BRs and Requires.
134b1bc
134b1bc
* Tue Jul 25 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-0.4.RC2
134b1bc
- Add libGLU-devel to the BuildRequires to fix build on FC-5
134b1bc
- Add missing Requires: libGLU-devel xorg-x11-proto-devel to -devel package
134b1bc
134b1bc
* Tue Jul 25 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-0.3.RC2
134b1bc
- Add libXi-devel to the BuildRequires so that clanGL gets build
134b1bc
134b1bc
* Fri Jul 21 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-0.2.RC2
134b1bc
- Change License: to "zlib License" as 0.8 is under the zlib License not the
134b1bc
  LGPL (0.6 is LGPL).
134b1bc
- Add a patch from pingus contrib dir which adds support for the grave key
134b1bc
- Add libXmu-devel to the BuildRequires
134b1bc
134b1bc
* Wed Jul 19 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.0-0.1.RC2
134b1bc
- Initial FE version based on the newrpms SRPM by Che.