LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File alex.spec of Package alex (Project devel:languages:haskell)

# spec file for package alex
# Copyright (c) 2014 SUSE LINUX Products 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           alex
Version:        3.1.3
Release:        0
Summary:        Tool for generating lexical analysers in Haskell
License:        BSD-3-Clause
Group:          Development/Languages/Other

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# BEGIN cabal2spec
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-QuickCheck-devel
BuildRequires:  ghc-rpm-macros
# END cabal2spec

Tool for generating lexical analysers in Haskell similar to lex

%setup -q

cd doc
test -f configure || autoreconf

mkdir -p %{buildroot}/%{_mandir}/man1
cp doc/alex.1 %{buildroot}/%{_mandir}/man1

%doc examples
%attr(755,root,root) %{_bindir}/%{name}