Compare commits
28 Commits
hugs98-200
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
84015e1c81 | ||
|
b2b5449c1e | ||
|
f4c0b6282e | ||
|
817a06e1a9 | ||
|
3f10fa8570 | ||
|
8179109dcd | ||
|
da6df221f3 | ||
|
d105242347 | ||
|
826649cd2b | ||
|
b95343bf85 | ||
|
74bd03763c | ||
|
987ecc4ed4 | ||
|
b014467c45 | ||
|
b0971d98cf | ||
|
d5e318987b | ||
|
5c45590f47 | ||
|
84b1db9dae | ||
|
e9607f0b81 | ||
|
464d97ffef | ||
|
1099d49750 | ||
|
1a9be953cb | ||
|
ffd6afee1b | ||
|
9e9cb144dc | ||
|
503f0242bf | ||
|
d3149a2815 | ||
|
4c207de3ea | ||
|
7bc5d89b7a | ||
|
b275996dda |
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
|||||||
# Makefile for source rpm: hugs98
|
|
||||||
# $Id$
|
|
||||||
NAME := hugs98
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
24
hugs98-gnu.patch
Normal file
24
hugs98-gnu.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff -up hugs98-plus-Sep2006/packages/network/include/HsNet.h.gnu hugs98-plus-Sep2006/packages/network/include/HsNet.h
|
||||||
|
--- hugs98-plus-Sep2006/packages/network/include/HsNet.h.gnu 2006-09-21 00:28:56.000000000 +0200
|
||||||
|
+++ hugs98-plus-Sep2006/packages/network/include/HsNet.h 2015-07-10 13:39:37.824377073 +0200
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
# if defined(_MSC_VER)
|
||||||
|
# define INLINE extern __inline
|
||||||
|
# elif defined(__GNUC__)
|
||||||
|
-# define INLINE extern inline
|
||||||
|
+# define INLINE inline
|
||||||
|
# else
|
||||||
|
# define INLINE inline
|
||||||
|
# endif
|
||||||
|
@@ -132,4 +132,11 @@ my_inet_ntoa(
|
||||||
|
return inet_ntoa(a);
|
||||||
|
}
|
||||||
|
|
||||||
|
+
|
||||||
|
+struct ucred {
|
||||||
|
+ pid_t pid; /* process ID of the sending process */
|
||||||
|
+ uid_t uid; /* user ID of the sending process */
|
||||||
|
+ gid_t gid; /* group ID of the sending process */
|
||||||
|
+};
|
||||||
|
+
|
||||||
|
#endif
|
123
hugs98.spec
123
hugs98.spec
@ -2,17 +2,18 @@
|
|||||||
|
|
||||||
Name: hugs98
|
Name: hugs98
|
||||||
Version: 2006.09
|
Version: 2006.09
|
||||||
Release: 6%{?dist}
|
Release: 30%{?dist}
|
||||||
Summary: Haskell Interpreter
|
Summary: Haskell Interpreter
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.haskell.org/hugs
|
URL: http://www.haskell.org/hugs
|
||||||
Source0: http://cvs.haskell.org/Hugs/downloads/2006-09/%{name}-%{hugs_ver}.tar.gz
|
Source0: http://cvs.haskell.org/Hugs/downloads/2006-09/%{name}-%{hugs_ver}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Patch0: hugs98-gnu.patch
|
||||||
|
|
||||||
BuildRequires: docbook-utils
|
BuildRequires: docbook-utils
|
||||||
BuildRequires: freeglut-devel
|
BuildRequires: freeglut-devel
|
||||||
|
BuildRequires: gcc
|
||||||
BuildRequires: libGL-devel
|
BuildRequires: libGL-devel
|
||||||
BuildRequires: libGLU-devel
|
BuildRequires: libGLU-devel
|
||||||
BuildRequires: libICE-devel
|
BuildRequires: libICE-devel
|
||||||
@ -23,9 +24,11 @@ BuildRequires: libXmu-devel
|
|||||||
BuildRequires: libXt-devel
|
BuildRequires: libXt-devel
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: xorg-x11-proto-devel
|
BuildRequires: xorg-x11-proto-devel
|
||||||
BuildRequires: openal-devel
|
BuildRequires: openal-soft-devel
|
||||||
BuildRequires: freealut-devel
|
BuildRequires: freealut-devel
|
||||||
BuildRequires: prelink
|
%ifnarch aarch64 ppc64le
|
||||||
|
BuildRequires: /usr/bin/execstack
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hugs 98 is a functional programming system based on Haskell 98, the de
|
Hugs 98 is a functional programming system based on Haskell 98, the de
|
||||||
@ -103,43 +106,48 @@ Demo files for Hugs98.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{hugs_ver}
|
%setup -q -n %{name}-%{hugs_ver}
|
||||||
|
# add undefined struct
|
||||||
|
%patch0 -p1 -b .gnu
|
||||||
|
# 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
|
||||||
# this is to avoid network lookup of the DTD
|
# this is to avoid network lookup of the DTD
|
||||||
sed -i 's|\"http://www.oasis-open.org.*\"||' docs/users_guide/users_guide.xml
|
sed -i 's|\"http://www.oasis-open.org.*\"||' docs/users_guide/users_guide.xml
|
||||||
|
# Update config.guess/sub to fix builds on new architectures (aarch64/ppc64le)
|
||||||
|
cp /usr/lib/rpm/config.* .
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%define __global_ldflags ""
|
||||||
%configure --with-pthreads --enable-char-encoding=locale
|
%configure --with-pthreads --enable-char-encoding=locale
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make DESTDIR=%{buildroot} install_all_but_docs
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_all_but_docs
|
make -C docs DESTDIR=%{buildroot} install_man
|
||||||
make -C docs DESTDIR=$RPM_BUILD_ROOT install_man
|
|
||||||
|
|
||||||
execstack -s $RPM_BUILD_ROOT%{_bindir}/{hugs,runhugs,ffihugs}
|
%ifnarch aarch64 ppc64le
|
||||||
|
execstack -s %{buildroot}%{_bindir}/{hugs,runhugs,ffihugs}
|
||||||
|
%endif
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -name '*.so' -exec chmod 0755 '{}' ';'
|
find %{buildroot} -name '*.so' -exec chmod 0755 '{}' ';'
|
||||||
|
|
||||||
mv $RPM_BUILD_ROOT%{_libdir}/hugs/demos installed-demos
|
mv %{buildroot}%{_libdir}/hugs/demos installed-demos
|
||||||
rm installed-demos/Makefile.in
|
rm installed-demos/Makefile.in
|
||||||
|
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/hsc2hs-*/* $RPM_BUILD_ROOT%{_libdir}/hugs/programs/hsc2hs
|
mv %{buildroot}%{_datadir}/hsc2hs-*/* %{buildroot}%{_libdir}/hugs/programs/hsc2hs
|
||||||
|
|
||||||
sed -i "s|^bindir.*|bindir=\"%{_bindir}\"|
|
sed -i "s|^bindir.*|bindir=\"%{_bindir}\"|
|
||||||
s|^libdir.*|libdir=\"%{_libdir}/hugs/programs/hsc2hs|
|
s|^libdir.*|libdir=\"%{_libdir}/hugs/programs/hsc2hs|
|
||||||
s|^datadir.*|datadir=\"%{_libdir}/hugs/programs/hsc2hs\"|" \
|
s|^datadir.*|datadir=\"%{_libdir}/hugs/programs/hsc2hs\"|" \
|
||||||
$RPM_BUILD_ROOT%{_libdir}/hugs/programs/hsc2hs/Paths_hsc2hs.hs
|
%{buildroot}%{_libdir}/hugs/programs/hsc2hs/Paths_hsc2hs.hs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%license License
|
||||||
%doc License
|
|
||||||
%doc Readme
|
%doc Readme
|
||||||
%doc Credits
|
%doc Credits
|
||||||
%doc docs/ffi-notes.txt
|
%doc docs/ffi-notes.txt
|
||||||
@ -158,37 +166,30 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files demos
|
%files demos
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc installed-demos/*
|
%doc installed-demos/*
|
||||||
|
|
||||||
|
|
||||||
%files openal
|
%files openal
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/hugs/packages/OpenAL
|
%{_libdir}/hugs/packages/OpenAL
|
||||||
|
|
||||||
|
|
||||||
%files alut
|
%files alut
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/hugs/packages/ALUT
|
%{_libdir}/hugs/packages/ALUT
|
||||||
|
|
||||||
|
|
||||||
%files x11
|
%files x11
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/hugs/packages/X11
|
%{_libdir}/hugs/packages/X11
|
||||||
|
|
||||||
|
|
||||||
%files opengl
|
%files opengl
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/hugs/packages/OpenGL
|
%{_libdir}/hugs/packages/OpenGL
|
||||||
|
|
||||||
|
|
||||||
%files glut
|
%files glut
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/hugs/packages/GLUT
|
%{_libdir}/hugs/packages/GLUT
|
||||||
|
|
||||||
|
|
||||||
%files hgl
|
%files hgl
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/hugs/packages/HGL
|
%{_libdir}/hugs/packages/HGL
|
||||||
|
|
||||||
|
|
||||||
@ -210,6 +211,78 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Tue Aug 04 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2006.09-23
|
||||||
|
- Use new execstack (#1247795)
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Sun Sep 29 2013 Jens Petersen <petersen@redhat.com> - 2006.09-17
|
||||||
|
- buildroot spec file cleanup
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Fri Nov 19 2010 Jens Petersen <petersen@redhat.com> - 2006.09-9
|
||||||
|
- rebuild
|
||||||
|
|
||||||
|
* 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
|
* Fri Jul 3 2009 Gerard Milmeister <gemi@bluewin.ch> - 2006.09-6
|
||||||
- added alternatives setup for runhaskell and friends
|
- added alternatives setup for runhaskell and friends
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user