2017-02-22 20:11:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package ghc-skylighting
|
|
|
|
#
|
2018-01-30 10:36:01 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-02-22 20:11:24 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global pkg_name skylighting
|
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
2018-04-02 17:04:27 +02:00
|
|
|
Version: 0.6
|
2017-02-22 20:11:24 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Syntax highlighting library
|
2018-04-02 17:04:27 +02:00
|
|
|
License: GPL-2.0-or-later
|
2017-08-17 16:07:59 +02:00
|
|
|
Group: Development/Libraries/Haskell
|
2017-08-15 16:05:22 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2017-02-22 20:11:24 +01:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-aeson-devel
|
2018-04-02 17:04:27 +02:00
|
|
|
BuildRequires: ghc-ansi-terminal-devel
|
2017-12-21 21:02:48 +01:00
|
|
|
BuildRequires: ghc-attoparsec-devel
|
|
|
|
BuildRequires: ghc-base64-bytestring-devel
|
|
|
|
BuildRequires: ghc-binary-devel
|
2017-02-22 20:11:24 +01:00
|
|
|
BuildRequires: ghc-blaze-html-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: ghc-case-insensitive-devel
|
2018-04-02 17:04:27 +02:00
|
|
|
BuildRequires: ghc-colour-devel
|
2017-02-22 20:11:24 +01:00
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-filepath-devel
|
|
|
|
BuildRequires: ghc-hxt-devel
|
|
|
|
BuildRequires: ghc-mtl-devel
|
|
|
|
BuildRequires: ghc-regex-pcre-builtin-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
BuildRequires: ghc-safe-devel
|
|
|
|
BuildRequires: ghc-text-devel
|
|
|
|
BuildRequires: ghc-utf8-string-devel
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-Diff-devel
|
|
|
|
BuildRequires: ghc-HUnit-devel
|
2018-01-30 10:36:01 +01:00
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
2017-02-22 20:11:24 +01:00
|
|
|
BuildRequires: ghc-pretty-show-devel
|
|
|
|
BuildRequires: ghc-random-devel
|
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-golden-devel
|
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
2018-01-30 10:36:01 +01:00
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
2017-02-22 20:11:24 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Skylighting is a syntax highlighting library with support for over one hundred
|
|
|
|
languages. It derives its tokenizers from XML syntax definitions used by KDE's
|
|
|
|
KSyntaxHighlighting framework, so any syntax supported by that framework can be
|
|
|
|
added. An optional command-line program is provided. Skylighting is intended to
|
|
|
|
be the successor to highlighting-kate.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
2017-08-11 11:05:59 +02:00
|
|
|
Group: Development/Libraries/Haskell
|
2017-02-22 20:11:24 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
%cabal_test
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2018-04-26 09:46:37 +02:00
|
|
|
%license LICENSE
|
2017-02-22 20:11:24 +01:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%doc README.md changelog.md
|
|
|
|
|
|
|
|
%changelog
|