ghc-xmonad-contrib/ghc-xmonad-contrib.spec

162 lines
4.0 KiB
RPMSpec
Raw Permalink Normal View History

# generated by cabal-rpm-2.1.0 --stream hackage
2020-06-04 11:29:13 +00:00
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
2011-07-09 05:54:32 +00:00
2009-09-24 21:19:49 +00:00
%global pkg_name xmonad-contrib
2017-02-23 05:11:45 +00:00
%global pkgver %{pkg_name}-%{version}
2009-09-24 21:19:49 +00:00
2022-09-14 13:09:08 +00:00
%bcond_without tests
2009-09-24 21:19:49 +00:00
Name: ghc-%{pkg_name}
2022-09-14 13:09:08 +00:00
Version: 0.17.1
Release: %autorelease
2022-09-14 13:09:08 +00:00
Summary: Community-maintained extensions for xmonad
2009-09-24 21:19:49 +00:00
License: BSD-3-Clause
2015-07-19 20:02:22 +00:00
Url: https://hackage.haskell.org/package/%{pkg_name}
2019-02-17 14:48:00 +00:00
# Begin cabal-rpm sources:
2017-02-23 05:11:45 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2019-02-17 14:48:00 +00:00
# End cabal-rpm sources
Patch0: xmonad-contrib-use_xft-flag.patch
2022-09-14 13:09:08 +00:00
Patch2: xmonad-contrib-ewmh-set-NET_WM_STATE.patch
Patch4: xmonad-contrib-0.17.0-PositionStore-dont-rescale-with-screen.patch
2011-07-09 05:54:32 +00:00
2019-02-17 14:48:00 +00:00
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-X11-devel
BuildRequires: ghc-X11-xft-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-xmonad-devel
%if %{with ghc_prof}
BuildRequires: ghc-X11-prof
BuildRequires: ghc-X11-xft-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-prof
2022-09-14 13:09:08 +00:00
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-process-prof
BuildRequires: ghc-random-prof
2022-05-30 13:51:20 +00:00
BuildRequires: ghc-time-prof
BuildRequires: ghc-unix-prof
BuildRequires: ghc-utf8-string-prof
BuildRequires: ghc-xmonad-prof
%endif
2022-09-14 13:09:08 +00:00
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-hspec-devel
%endif
# End cabal-rpm deps
2009-09-24 21:19:49 +00:00
%description
2022-05-30 13:51:20 +00:00
Community-maintained tiling algorithms and extension modules for xmonad, an X11
tiling window manager.
2016-04-23 17:43:55 +00:00
For an introduction to building, configuring and using xmonad extensions, see
"XMonad.Doc". In particular:
"XMonad.Doc.Configuring", a guide to configuring xmonad
"XMonad.Doc.Extending", using the contributed extensions library
2016-04-23 17:43:55 +00:00
"XMonad.Doc.Developing", introduction to xmonad internals and writing your own
extensions.
%package devel
Summary: Haskell %{pkg_name} library development files
2014-08-29 06:57:56 +00:00
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
2018-01-24 13:12:24 +00:00
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
2018-01-24 13:12:24 +00:00
%endif
2014-08-29 06:57:56 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
2009-09-24 21:19:49 +00:00
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
2020-02-08 14:53:03 +00:00
BuildArch: noarch
2021-07-07 16:30:14 +00:00
Requires: ghc-filesystem
%description doc
This package provides the Haskell %{pkg_name} library documentation.
%endif
%if %{with ghc_prof}
%package prof
Summary: Haskell %{pkg_name} profiling library
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
2020-02-08 14:53:03 +00:00
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
2009-09-24 21:19:49 +00:00
%prep
2019-02-17 14:48:00 +00:00
# Begin cabal-rpm setup:
2017-02-23 05:11:45 +00:00
%setup -q -n %{pkgver}
2019-02-17 14:48:00 +00:00
# End cabal-rpm setup
%patch0 -p1 -b .orig-xft
%patch2 -p1 -b .orig-NET_WM_STATE
%patch4 -p1 -b .orig-rescale
2009-09-24 21:19:49 +00:00
%build
2019-02-17 14:48:00 +00:00
# Begin cabal-rpm build:
2010-06-26 09:40:41 +00:00
%ghc_lib_build
2019-02-17 14:48:00 +00:00
# End cabal-rpm build
2009-09-24 21:19:49 +00:00
%install
2019-02-17 14:48:00 +00:00
# Begin cabal-rpm install
2010-06-26 09:40:41 +00:00
%ghc_lib_install
2019-02-17 14:48:00 +00:00
# End cabal-rpm install
2009-09-24 21:19:49 +00:00
2022-09-14 13:09:08 +00:00
%check
%if %{with tests}
%cabal_test
%endif
%files -f %{name}.files
2019-02-17 14:48:00 +00:00
# Begin cabal-rpm files:
2016-04-23 17:43:55 +00:00
%license LICENSE
2019-02-17 14:48:00 +00:00
# End cabal-rpm files
2012-01-06 09:53:12 +00:00
%files devel -f %{name}-devel.files
2019-02-17 14:48:00 +00:00
%doc CHANGES.md README.md
%if %{with haddock}
%files doc -f %{name}-doc.files
2020-02-08 14:53:03 +00:00
%license LICENSE
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
2009-09-24 21:19:49 +00:00
%changelog
%autochangelog