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