[10168] | 1 | %define pkg_name xmobar |
---|
| 2 | %define pkg_version 0.23.1 |
---|
[10236] | 3 | %define pkg_release 6%{?_dist_release} |
---|
[10168] | 4 | |
---|
| 5 | %define ghc_version 7.10.3 |
---|
| 6 | |
---|
| 7 | Summary: a minimalistic text based status bar |
---|
| 8 | Summary(ja): テキストを基礎とした最小のステータスバー |
---|
| 9 | Name: %{pkg_name} |
---|
| 10 | Version: %{pkg_version} |
---|
| 11 | Release: %{pkg_release} |
---|
| 12 | |
---|
| 13 | License: BSD3 |
---|
| 14 | Group: User Interface/Desktops |
---|
| 15 | URL: http://hackage.haskell.org |
---|
| 16 | |
---|
| 17 | Source0: %{name}-%{version}.tar.gz |
---|
| 18 | |
---|
| 19 | Source1: cereal-0.5.1.0.tar.gz |
---|
| 20 | Source2: hinotify-0.3.8.1.tar.gz |
---|
| 21 | Source3: libmpd-0.9.0.4.tar.gz |
---|
| 22 | Source4: timezone-series-0.1.5.1.tar.gz |
---|
| 23 | Source5: timezone-olson-0.1.7.tar.gz |
---|
| 24 | |
---|
| 25 | Source100: packages |
---|
| 26 | |
---|
| 27 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 28 | |
---|
| 29 | BuildRequires: ghc haskell-platform-base cabal-install |
---|
| 30 | BuildRequires: xmonad-contrib |
---|
| 31 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 32 | BuildRequires: xorg-x11-devel |
---|
| 33 | BuildRequires: libXpm-devel |
---|
| 34 | |
---|
| 35 | Requires: xmonad-contrib |
---|
| 36 | Requires: libXpm |
---|
| 37 | |
---|
| 38 | Vendor: Project Vine |
---|
| 39 | Distribution: Vine Linux |
---|
| 40 | Packager: ara_t |
---|
| 41 | |
---|
| 42 | %description |
---|
| 43 | Xmobar is a minimalistic text based status bar. |
---|
| 44 | |
---|
| 45 | Inspired by the Ion3 status bar, it supports similar features, |
---|
| 46 | like dynamic color management, output templates, and extensibility |
---|
| 47 | through plugins. |
---|
| 48 | |
---|
| 49 | %description -l ja |
---|
| 50 | Xmobarはテキストを基礎とした最小のステータスバーです。 |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %prep |
---|
| 54 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 55 | %setup -q |
---|
| 56 | |
---|
| 57 | # Initialise the package db |
---|
| 58 | ghc-pkg init %{_builddir}/package.conf |
---|
| 59 | |
---|
| 60 | %build |
---|
| 61 | PKG_CONF_DIR=${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_version}/package.conf.d |
---|
| 62 | %{__mkdir_p} ${PKG_CONF_DIR} |
---|
| 63 | |
---|
| 64 | # install dependent packages |
---|
| 65 | cd %{_builddir} |
---|
| 66 | for pkg in `cat %{SOURCE100}`; do |
---|
| 67 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 68 | cd ${pkg} |
---|
| 69 | cabal configure \ |
---|
| 70 | --prefix=%{_prefix} \ |
---|
| 71 | --libdir=%{_libdir}/ghc-lib/%{name}/${pkg} \ |
---|
| 72 | --libsubdir= \ |
---|
| 73 | --datadir=%{_datadir}/%{name}/${pkg} \ |
---|
| 74 | --datasubdir= \ |
---|
| 75 | --docdir=%{_docdir}/%{name}/${pkg} |
---|
| 76 | |
---|
| 77 | cabal build |
---|
| 78 | cabal haddock |
---|
| 79 | cabal copy --destdir=${RPM_BUILD_ROOT} |
---|
| 80 | cabal register --inplace |
---|
| 81 | cabal register --gen-pkg-config=${PKG_CONF_DIR}/%{name}_${pkg}.conf |
---|
| 82 | cd .. |
---|
| 83 | done |
---|
| 84 | |
---|
| 85 | # build xmobar |
---|
| 86 | cd %{_builddir}/%{name}-%{version} |
---|
| 87 | cabal configure \ |
---|
| 88 | --prefix=%{_prefix} \ |
---|
| 89 | --libdir=%{_libdir}/ghc-lib/%{name}-%{version} \ |
---|
| 90 | --libsubdir= \ |
---|
| 91 | --datadir=%{_datadir}/%{name}-%{version} \ |
---|
| 92 | --datasubdir= \ |
---|
[10236] | 93 | --docdir=%{_docdir}/%{name}/%{name}-%{version} \ |
---|
[10168] | 94 | --flags="with_utf8" --flags="with_xft" \ |
---|
| 95 | --flags="with_threaded" --flags="with_inotify" \ |
---|
| 96 | --flags="with_datazone" --flags="with_xpm" |
---|
| 97 | |
---|
| 98 | cabal build |
---|
| 99 | |
---|
| 100 | %install |
---|
| 101 | cabal copy --destdir=${RPM_BUILD_ROOT} |
---|
| 102 | |
---|
[10236] | 103 | %{__cp} license news.md readme.md \ |
---|
| 104 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version} |
---|
[10168] | 105 | |
---|
| 106 | %clean |
---|
| 107 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 108 | |
---|
| 109 | %post |
---|
| 110 | ghc-pkg recache |
---|
| 111 | |
---|
| 112 | %postun |
---|
| 113 | ghc-pkg recache |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | %files |
---|
| 117 | %defattr(-, root, root) |
---|
| 118 | %{_bindir}/ |
---|
[10236] | 119 | %{_libdir}/ghc-%{ghc_version}/ |
---|
| 120 | %{_libdir}/ghc-lib/ |
---|
| 121 | %{_docdir}/%{name}/ |
---|
[10168] | 122 | |
---|
| 123 | |
---|
| 124 | %changelog |
---|
[10236] | 125 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-6 |
---|
| 126 | - rebuilt |
---|
| 127 | |
---|
[10168] | 128 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-5 |
---|
| 129 | - rebuild under xmonad-0.12-3 and xmonad-contrib-0.12-4 |
---|
| 130 | - correct SPEC file |
---|
| 131 | |
---|
| 132 | * Sun Mar 06 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-4 |
---|
| 133 | - correct SPEC file |
---|
| 134 | |
---|
| 135 | * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-3 |
---|
| 136 | - rebuild under xmonad-0.12-2 and xmonad-contrib-0.12-3 |
---|
| 137 | |
---|
| 138 | * Sun Feb 28 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-2 |
---|
| 139 | - add configure option and required libraries |
---|
| 140 | |
---|
| 141 | * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-1 |
---|
| 142 | - new package |
---|