[10171] | 1 | %define pkg_name xmonad-extras |
---|
[11632] | 2 | %define pkg_version 0.13.3 |
---|
[11384] | 3 | %define pkg_release 1%{?_dist_release} |
---|
[10171] | 4 | |
---|
| 5 | Summary: Various modules 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 |
---|
[10171] | 16 | |
---|
[11632] | 17 | Source11: alsa-core-0.5.0.1.tar.gz |
---|
| 18 | Source12: alsa-core.cabal |
---|
| 19 | Source13: libmpd-0.9.0.8.tar.gz |
---|
| 20 | Source14: libmpd.cabal |
---|
| 21 | Source15: language-c-0.7.2.tar.gz |
---|
| 22 | Source16: language-c.cabal |
---|
| 23 | Source17: c2hs-0.28.3.tar.gz |
---|
| 24 | Source18: c2hs.cabal |
---|
| 25 | Source19: alsa-mixer-0.2.0.3.tar.gz |
---|
| 26 | Source20: alsa-mixer.cabal |
---|
| 27 | Source21: xmonad-extras-0.13.3.tar.gz |
---|
| 28 | Source22: xmonad-extras.cabal |
---|
[11384] | 29 | |
---|
[10171] | 30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 31 | |
---|
[10916] | 32 | BuildRequires: ghc haskell-platform |
---|
[10171] | 33 | BuildRequires: xmonad xmonad-contrib |
---|
| 34 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 35 | BuildRequires: xorg-x11-devel |
---|
[11384] | 36 | BuildRequires: alsa-lib-devel |
---|
| 37 | BuildRequires: ncurses-devel |
---|
[10171] | 38 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
| 39 | |
---|
[11632] | 40 | Requires: haskell-platform-dep |
---|
[10171] | 41 | Requires: xmonad xmonad-contrib |
---|
| 42 | |
---|
[11632] | 43 | |
---|
[10171] | 44 | Vendor: Project Vine |
---|
| 45 | Distribution: Vine Linux |
---|
| 46 | Packager: ara_t |
---|
| 47 | |
---|
[11632] | 48 | |
---|
[10171] | 49 | %description |
---|
| 50 | Various modules for xmonad that cannot be added to xmonad-contrib |
---|
| 51 | because of additional dependencies. |
---|
| 52 | |
---|
| 53 | %description -l ja |
---|
| 54 | サードパーティーによるxmonad拡張であり、依存パッケージの追加のために |
---|
| 55 | xmonad-contribに含まれなかったモジュールを含みます。 |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %prep |
---|
| 59 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 60 | |
---|
| 61 | %build |
---|
[11632] | 62 | export PATH=${RPM_BUILD_ROOT}%{_bindir}:${PATH} |
---|
| 63 | %ghc_pkg_init |
---|
[10171] | 64 | |
---|
[11384] | 65 | cd %{_builddir} |
---|
[11632] | 66 | for pkg in `cat %{SOURCE0}`; do |
---|
| 67 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 68 | pushd ${pkg} |
---|
| 69 | %ghc_fix_dependencies ${pkg} |
---|
| 70 | %cabal_configure2 %{name} ${pkg} |
---|
| 71 | %cabal_build |
---|
| 72 | %cabal_haddock |
---|
| 73 | %cabal_copy_resister %{name}_${pkg} |
---|
| 74 | popd |
---|
[11384] | 75 | done |
---|
| 76 | |
---|
[11632] | 77 | %install |
---|
| 78 | # copy documents |
---|
| 79 | pushd %{_builddir}/%{name}-%{version} |
---|
| 80 | %{__cp} CHANGELOG.md LICENSE README.md \ |
---|
| 81 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version} |
---|
| 82 | popd |
---|
[10171] | 83 | |
---|
| 84 | |
---|
| 85 | %clean |
---|
| 86 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 87 | |
---|
| 88 | %post |
---|
[11632] | 89 | %ghc_pkg_recache |
---|
[10171] | 90 | |
---|
| 91 | %postun |
---|
[11632] | 92 | %ghc_pkg_recache |
---|
[10171] | 93 | |
---|
| 94 | |
---|
| 95 | %files |
---|
| 96 | %defattr(-, root, root) |
---|
[11384] | 97 | %{_bindir}/ |
---|
[10171] | 98 | %{_libdir}/ghc-%{ghc_version}/ |
---|
| 99 | %{_libdir}/ghc-lib/ |
---|
[11384] | 100 | %{_datadir}/%{name}/ |
---|
[10236] | 101 | %{_docdir}/%{name}/ |
---|
[10171] | 102 | |
---|
| 103 | |
---|
| 104 | %changelog |
---|
[11632] | 105 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.13.3-1 |
---|
| 106 | - update to 0.13.3 |
---|
| 107 | - rebuild using ghc-8.4.2 |
---|
| 108 | - rewrite using macro |
---|
| 109 | |
---|
[11384] | 110 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.13.2-1 |
---|
| 111 | - update to 0.13.2 |
---|
| 112 | - build using ghc-8.2.2 |
---|
| 113 | |
---|
[10916] | 114 | * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.12.1-6 |
---|
| 115 | - rebuild using ghc-8.0.1 |
---|
| 116 | |
---|
[10236] | 117 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-5 |
---|
| 118 | - rebuilt |
---|
| 119 | |
---|
[10171] | 120 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-4 |
---|
| 121 | - rebuild under xmonad-0.12-3 and xmonad-contrib-0.12-4 |
---|
| 122 | - correct SPEC file |
---|
| 123 | |
---|
| 124 | * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-3 |
---|
| 125 | - rebuild under xmonad-0.12-2 and xmonad-contrib-0.12-3 |
---|
| 126 | |
---|
| 127 | * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-2 |
---|
| 128 | - recompile |
---|
| 129 | |
---|
| 130 | * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-1 |
---|
| 131 | - new package |
---|