[10170] | 1 | %define pkg_name xmonad-contrib |
---|
[11384] | 2 | %define pkg_version 0.13 |
---|
[11632] | 3 | %define pkg_release 3%{?_dist_release} |
---|
[10170] | 4 | |
---|
| 5 | Summary: Third party extensions for xmonad |
---|
| 6 | Summary(ja): サードパーティーによるxmonad拡張 |
---|
| 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 |
---|
[10170] | 16 | |
---|
[11632] | 17 | # Patch for building ghc-8.4 |
---|
| 18 | Source1: xmonad-contrib-0.13_using_ghc-8.4.patch |
---|
| 19 | |
---|
[10916] | 20 | Source11: X11-xft-0.3.1.tar.gz |
---|
[11632] | 21 | Source12: X11-xft.cabal |
---|
| 22 | Source13: old-time-1.1.0.3.tar.gz |
---|
| 23 | Source14: old-time.cabal |
---|
| 24 | Source15: random-1.1.tar.gz |
---|
| 25 | Source16: random.cabal |
---|
| 26 | Source17: xmonad-contrib-0.13.tar.gz |
---|
| 27 | Source18: xmonad-contrib.cabal |
---|
[10170] | 28 | |
---|
| 29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 30 | |
---|
[10916] | 31 | BuildRequires: ghc haskell-platform |
---|
[10170] | 32 | BuildRequires: xmonad |
---|
| 33 | |
---|
| 34 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 35 | BuildRequires: xorg-x11-devel |
---|
| 36 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
| 37 | |
---|
[11632] | 38 | Requires: haskell-platform-dep |
---|
[10170] | 39 | Requires: xmonad |
---|
| 40 | |
---|
| 41 | Vendor: Project Vine |
---|
| 42 | Distribution: Vine Linux |
---|
[10916] | 43 | Packager: ara_t |
---|
[10170] | 44 | |
---|
[11632] | 45 | |
---|
[10170] | 46 | %description |
---|
| 47 | Third party tiling algorithms, configurations and scripts to xmonad, |
---|
| 48 | a tiling window manager for X. |
---|
| 49 | |
---|
| 50 | %description -l ja |
---|
| 51 | サードパーティーによるxmonad拡張であり、 |
---|
| 52 | タイル化のためのアルゴリズム、設定およびスクリプトを含みます。 |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %prep |
---|
| 56 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 57 | |
---|
| 58 | %build |
---|
[11632] | 59 | %ghc_pkg_init |
---|
[10170] | 60 | |
---|
| 61 | cd %{_builddir} |
---|
[11632] | 62 | for pkg in `cat %{SOURCE0}`; do |
---|
| 63 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 64 | pushd ${pkg} |
---|
| 65 | %ghc_fix_dependencies ${pkg} |
---|
[10916] | 66 | |
---|
[11632] | 67 | case ${pkg} in |
---|
| 68 | "%{name}-%{version}") %{__patch} -p1 < %{SOURCE1} ;; |
---|
| 69 | *) ;; |
---|
| 70 | esac |
---|
[10170] | 71 | |
---|
[11632] | 72 | %cabal_configure2 %{name} ${pkg} |
---|
| 73 | %cabal_build |
---|
| 74 | %cabal_haddock |
---|
| 75 | %cabal_copy_resister %{name}_${pkg} |
---|
| 76 | popd |
---|
[10170] | 77 | done |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %install |
---|
[11632] | 81 | # copy documents |
---|
| 82 | pushd %{_builddir}/%{name}-%{version} |
---|
| 83 | %{__cp} CHANGES.md LICENSE README.md \ |
---|
| 84 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version} |
---|
| 85 | popd |
---|
[10170] | 86 | |
---|
[11632] | 87 | |
---|
[10170] | 88 | %clean |
---|
| 89 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 90 | |
---|
| 91 | %post |
---|
[11632] | 92 | %ghc_pkg_recache |
---|
[10170] | 93 | |
---|
| 94 | %postun |
---|
[11632] | 95 | %ghc_pkg_recache |
---|
[10170] | 96 | |
---|
| 97 | |
---|
| 98 | %files |
---|
| 99 | %defattr(-, root, root) |
---|
| 100 | %{_libdir}/ghc-%{ghc_version}/ |
---|
| 101 | %{_libdir}/ghc-lib/ |
---|
[10236] | 102 | %{_docdir}/%{name}/ |
---|
[10170] | 103 | |
---|
| 104 | |
---|
| 105 | %changelog |
---|
[11632] | 106 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.13-3 |
---|
| 107 | - rebuild using ghc-8.4.2 |
---|
| 108 | - add Patch for building with ghc-8.4 (Source1) |
---|
| 109 | - rewrite using macro |
---|
| 110 | |
---|
| 111 | * Thu May 10 2018 Toshiaki Ara <ara_t@384.jp> 0.13-2 |
---|
| 112 | - rebuild using ghc-8.4.2 |
---|
| 113 | |
---|
[11384] | 114 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.13-1 |
---|
| 115 | - update to 0.13 |
---|
| 116 | - rebuild using ghc-8.0.2 |
---|
| 117 | |
---|
[10916] | 118 | * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.12-6 |
---|
| 119 | - rebuild using ghc-8.0.1 |
---|
| 120 | |
---|
[10236] | 121 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.12-5 |
---|
| 122 | - rebuilt |
---|
| 123 | |
---|
[10170] | 124 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.12-4 |
---|
| 125 | - rebuild under xmonad-0.12-3 |
---|
| 126 | - correct SPEC file |
---|
| 127 | |
---|
| 128 | * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.12-3 |
---|
| 129 | - rebuild under xmonad-0.12-2 |
---|
| 130 | |
---|
| 131 | * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12-2 |
---|
| 132 | - recompile |
---|
| 133 | |
---|
| 134 | * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12-1 |
---|
| 135 | - new package |
---|