File ghc-gray-code.spec of Package ghc-gray-code

# spec file for package ghc-gray-code
# Copyright (c) 2020 SUSE LLC
# 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

%global pkg_name gray-code
%bcond_with tests
Name:           ghc-%{pkg_name}
Version:        0.3.1
Release:        0
Summary:        Gray code encoder/decoder
License:        BSD-3-Clause
URL:  {pkg_name}
BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-rpm-macros
ExcludeArch:    %{ix86}
%if %{with tests}
BuildRequires:  ghc-QuickCheck-devel

Gray code is a binary numeral system where two successive numbers differ in
only one bit.

This package allows to convert numbers to one of the possible Gray codes and
back. Two binary representations of a number are supported: '[Bool]' and types
of 'FiniteBits' type class. 'FiniteBits' is the default implementation.

%package devel
Summary:        Haskell %{pkg_name} library development files
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.

%autosetup -n %{pkg_name}-%{version}
rm -v Setup.hs




%post devel

%postun devel

%files -f %{name}.files
%license LICENSE

%files devel -f %{name}-devel.files

openSUSE Build Service is sponsored by