Accepting request 409586 from devel:languages:haskell

1

OBS-URL: https://build.opensuse.org/request/show/409586
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alex?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2016-07-20 07:18:19 +00:00 committed by Git OBS Bridge
commit 69195a59e7
2 changed files with 28 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 10 17:07:27 UTC 2016 - psimons@suse.com
- Update to version 3.1.7 revision 0 with cabal2obs.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 11 07:22:38 UTC 2016 - mimi.vx@gmail.com Mon Jan 11 07:22:38 UTC 2016 - mimi.vx@gmail.com

View File

@ -2,7 +2,6 @@
# spec file for package alex # spec file for package alex
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Peter Trommler peter.trommler@ohm-hochschule.de
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,25 +17,27 @@
%bcond_without tests %bcond_without tests
Name: alex Name: alex
Version: 3.1.7 Version: 3.1.7
Release: 0 Release: 0
Summary: Tool for generating lexical analysers in Haskell Summary: Alex is a tool for generating lexical analysers in Haskell
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Other Group: System/Libraries
Url: https://hackage.haskell.org/package/%{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Url: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: autoconf
# Begin cabal-rpm deps:
BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-array-devel BuildRequires: ghc-array-devel
BuildRequires: ghc-containers-devel BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel BuildRequires: ghc-directory-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with tests}
BuildRequires: ghc-process-devel
%endif
# End cabal-rpm deps
%description %description
Alex is a tool for generating lexical analysers in Haskell. It takes a Alex is a tool for generating lexical analysers in Haskell. It takes a
@ -47,22 +48,31 @@ lex or flex for C/C++.
%prep %prep
%setup -q %setup -q
%build %build
%ghc_bin_build %ghc_bin_build
cd doc cd doc
test -f configure || autoreconf test -f configure || autoreconf
./configure ./configure
%install %install
%ghc_bin_install %ghc_bin_install
mkdir -p %{buildroot}/%{_mandir}/man1 mkdir -p %{buildroot}/%{_mandir}/man1
cp doc/alex.1 %{buildroot}/%{_mandir}/man1 cp doc/alex.1 %{buildroot}/%{_mandir}/man1
%check
%if %{with tests}
%{cabal} test
%endif
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENSE README TODO CHANGELOG.md %doc LICENSE
%doc examples %doc CHANGELOG.md README TODO doc examples
%attr(755,root,root) %{_bindir}/%{name} %{_bindir}/%{name}
%{_datadir}/%{name}-%{version} %{_datadir}/%{name}-%{version}
%{_mandir}/man1/* %{_mandir}/man1/*