diff --git a/alex.changes b/alex.changes index 4366fa5..bdb29a1 100644 --- a/alex.changes +++ b/alex.changes @@ -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 diff --git a/alex.spec b/alex.spec index be80047..e952a07 100644 --- a/alex.spec +++ b/alex.spec @@ -2,7 +2,6 @@ # spec file for package alex # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -18,25 +17,27 @@ %bcond_without tests - Name: alex Version: 3.1.7 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 -Group: Development/Languages/Other - -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Url: http://hackage.haskell.org/package/%{name} -Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz - -BuildRequires: autoconf +Group: System/Libraries +Url: https://hackage.haskell.org/package/%{name} +Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel +BuildRequires: autoconf +# Begin cabal-rpm deps: BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-array-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %{with tests} +BuildRequires: ghc-process-devel +%endif +# End cabal-rpm deps %description Alex is a tool for generating lexical analysers in Haskell. It takes a @@ -47,22 +48,31 @@ lex or flex for C/C++. %prep %setup -q + %build %ghc_bin_build + cd doc test -f configure || autoreconf ./configure %install %ghc_bin_install + mkdir -p %{buildroot}/%{_mandir}/man1 cp doc/alex.1 %{buildroot}/%{_mandir}/man1 +%check +%if %{with tests} +%{cabal} test +%endif + + %files %defattr(-,root,root,-) -%doc LICENSE README TODO CHANGELOG.md -%doc examples -%attr(755,root,root) %{_bindir}/%{name} +%doc LICENSE +%doc CHANGELOG.md README TODO doc examples +%{_bindir}/%{name} %{_datadir}/%{name}-%{version} %{_mandir}/man1/*