Name: ski
Version: 1.3.2
Release: 18%{?dist}
Summary: IA-64 user and system mode simulator
Group: Applications/Emulators
License: GPLv2+
URL: http://ski.sourceforge.net
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch1: ski-1.3.2-asm-page.patch
Patch2: ski-1.3.2-header.patch
Patch3: ski-1.3.2-nohayes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libglade2-devel ncurses-devel elfutils-libelf-devel libgnomeui-devel lesstif-devel
BuildRequires: automake autoconf libtool gperf bison flex
Requires: %{name}-libs = %{version}-%{release}
%description
The Ski IA-64 user and system simulator originally developed by HP.
%package libs
Summary: Shared library for the ski simulator
Group: System Environment/Libraries
%description libs
Shared library for the ski simulator
%package devel
Summary: Development files for the ski simulator
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
%description devel
The ski-devel package includes the static libraries and header files
for the support library for the Ski simulator.
%prep
%setup -q
%patch1 -p1 -b .asmpage
%patch2 -p1 -b .header
%patch3 -p1 -b .nohayes
%build
./autogen.sh
%configure --with-x11 --with-gtk --enable-shared --disable-static
# Don't use rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
# fix linking
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README TODO ChangeLog
%doc doc/ski-notes.html doc/manual/*.pdf
%config(noreplace) %{_sysconfdir}/X11/app-defaults/*
%{_bindir}/ski
%{_bindir}/bski*
%{_bindir}/gski
%{_bindir}/xski
%{_bindir}/ski-fake-xterm
%{_mandir}/man1/*
%{_datadir}/%{name}
%files libs
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libski-*.so.*
%files devel
%defattr(-,root,root,-)
%{_bindir}/ski-config
%{_includedir}/ski-1.3
%{_libdir}/libski.so
%changelog
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.3.2-11
- Rebuild for new libpng
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sat Jan 1 2011 Dan HorĂ¡k <dan[at]danny.cz> 1.3.2-9
- updated the nohayes patch to completely remove TIOC[GS]HAYESESP
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Nov 1 2008 Dan Horak <dan[at]danny.cz> 1.3.2-6
- rename the ppc patch to nohayes and add other arches without TIOC[GS]HAYESESP
* Wed Apr 30 2008 Dan Horak <dan[at]danny.cz> 1.3.2-5
- fix attributes for files in subpackages
* Thu Apr 10 2008 Dan Horak <dan[at]danny.cz> 1.3.2-4
- fix build on ppc
* Wed Apr 9 2008 Dan Horak <dan[at]danny.cz> 1.3.2-3
- fix linking issues
- use -libs for the subpackage
* Sat Apr 5 2008 Dan Horak <dan[at]danny.cz> 1.3.2-2
- fix compile in rawhide (kernel >= 2.6.25-rc5)
* Tue Feb 19 2008 Dan Horak <dan[at]danny.cz> 1.3.2-1
- update to version 1.3.2
- remove patches integrated into upstream codebase
- create a lib subpackage to be multi-lib aware
* Sat Nov 10 2007 Dan Horak <dan[at]danny.cz> 1.2.6-2
- merge libski and libskiui
* Sat Oct 6 2007 Dan Horak <dan[at]danny.cz> 1.2.6-1
- initial Fedora version