hugs98/hugs98.spec

342 lines
10 KiB
RPMSpec
Raw Normal View History

2006-10-30 10:18:33 +00:00
%define hugs_ver plus-Sep2006
Name: hugs98
2006-10-30 10:18:33 +00:00
Version: 2006.09
Release: 39%{?dist}
Summary: Haskell Interpreter
License: BSD
URL: http://www.haskell.org/hugs
2006-10-30 10:18:33 +00:00
Source0: http://cvs.haskell.org/Hugs/downloads/2006-09/%{name}-%{hugs_ver}.tar.gz
2015-07-10 17:35:21 +00:00
Patch0: hugs98-gnu.patch
Patch1: hugs98-config.patch
BuildRequires: docbook-utils
BuildRequires: freeglut-devel
2018-02-19 11:18:58 +00:00
BuildRequires: gcc
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXi-devel
BuildRequires: libXmu-devel
BuildRequires: libXt-devel
BuildRequires: readline-devel
BuildRequires: xorg-x11-proto-devel
2009-08-16 10:48:38 +00:00
BuildRequires: openal-soft-devel
2006-06-20 22:28:21 +00:00
BuildRequires: freealut-devel
%ifnarch aarch64 ppc64le x86_64
2015-08-04 16:35:04 +00:00
BuildRequires: /usr/bin/execstack
2013-08-20 14:38:26 +00:00
%endif
%description
2019-07-13 03:22:05 +00:00
Hugs 98 is a functional programming system based on Haskell 98,
the de facto standard for non-strict functional programming languages.
Hugs 98 provides an almost complete implementation of Haskell 98.
2006-04-24 11:08:51 +00:00
%package openal
Summary: OpenAL package for Hugs98
Requires: %{name} = %{version}-%{release}
%description openal
OpenAL package for Hugs98.
2006-06-20 22:16:20 +00:00
%package alut
Summary: ALUT package for Hugs98
Requires: %{name} = %{version}-%{release}
Requires: %{name}-openal = %{version}-%{release}
%description alut
ALUT package for Hugs98.
%package x11
Summary: X11 package for Hugs98
Requires: %{name} = %{version}-%{release}
%description x11
X11 package for Hugs98.
%package opengl
Summary: OpenGL package for Hugs98
Requires: %{name} = %{version}-%{release}
%description opengl
OpenGL package for Hugs98.
%package glut
Summary: GLUT package for Hugs98
Requires: %{name} = %{version}-%{release}
Requires: %{name}-opengl = %{version}-%{release}
%description glut
GLUT package for Hugs98.
%package hgl
Summary: Haskell Graphics Library for Hugs98
Requires: %{name} = %{version}-%{release}
Requires: %{name}-x11 = %{version}-%{release}
%description hgl
Haskell Graphics Library for Hugs98.
%package demos
Summary: Demo files for Hugs98
Requires: %{name} = %{version}-%{release}
Requires: %{name}-glut = %{version}-%{release}
Requires: %{name}-hgl = %{version}-%{release}
%description demos
Demo files for Hugs98.
%prep
%setup -q -n %{name}-%{hugs_ver}
2015-07-10 17:35:21 +00:00
# add undefined struct
%patch0 -p1 -b .gnu
%patch1 -p1 -b .config
2015-07-10 17:35:21 +00:00
# use inline keyword
sed -i 's|extern inline|inline|' packages/base/include/HsBase.h packages/network/include/HsNet.h packages/unix/include/HsUnix.h hsc2hs/Main.hs
# libalut needs libopenal
sed -i 's|ALUT_LIBS="$ac_cv_search_alutExit"|ALUT_LIBS="$ac_cv_search_alutExit -lopenal"|' packages/ALUT/configure
2006-06-20 23:34:02 +00:00
# this is to avoid network lookup of the DTD
sed -i 's|\"http://www.oasis-open.org.*\"||' docs/users_guide/users_guide.xml
2014-06-13 22:06:23 +00:00
# Update config.guess/sub to fix builds on new architectures (aarch64/ppc64le)
cp /usr/lib/rpm/config.* .
%build
2015-07-10 17:35:21 +00:00
%define __global_ldflags ""
2006-06-23 08:26:04 +00:00
%configure --with-pthreads --enable-char-encoding=locale
2006-06-20 22:16:20 +00:00
make %{?_smp_mflags}
%install
2013-09-29 04:47:42 +00:00
make DESTDIR=%{buildroot} install_all_but_docs
make -C docs DESTDIR=%{buildroot} install_man
%ifnarch aarch64 ppc64le x86_64
2013-09-29 04:47:42 +00:00
execstack -s %{buildroot}%{_bindir}/{hugs,runhugs,ffihugs}
2014-06-13 22:06:23 +00:00
%endif
2006-06-21 14:20:02 +00:00
2013-09-29 04:47:42 +00:00
find %{buildroot} -name '*.so' -exec chmod 0755 '{}' ';'
2019-07-13 03:22:34 +00:00
rm %{buildroot}%{_libdir}/hugs/demos/Makefile.in
2013-09-29 04:47:42 +00:00
mv %{buildroot}%{_datadir}/hsc2hs-*/* %{buildroot}%{_libdir}/hugs/programs/hsc2hs
2006-06-20 22:16:20 +00:00
sed -i "s|^bindir.*|bindir=\"%{_bindir}\"|
2006-06-20 22:28:21 +00:00
s|^libdir.*|libdir=\"%{_libdir}/hugs/programs/hsc2hs|
s|^datadir.*|datadir=\"%{_libdir}/hugs/programs/hsc2hs\"|" \
2013-09-29 04:47:42 +00:00
%{buildroot}%{_libdir}/hugs/programs/hsc2hs/Paths_hsc2hs.hs
2006-06-20 22:16:20 +00:00
%files
2016-09-28 09:32:27 +00:00
%license License
%doc Readme
%doc Credits
%doc docs/ffi-notes.txt
%doc docs/server.html
%doc docs/libraries-notes.txt
%doc docs/users_guide/users_guide
2019-07-13 03:23:08 +00:00
%{_bindir}/cpphs-hugs
%{_bindir}/ffihugs
%{_bindir}/hugs
%{_bindir}/hsc2hs-hugs
%{_bindir}/runhugs
%{_libdir}/hugs
2006-04-24 11:08:51 +00:00
%exclude %{_libdir}/hugs/packages/OpenAL
2006-06-20 22:16:20 +00:00
%exclude %{_libdir}/hugs/packages/ALUT
%exclude %{_libdir}/hugs/packages/X11
%exclude %{_libdir}/hugs/packages/OpenGL
%exclude %{_libdir}/hugs/packages/GLUT
%exclude %{_libdir}/hugs/packages/HGL
2019-07-13 03:23:08 +00:00
%{_mandir}/man1/hugs.1*
%files demos
2019-07-13 03:22:34 +00:00
%{_libdir}/hugs/demos
2006-04-24 11:08:51 +00:00
%files openal
%{_libdir}/hugs/packages/OpenAL
2006-06-20 22:16:20 +00:00
%files alut
%{_libdir}/hugs/packages/ALUT
%files x11
%{_libdir}/hugs/packages/X11
%files opengl
%{_libdir}/hugs/packages/OpenGL
%files glut
%{_libdir}/hugs/packages/GLUT
%files hgl
%{_libdir}/hugs/packages/HGL
%changelog
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Jeff Law <law@redhat.com> - 2006.09-38
- Fix configure test compromised by LTO.
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-07-13 03:21:26 +00:00
* Sat Jul 13 2019 Jens Petersen <petersen@redhat.com> - 2006.09-35
- drop alternatives
2019-07-13 03:23:08 +00:00
- more explicit filelists
2019-02-17 08:30:50 +00:00
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2006.09-34
- Rebuild for readline 8.0
* Sun Feb 3 2019 Jens Petersen <petersen@redhat.com> - 2006.09-33
- drop use of execstack on x86_64
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-02-19 11:18:58 +00:00
* Mon Feb 19 2018 Jens Petersen <petersen@redhat.com> - 2006.09-30
- BR gcc
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 2006.09-25
- Rebuild for readline 7.x
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2006.09-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-08-04 16:35:04 +00:00
* Tue Aug 04 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2006.09-23
- Use new execstack (#1247795)
2015-07-10 17:35:21 +00:00
* Fri Jul 10 2015 Gérard Milmeister <gemi@bluewin.ch> - 2006.09-22
- Build fixes
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-06-13 22:06:23 +00:00
* Fri Jun 13 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2006.09-19
- Fix build for aarch/ppc64le
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2013-09-29 04:47:42 +00:00
* Sun Sep 29 2013 Jens Petersen <petersen@redhat.com> - 2006.09-17
- buildroot spec file cleanup
2013-08-20 14:38:26 +00:00
* Wed Aug 21 2013 Jens Petersen <petersen@redhat.com> - 2006.09-16
- BR autoconf for aarch64
* Tue Aug 20 2013 Jens Petersen <petersen@redhat.com> - 2006.09-15
- regenerate autoconf files on aarch64 (#925561)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-11-19 08:04:51 +00:00
* Fri Nov 19 2010 Jens Petersen <petersen@redhat.com> - 2006.09-9
- rebuild
2009-08-16 10:48:38 +00:00
* Sun Aug 16 2009 Gerard Milmeister <gemi@bluewin.ch> - 2006.09-8
- rebuild against openal-soft
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri Jul 3 2009 Gerard Milmeister <gemi@bluewin.ch> - 2006.09-6
- added alternatives setup for runhaskell and friends
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2006.09-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-02-19 03:38:40 +00:00
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2006.09-4
- Autorebuild for GCC 4.3
2007-02-11 16:57:50 +00:00
* Sun Feb 11 2007 Gerard Milmeister <gemi@bluewin.ch> - 2006.09-2
- rebuild to use ncurses
2006-10-30 10:18:33 +00:00
* Mon Oct 30 2006 Gerard Milmeister <gemi@bluewin.ch> - 2006.09-1
- new version Sep2006
2006-08-28 09:13:58 +00:00
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 2006.05-6
- Rebuild for FE6
2006-06-23 08:26:04 +00:00
* Fri Jun 23 2006 Gerard Milmeister <gemi@bluewin.ch> - 2006.05-5
- switch char encoding from utf-8 to locale
2006-06-21 14:20:02 +00:00
* Wed Jun 21 2006 Gerard Milmeister <gemi@bluewin.ch> - 2006.05-4
- added execstack for the hugs binary
2006-06-20 22:16:20 +00:00
* Tue Jun 20 2006 Gerard Milmeister <gemi@bluewin.ch> - 2006.05-1
- new version 2006.05 with libraries
2006-04-24 11:08:51 +00:00
* Mon Apr 24 2006 Gerard Milmeister <gemi@bluewin.ch> - 2005.03-3
- added patch provided by Jens Petersen to build OpenAL package
* Tue Apr 18 2006 Gerard Milmeister <gemi@bluewin.ch> - 2005.03-1
- changed version numbering scheme
- split off demos package
- split of some packages
- do not build openal support (compile errors)
- enable pthreads
* Wed Mar 30 2005 Gerard Milmeister <gemi@bluewin.ch> - 200503-1
- New Version Mar2005
* Sun Feb 13 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:200311-1
- Changed version scheme
* Mon Jan 5 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:0.0-0.fdr.1.200311
- New Version Nov2003
* Mon Oct 20 2003 Gerard Milmeister <gemi@bluewin.ch> - Nov2002-0.fdr.1
- First Fedora release