Accepting request 623693 from devel:languages:haskell

- Cosmetic: replace tabs with blanks, strip trailing white space,
  and update copyright headers with spec-cleaner.

- Run the test suite by default.
- Build and install the man page and the documentation.

* fix ghc 7.8 builds
- package examples
- part of Haskell Platform 2013.2
- service localonly for Factory submission
- needed by Haskell Platform 2012.4.0.0
- required by Haskell Platform 2012.2.0.0
- generate, install and package man page alex.1
- Add three word to description to make rpmlint happier
- Adjusted version for platform 2011.4
- Deleted additional LICENSE file
- Added QuickCheck BR
- enabled i586 build
- created new package

OBS-URL: https://build.opensuse.org/request/show/623693
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alex?expand=0&rev=18
This commit is contained in:
Dominique Leuenberger 2018-07-24 15:12:13 +00:00 committed by Git OBS Bridge
commit 5aa3d1ff8c
2 changed files with 36 additions and 15 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Jul 18 14:26:08 UTC 2018 - psimons@suse.com
- Cosmetic: replace tabs with blanks, strip trailing white space,
and update copyright headers with spec-cleaner.
-------------------------------------------------------------------
Tue Jun 5 16:50:43 UTC 2018 - psimons@suse.com
- Run the test suite by default.
- Build and install the man page and the documentation.
-------------------------------------------------------------------
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
@ -176,4 +188,3 @@ Sat Nov 19 21:44:36 UTC 2011 - peter.trommler@ohm-hochschule.de
Tue Oct 11 19:50:28 UTC 2011 - peter.trommler@ohm-hochschule.de
- created new package

View File

@ -16,7 +16,7 @@
#
%bcond_with tests
%bcond_without tests
Name: alex
Version: 3.2.4
Release: 0
@ -25,6 +25,7 @@ License: BSD-3-Clause
Group: Development/Libraries/Haskell
URL: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-containers-devel
@ -45,9 +46,16 @@ lex or flex for C/C++.
%build
%ghc_bin_build
cd doc
test -f configure || autoreconf
# FIXME: you should use the %%configure macro
./configure
%install
%ghc_bin_install
mkdir -p %{buildroot}/%{_mandir}/man1
cp doc/alex.1 %{buildroot}/%{_mandir}/man1
rm doc/autom4te.cache/requests # varies across builds, breaking build-compare
%check
# Ensure that the test suite can find the alex binary.
@ -64,6 +72,8 @@ export PATH="%{buildroot}%{_bindir}:$PATH"
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc-debug
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc-nopred
%{_datadir}/%{name}-%{version}
%{_mandir}/man1/*
%{_datadir}/%{name}-%{version}/AlexWrapper-basic
%{_datadir}/%{name}-%{version}/AlexWrapper-basic-bytestring
%{_datadir}/%{name}-%{version}/AlexWrapper-gscan