Compare commits

...

28 Commits

Author SHA1 Message Date
Jens Petersen
84015e1c81 BR gcc 2018-02-19 20:18:58 +09:00
Igor Gnatenko
b2b5449c1e Remove BuildRoot definition
None of currently supported distributions need that.
It was needed last for EL5 which is EOL now

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-13 23:30:51 +01:00
Fedora Release Engineering
f4c0b6282e - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 16:34:09 +00:00
Fedora Release Engineering
817a06e1a9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-02 23:34:21 +00:00
Fedora Release Engineering
3f10fa8570 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 12:55:36 +00:00
Fedora Release Engineering
8179109dcd - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 12:47:05 +00:00
Igor Gnatenko
da6df221f3 Rebuild for readline 7.x
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-12 17:30:30 +01:00
Jens Petersen
d105242347 use %license 2016-09-28 18:32:27 +09:00
Dennis Gilmore
826649cd2b - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 23:58:19 +00:00
Zbigniew Jędrzejewski-Szmek
b95343bf85 Use new execstack 2015-08-04 12:35:04 -04:00
Gérard Milmeister
74bd03763c Build fixes 2015-07-10 19:35:21 +02:00
Dennis Gilmore
987ecc4ed4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 10:38:30 +00:00
Peter Robinson
b014467c45 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-16 20:49:44 +00:00
Peter Robinson
b0971d98cf Fix build for aarch/ppc64le 2014-06-13 23:06:23 +01:00
Dennis Gilmore
d5e318987b - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 15:36:00 -05:00
Jens Petersen
5c45590f47 buildroot spec file cleanup 2013-09-29 13:47:42 +09:00
Jens Petersen
84b1db9dae also BR autoconf on aarch64 2013-08-21 00:04:03 +09:00
Jens Petersen
e9607f0b81 regenerate autoconf files on aarch64 (#925561) 2013-08-20 23:33:25 +09:00
Dennis Gilmore
464d97ffef - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 13:04:09 -05:00
Dennis Gilmore
1099d49750 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 19:18:13 -06:00
Dennis Gilmore
1a9be953cb - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-19 08:20:44 -05:00
Dennis Gilmore
ffd6afee1b - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 23:03:17 -06:00
Dennis Gilmore
9e9cb144dc - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-09 03:38:03 -06:00
Jens Petersen
503f0242bf rebuild 2010-11-19 18:04:51 +10:00
Fedora Release Engineering
d3149a2815 dist-git conversion 2010-07-28 17:52:23 +00:00
Bill Nottingham
4c207de3ea Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:54:54 +00:00
Gérard Milmeister
7bc5d89b7a rebuild against openal-soft 2009-08-16 10:48:38 +00:00
Jesse Keating
b275996dda - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-25 02:18:45 +00:00
4 changed files with 122 additions and 46 deletions

View File

View File

@ -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
View 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

View File

@ -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