971f8ca60d
[skip changelog]
162 lines
4.0 KiB
RPMSpec
162 lines
4.0 KiB
RPMSpec
# generated by cabal-rpm-2.1.0 --stream hackage
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
|
|
|
%global pkg_name xmonad-contrib
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
%bcond_without tests
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 0.17.1
|
|
Release: %autorelease
|
|
Summary: Community-maintained extensions for xmonad
|
|
|
|
License: BSD-3-Clause
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
# Begin cabal-rpm sources:
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
# End cabal-rpm sources
|
|
Patch0: xmonad-contrib-use_xft-flag.patch
|
|
Patch2: xmonad-contrib-ewmh-set-NET_WM_STATE.patch
|
|
Patch4: xmonad-contrib-0.17.0-PositionStore-dont-rescale-with-screen.patch
|
|
|
|
# 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
|
|
BuildRequires: ghc-deepseq-prof
|
|
BuildRequires: ghc-directory-prof
|
|
BuildRequires: ghc-filepath-prof
|
|
BuildRequires: ghc-mtl-prof
|
|
BuildRequires: ghc-process-prof
|
|
BuildRequires: ghc-random-prof
|
|
BuildRequires: ghc-time-prof
|
|
BuildRequires: ghc-unix-prof
|
|
BuildRequires: ghc-utf8-string-prof
|
|
BuildRequires: ghc-xmonad-prof
|
|
%endif
|
|
%if %{with tests}
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
BuildRequires: ghc-hspec-devel
|
|
%endif
|
|
# End cabal-rpm deps
|
|
|
|
%description
|
|
Community-maintained tiling algorithms and extension modules for xmonad, an X11
|
|
tiling window manager.
|
|
|
|
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
|
|
"XMonad.Doc.Developing", introduction to xmonad internals and writing your own
|
|
extensions.
|
|
|
|
|
|
%package devel
|
|
Summary: Haskell %{pkg_name} library development files
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
|
%if %{defined ghc_version}
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
%endif
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
%if %{with haddock}
|
|
%package doc
|
|
Summary: Haskell %{pkg_name} library documentation
|
|
BuildArch: noarch
|
|
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}
|
|
Supplements: (%{name}-devel and ghc-prof)
|
|
|
|
%description prof
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
%endif
|
|
|
|
|
|
%prep
|
|
# Begin cabal-rpm setup:
|
|
%setup -q -n %{pkgver}
|
|
# End cabal-rpm setup
|
|
%patch0 -p1 -b .orig-xft
|
|
%patch2 -p1 -b .orig-NET_WM_STATE
|
|
%patch4 -p1 -b .orig-rescale
|
|
|
|
|
|
%build
|
|
# Begin cabal-rpm build:
|
|
%ghc_lib_build
|
|
# End cabal-rpm build
|
|
|
|
|
|
%install
|
|
# Begin cabal-rpm install
|
|
%ghc_lib_install
|
|
# End cabal-rpm install
|
|
|
|
|
|
%check
|
|
%if %{with tests}
|
|
%cabal_test
|
|
%endif
|
|
|
|
|
|
%files -f %{name}.files
|
|
# Begin cabal-rpm files:
|
|
%license LICENSE
|
|
# End cabal-rpm files
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
%doc CHANGES.md README.md
|
|
|
|
|
|
%if %{with haddock}
|
|
%files doc -f %{name}-doc.files
|
|
%license LICENSE
|
|
%endif
|
|
|
|
|
|
%if %{with ghc_prof}
|
|
%files prof -f %{name}-prof.files
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|