2023-01-24 15:54:58 +00:00
|
|
|
# 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
|
2023-02-16 05:50:46 +00:00
|
|
|
Release: %autorelease
|
2022-09-14 13:09:08 +00:00
|
|
|
Summary: Community-maintained extensions for xmonad
|
2009-09-24 21:19:49 +00:00
|
|
|
|
2023-01-24 15:54:58 +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
|
2012-11-17 04:39:23 +00:00
|
|
|
Patch0: xmonad-contrib-use_xft-flag.patch
|
2022-09-14 13:09:08 +00:00
|
|
|
Patch2: xmonad-contrib-ewmh-set-NET_WM_STATE.patch
|
2022-06-03 14:29:57 +00:00
|
|
|
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:
|
2012-11-17 04:39:23 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
2023-01-24 15:54:58 +00:00
|
|
|
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}
|
2019-08-05 10:33:10 +00:00
|
|
|
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
|
2019-08-05 10:33:10 +00:00
|
|
|
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
|
2019-08-05 10:33:10 +00:00
|
|
|
BuildRequires: ghc-unix-prof
|
|
|
|
BuildRequires: ghc-utf8-string-prof
|
|
|
|
BuildRequires: ghc-xmonad-prof
|
2023-01-24 15:54:58 +00:00
|
|
|
%endif
|
2022-09-14 13:09:08 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-hspec-devel
|
|
|
|
%endif
|
2012-11-17 04:39:23 +00:00
|
|
|
# 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.
|
2013-06-07 03:49:17 +00:00
|
|
|
|
2016-04-23 17:43:55 +00:00
|
|
|
For an introduction to building, configuring and using xmonad extensions, see
|
|
|
|
"XMonad.Doc". In particular:
|
2013-06-07 03:49:17 +00:00
|
|
|
|
|
|
|
"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.
|
2013-06-07 03:49:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
2014-08-29 06:57:56 +00:00
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2019-08-05 10:33:10 +00:00
|
|
|
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
2018-01-24 13:12:24 +00:00
|
|
|
%if %{defined ghc_version}
|
2013-06-07 03:49:17 +00:00
|
|
|
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}
|
2013-06-07 03:49:17 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
2009-09-24 21:19:49 +00:00
|
|
|
|
|
|
|
|
2019-07-25 04:27:10 +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
|
2019-07-25 04:27:10 +00:00
|
|
|
|
|
|
|
%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)
|
2019-07-25 04:27:10 +00:00
|
|
|
|
|
|
|
%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
|
2012-11-17 04:39:23 +00:00
|
|
|
%patch0 -p1 -b .orig-xft
|
2012-03-14 09:50:51 +00:00
|
|
|
%patch2 -p1 -b .orig-NET_WM_STATE
|
2012-06-11 02:05:05 +00:00
|
|
|
%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
|
|
|
|
|
|
|
|
|
2013-06-07 03:49:17 +00:00
|
|
|
%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
|
|
|
|
2013-06-07 03:49:17 +00:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2019-02-17 14:48:00 +00:00
|
|
|
%doc CHANGES.md README.md
|
2010-09-04 12:49:07 +00:00
|
|
|
|
|
|
|
|
2019-07-25 04:27:10 +00:00
|
|
|
%if %{with haddock}
|
|
|
|
%files doc -f %{name}-doc.files
|
2020-02-08 14:53:03 +00:00
|
|
|
%license LICENSE
|
2019-07-25 04:27:10 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with ghc_prof}
|
|
|
|
%files prof -f %{name}-prof.files
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2009-09-24 21:19:49 +00:00
|
|
|
%changelog
|
2023-02-16 05:50:46 +00:00
|
|
|
%autochangelog
|