[10169] | 1 | %define pkg_name xmonad |
---|
[11384] | 2 | %define pkg_version 0.13 |
---|
[11632] | 3 | %define pkg_release 2%{?_dist_release} |
---|
[10169] | 4 | |
---|
| 5 | Summary: Lightweight X11 window manager written in Haskell |
---|
| 6 | Summary(ja): Haskellで書かれたタイル型ウィンドウマネージャ |
---|
| 7 | Name: %{pkg_name} |
---|
| 8 | Version: %{pkg_version} |
---|
| 9 | Release: %{pkg_release} |
---|
| 10 | |
---|
| 11 | License: BSD3 |
---|
| 12 | Group: User Interface/Desktops |
---|
| 13 | URL: http://hackage.haskell.org |
---|
| 14 | |
---|
[11632] | 15 | Source0: packages |
---|
| 16 | Source1: xmonad.desktop |
---|
[10169] | 17 | |
---|
[11632] | 18 | # Patch for building ghc-8.4 |
---|
| 19 | Source2: xmonad-0.13_using_ghc-8.4.patch |
---|
| 20 | |
---|
[11384] | 21 | Source11: X11-1.8.tar.gz |
---|
[11632] | 22 | Source12: X11.cabal |
---|
| 23 | Source13: extensible-exceptions-0.1.1.4.tar.gz |
---|
| 24 | Source14: extensible-exceptions.cabal |
---|
| 25 | Source15: setlocale-1.0.0.6.tar.gz |
---|
| 26 | Source16: setlocale.cabal |
---|
| 27 | Source17: utf8-string-1.0.1.1.tar.gz |
---|
| 28 | Source18: utf8-string.cabal |
---|
| 29 | Source19: xmonad-0.13.tar.gz |
---|
| 30 | Source20: xmonad.cabal |
---|
[10169] | 31 | |
---|
| 32 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 33 | |
---|
[10916] | 34 | BuildRequires: ghc haskell-platform |
---|
[10169] | 35 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 36 | |
---|
| 37 | BuildRequires: libghc-data-default-class |
---|
| 38 | BuildRequires: libghc-dlist |
---|
[11632] | 39 | BuildRequires: libghc-old-locale |
---|
[10169] | 40 | BuildRequires: libghc-data-default |
---|
[11632] | 41 | BuildRequires: libghc-semigroups |
---|
[10169] | 42 | |
---|
| 43 | BuildRequires: xorg-x11-devel |
---|
[11384] | 44 | BuildRequires: libXrandr-devel libXinerama-devel |
---|
[10169] | 45 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
| 46 | |
---|
[11384] | 47 | Requires: libXrandr-devel libXinerama-devel |
---|
[11632] | 48 | Requires: haskell-platform-dep |
---|
[10169] | 49 | |
---|
[11632] | 50 | |
---|
[10169] | 51 | Vendor: Project Vine |
---|
| 52 | Distribution: Vine Linux |
---|
[10916] | 53 | Packager: ara_t |
---|
[10169] | 54 | |
---|
| 55 | |
---|
| 56 | %description |
---|
| 57 | Xmonad is a minimalist tiling window manager for X, written in Haskell. |
---|
| 58 | Windows are managed using automatic layout algorithms, which can be dynamically |
---|
| 59 | reconfigured. At any time windows are arranged so as to maximise the use of |
---|
| 60 | screen real estate. All features of the window manager are accessible purely |
---|
| 61 | from the keyboard: a mouse is entirely optional. |
---|
| 62 | Xmonad is configured in Haskell, and custom layout algorithms may be implemented |
---|
| 63 | by the user in config files. |
---|
| 64 | A principle of Xmonad is predictability: the user should know in advance |
---|
| 65 | precisely the window arrangement that will result from any action. |
---|
| 66 | |
---|
| 67 | Please sample configure file as follows. |
---|
| 68 | `cp %{_docdir}/%{name}/%{name}-%{version}/xmonad.hs ~/.xmonad/` |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %description -l ja |
---|
| 72 | XmonadはHaskellで書かれたタイル型ウィンドウマネージャです。 |
---|
| 73 | ウィンドウは自動的レイアウトアルゴリズムによって管理されており、 |
---|
| 74 | ウィンドウはいつでも最大化されて配置されます。 |
---|
| 75 | 純粋にキーボード操作だけで操作することが可能であり、 |
---|
| 76 | マウスの使用は単にオプションです。 |
---|
| 77 | XmonadはHaskellで設定され、ユーザーが設定ファイルを書くことで |
---|
| 78 | レイアウトをカスタマイズすることができます。 |
---|
| 79 | |
---|
| 80 | 設定ファイルの例が |
---|
| 81 | %{_docdir}/%{name}/%{name}-%{version}/xmonad.hs |
---|
| 82 | にあるため、 |
---|
| 83 | ~/.xmonad 以下にコピーして使用して下さい。 |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | %prep |
---|
| 87 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[10916] | 88 | |
---|
[10169] | 89 | %build |
---|
[11632] | 90 | %ghc_pkg_init |
---|
[10169] | 91 | |
---|
| 92 | cd %{_builddir} |
---|
[11632] | 93 | for pkg in `sed '$d' %{SOURCE0}`; do |
---|
| 94 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 95 | pushd ${pkg} |
---|
| 96 | %ghc_fix_dependencies ${pkg} |
---|
| 97 | %cabal_configure2 %{name} ${pkg} |
---|
| 98 | %cabal_build |
---|
| 99 | %cabal_haddock |
---|
| 100 | %cabal_copy_resister %{name}_${pkg} |
---|
| 101 | popd |
---|
[10169] | 102 | done |
---|
| 103 | |
---|
| 104 | # build xmonad |
---|
[11632] | 105 | for pkg in `tail -n 1 %{SOURCE0}`; do |
---|
| 106 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 107 | pushd ${pkg} |
---|
| 108 | %ghc_fix_dependencies ${pkg} |
---|
[10169] | 109 | |
---|
[11632] | 110 | # Patch for building ghc-8.4 |
---|
| 111 | %{__patch} -p1 < %{SOURCE2} |
---|
[10169] | 112 | |
---|
[11632] | 113 | %cabal_configure2 %{name} %{name}-%{version} |
---|
| 114 | %cabal_build |
---|
| 115 | %cabal_haddock |
---|
| 116 | %cabal_copy_resister %{pkgname}-%{version} |
---|
| 117 | popd |
---|
| 118 | done |
---|
| 119 | |
---|
| 120 | |
---|
[10169] | 121 | %install |
---|
| 122 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/man/man1 |
---|
[11632] | 123 | |
---|
| 124 | # copy man file |
---|
| 125 | pushd ${RPM_BUILD_ROOT}%{_datadir}/%{name}/%{name}-%{version}/man |
---|
| 126 | %{__mv} xmonad.1 ${RPM_BUILD_ROOT}%{_datadir}/man/man1 |
---|
| 127 | %{__mv} xmonad.1.html xmonad.hs \ |
---|
| 128 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version} |
---|
| 129 | popd |
---|
| 130 | |
---|
[10169] | 131 | %{__rm} -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}-%{version}/man |
---|
| 132 | |
---|
| 133 | # xsession desktop entry |
---|
| 134 | %{__mkdir_p} %{buildroot}%{_datadir}/xsessions/ |
---|
[11632] | 135 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/xsessions/ |
---|
[10169] | 136 | |
---|
[11632] | 137 | # copy documents |
---|
| 138 | pushd %{_builddir}/%{name}-%{version} |
---|
| 139 | %{__cp} CHANGES.md LICENSE README.md STYLE \ |
---|
| 140 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version} |
---|
| 141 | popd |
---|
[10169] | 142 | |
---|
| 143 | %clean |
---|
| 144 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | %post |
---|
[11632] | 148 | %ghc_pkg_recache |
---|
[10169] | 149 | |
---|
| 150 | %postun |
---|
[11632] | 151 | %ghc_pkg_recache |
---|
[10169] | 152 | |
---|
| 153 | |
---|
| 154 | %files |
---|
| 155 | %defattr(-, root, root) |
---|
| 156 | %{_bindir}/ |
---|
| 157 | %{_libdir}/ghc-%{ghc_version}/ |
---|
| 158 | %{_libdir}/ghc-lib/ |
---|
| 159 | %{_datadir}/xsessions/ |
---|
[10236] | 160 | %{_docdir}/%{name} |
---|
| 161 | %{_mandir}/man1/ |
---|
[10169] | 162 | |
---|
| 163 | |
---|
| 164 | %changelog |
---|
[11632] | 165 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.13-2 |
---|
| 166 | - rebuild using ghc-8.4.2 |
---|
| 167 | - add Patch for building with ghc-8.4 (Source2) |
---|
| 168 | - add BuildRequires: libghc-old-locale |
---|
| 169 | - add BuildRequires: libghc-semigroups |
---|
| 170 | - rewrite using macro |
---|
| 171 | |
---|
| 172 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.13-1 |
---|
[11384] | 173 | - update to 0.13 |
---|
| 174 | - build using ghc-8.2.2 |
---|
| 175 | |
---|
[10916] | 176 | * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.12-5 |
---|
| 177 | - rebuild using ghc-8.0.1 |
---|
| 178 | |
---|
[10236] | 179 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.12-4 |
---|
| 180 | - rebuilt |
---|
| 181 | |
---|
[10169] | 182 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.12-3 |
---|
| 183 | - correct SPEC file |
---|
| 184 | |
---|
| 185 | * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.12-2 |
---|
| 186 | - rebuild under dependent rpm packages |
---|
| 187 | |
---|
| 188 | * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12-1 |
---|
| 189 | - new package |
---|