refresh to cabal-rpm-0.13
This commit is contained in:
parent
624f00e208
commit
ceeee5b6e4
24
xmobar.spec
24
xmobar.spec
|
@ -1,4 +1,4 @@
|
||||||
# generated by cabal-rpm-0.12.5
|
# generated by cabal-rpm-0.13
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
|
||||||
%global iwlib iwlib-0.1.0
|
%global iwlib iwlib-0.1.0
|
||||||
|
@ -9,21 +9,23 @@
|
||||||
Name: xmobar
|
Name: xmobar
|
||||||
Version: 0.27
|
Version: 0.27
|
||||||
# can only be reset when all subpkgs bumped
|
# can only be reset when all subpkgs bumped
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: A minimalistic text-based status bar
|
Summary: A minimalistic text-based status bar
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: https://hackage.haskell.org/package/%{name}
|
Url: https://hackage.haskell.org/package/%{name}
|
||||||
|
# Begin cabal-rpm sources:
|
||||||
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: https://hackage.haskell.org/package/%{iwlib}/%{iwlib}.tar.gz
|
Source1: https://hackage.haskell.org/package/%{iwlib}/%{iwlib}.tar.gz
|
||||||
|
# End cabal-rpm sources
|
||||||
|
|
||||||
Source10: xmobar.desktop
|
Source10: xmobar.desktop
|
||||||
Patch0: xmobar-0.23.1-flags.patch
|
Patch0: xmobar-0.23.1-flags.patch
|
||||||
Patch1: xmobar-xft-fonts.patch
|
Patch1: xmobar-xft-fonts.patch
|
||||||
|
|
||||||
|
# Begin cabal-rpm deps:
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros-extra
|
BuildRequires: ghc-rpm-macros-extra
|
||||||
# Begin cabal-rpm deps:
|
|
||||||
BuildRequires: ghc-HTTP-devel
|
BuildRequires: ghc-HTTP-devel
|
||||||
BuildRequires: ghc-X11-devel
|
BuildRequires: ghc-X11-devel
|
||||||
BuildRequires: ghc-X11-xft-devel
|
BuildRequires: ghc-X11-xft-devel
|
||||||
|
@ -72,15 +74,19 @@ color management, output templates, and extensibility through plugins.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
# Begin cabal-rpm setup:
|
||||||
%setup -q -a1
|
%setup -q -a1
|
||||||
|
# End cabal-rpm setup
|
||||||
|
|
||||||
%patch0 -p1 -b .orig
|
%patch0 -p1 -b .orig
|
||||||
%patch1 -p1 -b .fonts
|
%patch1 -p1 -b .fonts
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# Begin cabal-rpm build:
|
||||||
%ghc_libs_build %{subpkgs}
|
%ghc_libs_build %{subpkgs}
|
||||||
%ghc_bin_build
|
%ghc_bin_build
|
||||||
|
# End cabal-rpm build
|
||||||
|
|
||||||
cd samples
|
cd samples
|
||||||
%{_bindir}/ghc %{!?ghc_without_dynamic:-dynamic} --make xmonadpropwrite.hs
|
%{_bindir}/ghc %{!?ghc_without_dynamic:-dynamic} --make xmonadpropwrite.hs
|
||||||
|
@ -88,24 +94,34 @@ cd -
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
# Begin cabal-rpm install
|
||||||
%ghc_libs_install %{subpkgs}
|
%ghc_libs_install %{subpkgs}
|
||||||
%ghc_bin_install
|
%ghc_bin_install
|
||||||
|
# End cabal-rpm install
|
||||||
|
|
||||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
|
||||||
install --mode=0755 -p samples/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpropwrite
|
install --mode=0755 -p samples/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpropwrite
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%cabal_test
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
# Begin cabal-rpm files:
|
||||||
%license license
|
%license license
|
||||||
%doc changelog.md readme.md
|
%doc changelog.md readme.md
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
# End cabal-rpm files
|
||||||
%{_bindir}/xmonadpropwrite
|
%{_bindir}/xmonadpropwrite
|
||||||
%{_datadir}/applications/xmobar.desktop
|
%{_datadir}/applications/xmobar.desktop
|
||||||
%doc samples/xmobar.config
|
%doc samples/xmobar.config
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.27-3
|
||||||
|
- refresh to cabal-rpm-0.13
|
||||||
|
|
||||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-2
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue