diff --git a/.gitignore b/.gitignore index 2b1b8ab..804d4ef 100644 --- a/.gitignore +++ b/.gitignore @@ -15,17 +15,3 @@ /xmobar-0.24.5.tar.gz /xmobar-0.27.tar.gz /iwlib-0.1.0.tar.gz -/xmobar-0.29.4.tar.gz -/xmobar-0.32.tar.gz -/xmobar-0.33.tar.gz -/xmobar-0.34.tar.gz -/xmobar-0.35.1.tar.gz -/netlink-1.1.1.0.tar.gz -/pretty-hex-1.1.tar.gz -/xmobar-0.36.tar.gz -/xmobar-0.37.tar.gz -/xmobar-0.38.tar.gz -/xmobar-0.43.tar.gz -/xmobar-0.46.tar.gz -/xmobar-0.48.1.tar.gz -/xmobar-0.50.tar.gz diff --git a/sources b/sources index 71c4e96..4f9349f 100644 --- a/sources +++ b/sources @@ -1,3 +1,2 @@ -SHA512 (netlink-1.1.1.0.tar.gz) = 2bb3d3c1a86e2de61e18a50366d9ecfa863df4959533db5ab3b127b4e02853cf4295ce7519a8ba7bbee9af0534c510aae99c567a5b23e8587e8e56113f530da3 -SHA512 (pretty-hex-1.1.tar.gz) = e61223ea492d179e21dd0b26626e6dd32cc24e9e895e27ecedcdc20f70e7ca1db8ef69754a4273a4776d0574570c1d85de6e240f9d3ca0af003bd45416df7c3c -SHA512 (xmobar-0.50.tar.gz) = 5458bd5a84f38062b211f918ce7964216189b4ae3ccf48164cc47bb5acf053b5ae4e35987564887d44bafcc3899f9d6e7228b91362a077351d5447f1f45bf940 +SHA512 (iwlib-0.1.0.tar.gz) = a6e6a6f7612d61911540938aa526216ef2b5121008b9ec97de4f1d82fd1655a31bd73cc161ed0b16a4445bd5e256e1cd1206b6a8fb7bc39bf8683ac1c2565f93 +SHA512 (xmobar-0.27.tar.gz) = 30c75c83778368ace1816ec4616014ccf28ba08e9161daf137819b2625bbb9b35e834311db776d51524866136196c3c217c7a723416f05b5b199f9f49aa06700 diff --git a/xmobar-0.23.1-flags.patch b/xmobar-0.23.1-flags.patch new file mode 100644 index 0000000..96c8c51 --- /dev/null +++ b/xmobar-0.23.1-flags.patch @@ -0,0 +1,35 @@ +diff -u -r -U5 --no-dereference xmobar-0.23.1/xmobar.cabal xmobar-0.23.1.flags/xmobar.cabal +--- xmobar-0.23.1/xmobar.cabal 2015-04-14 13:08:19.000000000 -0400 ++++ xmobar-0.23.1.flags/xmobar.cabal 2015-07-19 14:03:49.517088869 -0400 +@@ -26,27 +26,27 @@ + location: git://github.com/jaor/xmobar.git + branch: master + + flag with_xft + description: Use Xft to render text. UTF-8 support included. +- default: False ++ default: True + + flag with_utf8 + description: With UTF-8 support. + default: True + + flag with_inotify + description: inotify support (modern Linux only). Required for the Mail and MBox plugins. +- default: False ++ default: True + + flag with_iwlib + description: Wireless info support. Required for the Wireless plugin, needs iwlib installed. +- default: False ++ default: True + + flag with_mpd + description: MPD support. Needs libmpd installed. +- default: False ++ default: True + + flag all_extensions + description: Includes all optional extensions. + default: False + diff --git a/xmobar-flags.patch b/xmobar-flags.patch deleted file mode 100644 index 61ddeb6..0000000 --- a/xmobar-flags.patch +++ /dev/null @@ -1,25 +0,0 @@ -xmobar-0.35.1/xmobar.cabal.orig 2001-09-09 09:46:40.000000000 +0800 -+++ xmobar-0.35.1/xmobar.cabal 2020-08-18 20:29:58.797400927 +0800 -@@ -37,7 +37,7 @@ - - flag with_inotify - description: inotify support (modern Linux only). Required for the Mail and MBox plugins. -- default: False -+ default: True - - flag with_iwlib - description: Wireless info support via Wext ioctls (deprecated). Required for the Wireless plugin, needs iwlib installed. -@@ -45,11 +45,11 @@ - - flag with_nl80211 - description: Wireless info support via nl80211. Required for the Wireless plugin on systems running Linux, the kernel. -- default: False -+ default: True - - flag with_mpd - description: MPD support. Needs libmpd installed. -- default: False -+ default: True - - flag all_extensions - description: Includes all optional extensions. diff --git a/xmobar-xft-fonts.patch b/xmobar-xft-fonts.patch new file mode 100644 index 0000000..3a82b83 --- /dev/null +++ b/xmobar-xft-fonts.patch @@ -0,0 +1,32 @@ +--- xmobar-0.27/samples/xmobar.config.fonts 2018-07-12 09:16:27.000000000 +0900 ++++ xmobar-0.27/samples/xmobar.config 2018-07-23 00:20:59.630748923 +0900 +@@ -1,4 +1,4 @@ +-Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" ++Config { font = "xft:mono-12" + , additionalFonts = [] + , borderColor = "black" + , border = TopB +diff -up xmobar-0.27/src/Config.hs.fonts xmobar-0.27/src/Config.hs +--- xmobar-0.27/src/Config.hs.fonts 2018-07-23 00:20:59.630748923 +0900 ++++ xmobar-0.27/src/Config.hs 2018-07-23 00:23:47.885897344 +0900 +@@ -113,7 +113,7 @@ data Border = NoBorder + -- | The default configuration values + defaultConfig :: Config + defaultConfig = +- Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" ++ Config { font = "xft:mono-12" + , additionalFonts = [] + , wmClass = "xmobar" + , wmName = "xmobar" +diff -up xmobar-0.27/src/XUtil.hsc.fonts xmobar-0.27/src/XUtil.hsc +--- xmobar-0.27/src/XUtil.hsc.fonts 2018-07-12 09:16:27.000000000 +0900 ++++ xmobar-0.27/src/XUtil.hsc 2018-07-23 00:20:59.631748929 +0900 +@@ -98,7 +98,7 @@ initFont d s = + #endif + + miscFixedFont :: String +-miscFixedFont = "-misc-fixed-*-*-*-*-*-*-*-*-*-*-*-*" ++miscFixedFont = "-misc-fixed-*-*-*-*-13-*-*-*-*-*-*-*" + + -- | Given a fontname returns the font structure. If the font name is + -- not valid the default font will be loaded and returned. diff --git a/xmobar.spec b/xmobar.spec index 65e035b..9446409 100644 --- a/xmobar.spec +++ b/xmobar.spec @@ -1,61 +1,41 @@ -# generated by cabal-rpm-2.3.2 --subpackage -# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ +# generated by cabal-rpm-0.12.5 +# https://fedoraproject.org/wiki/Packaging:Haskell -%global pkg_name xmobar -%global pkgver %{pkg_name}-%{version} -%{?haskell_setup} +%global iwlib iwlib-0.1.0 +%global subpkgs %{iwlib} -%global netlink netlink-1.1.1.0 -%global prettyhex pretty-hex-1.1 +%bcond_without tests -%global subpkgs %{prettyhex} %{netlink} - -# needs alsa-mixer package -%bcond tests 0 - -Name: %{pkg_name} -Version: 0.50 +Name: xmobar +Version: 0.27 # can only be reset when all subpkgs bumped -Release: 38%{?dist} +Release: 1%{?dist} Summary: A minimalistic text-based status bar -License: BSD-3-Clause -URL: https://hackage.haskell.org/package/xmobar -# Begin cabal-rpm sources: -Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz -Source1: https://hackage.haskell.org/package/%{netlink}/%{netlink}.tar.gz -Source2: https://hackage.haskell.org/package/%{prettyhex}/%{prettyhex}.tar.gz -# End cabal-rpm sources +License: BSD +Url: https://hackage.haskell.org/package/%{name} +Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{iwlib}/%{iwlib}.tar.gz Source10: xmobar.desktop -Patch0: xmobar-flags.patch +Patch0: xmobar-0.23.1-flags.patch +Patch1: xmobar-xft-fonts.patch -# Begin cabal-rpm deps: -BuildRequires: ghc-rpm-macros-extra BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros-extra +# Begin cabal-rpm deps: +BuildRequires: ghc-HTTP-devel BuildRequires: ghc-X11-devel BuildRequires: ghc-X11-xft-devel -BuildRequires: ghc-aeson-devel -BuildRequires: ghc-async-devel -BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel -BuildRequires: ghc-cairo-devel -BuildRequires: ghc-cereal-devel -BuildRequires: ghc-colour-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel -BuildRequires: ghc-extensible-exceptions-devel -BuildRequires: ghc-extra-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-hinotify-devel -BuildRequires: ghc-http-client-tls-devel -BuildRequires: ghc-http-conduit-devel -BuildRequires: ghc-http-types-devel +#BuildRequires: ghc-iwlib-devel BuildRequires: ghc-libmpd-devel BuildRequires: ghc-mtl-devel -#BuildRequires: ghc-netlink-devel BuildRequires: ghc-old-locale-devel -BuildRequires: ghc-pango-devel BuildRequires: ghc-parsec-devel BuildRequires: ghc-parsec-numbers-devel BuildRequires: ghc-process-devel @@ -65,50 +45,11 @@ BuildRequires: ghc-time-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-unix-devel BuildRequires: ghc-utf8-string-devel -%if %{with ghc_prof} -BuildRequires: ghc-X11-prof -BuildRequires: ghc-X11-xft-prof -BuildRequires: ghc-aeson-prof -BuildRequires: ghc-async-prof -BuildRequires: ghc-base-prof -BuildRequires: ghc-bytestring-prof -BuildRequires: ghc-cairo-prof -BuildRequires: ghc-cereal-prof -BuildRequires: ghc-colour-prof -BuildRequires: ghc-containers-prof -BuildRequires: ghc-directory-prof -BuildRequires: ghc-extensible-exceptions-prof -BuildRequires: ghc-extra-prof -BuildRequires: ghc-filepath-prof -BuildRequires: ghc-hinotify-prof -BuildRequires: ghc-http-client-tls-prof -BuildRequires: ghc-http-conduit-prof -BuildRequires: ghc-http-types-prof -BuildRequires: ghc-libmpd-prof -BuildRequires: ghc-mtl-prof -#BuildRequires: ghc-netlink-prof -BuildRequires: ghc-old-locale-prof -BuildRequires: ghc-pango-prof -BuildRequires: ghc-parsec-prof -BuildRequires: ghc-parsec-numbers-prof -BuildRequires: ghc-process-prof -BuildRequires: ghc-regex-compat-prof -BuildRequires: ghc-stm-prof -BuildRequires: ghc-time-prof -BuildRequires: ghc-transformers-prof -BuildRequires: ghc-unix-prof -BuildRequires: ghc-utf8-string-prof -%endif -%if %{with tests} -BuildRequires: ghc-hspec-devel -BuildRequires: ghc-temporary-devel -%endif BuildRequires: libXrandr-devel BuildRequires: libXrender-devel -# for missing dep 'netlink': -BuildRequires: ghc-monad-loops-devel -%if %{with ghc_prof} -BuildRequires: ghc-monad-loops-prof +BuildRequires: wireless-tools-devel +%if %{with tests} +BuildRequires: ghc-hspec-devel %endif # End cabal-rpm deps BuildRequires: desktop-file-utils @@ -121,248 +62,50 @@ Inspired by the Ion3 status bar, it supports similar features, like dynamic color management, output templates, and extensibility through plugins. -%package -n ghc-%{name} -Summary: Haskell %{name} library - -%description -n ghc-%{name} -This package provides the Haskell %{name} shared library. - - -%package -n ghc-%{name}-devel -Summary: Haskell %{name} library development files -Provides: ghc-%{name}-static = %{version}-%{release} -Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release} -%if %{defined ghc_version} -Requires: ghc-compiler = %{ghc_version} -%endif -Requires: ghc-%{name}%{?_isa} = %{version}-%{release} -# Begin cabal-rpm deps: -Requires: libXrandr-devel%{?_isa} -Requires: libXrender-devel%{?_isa} -# End cabal-rpm deps - -%description -n ghc-%{name}-devel -This package provides the Haskell %{name} library development files. - - -%if %{with haddock} -%package -n ghc-%{name}-doc -Summary: Haskell %{name} library documentation -BuildArch: noarch -Requires: ghc-filesystem - -%description -n ghc-%{name}-doc -This package provides the Haskell %{name} library documentation. -%endif - - -%if %{with ghc_prof} -%package -n ghc-%{name}-prof -Summary: Haskell %{name} profiling library -Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release} -Supplements: (ghc-%{name}-devel and ghc-prof) - -%description -n ghc-%{name}-prof -This package provides the Haskell %{name} profiling library. -%endif - - %global main_version %{version} %if %{defined ghclibdir} -%ghc_lib_subpackage -l BSD-3-Clause %{netlink} -%ghc_lib_subpackage -l BSD-3-Clause %{prettyhex} +%ghc_lib_subpackage %{iwlib} %endif %global version %{main_version} %prep -# Begin cabal-rpm setup: -%setup -q -a1 -a2 -%autopatch -p1 -# End cabal-rpm setup +%setup -q -a1 + +%patch0 -p1 -b .orig +%patch1 -p1 -b .fonts %build -# Begin cabal-rpm build: %ghc_libs_build %{subpkgs} -%ghc_lib_build -# End cabal-rpm build +%ghc_bin_build -cd etc +cd samples %{_bindir}/ghc %{!?ghc_without_dynamic:-dynamic} --make xmonadpropwrite.hs cd - %install -# Begin cabal-rpm install %ghc_libs_install %{subpkgs} -%ghc_lib_install -# End cabal-rpm install +%ghc_bin_install desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10} -install --mode=0755 -p etc/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpropwrite - -rm %{buildroot}%{_bindir}/{dump_nl80211,dump_rtnetlink,genlinfo} - - -%check -%if %{with tests} -PATH=%{buildroot}%{_bindir}:$PATH -%cabal_test -%endif +install --mode=0755 -p samples/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpropwrite %files -# Begin cabal-rpm files: %license license -%doc changelog.md readme.org +%doc changelog.md readme.md %{_bindir}/%{name} -# End cabal-rpm files + %{_bindir}/xmonadpropwrite %{_datadir}/applications/xmobar.desktop -%doc etc/xmobar.config - - -%files -n ghc-%{name} -f ghc-%{name}.files -# Begin cabal-rpm files: -%license license -# End cabal-rpm files - - -%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files -%doc changelog.md readme.org - - -%if %{with haddock} -%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files -%license license -%endif - - -%if %{with ghc_prof} -%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files -%endif +%doc samples/xmobar.config %changelog -* Fri Jul 17 2026 Fedora Release Engineering - 0.50-38 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Mon Jan 26 2026 Jens Petersen - 0.50-37 -- https://hackage.haskell.org/package/xmobar-0.50/changelog - -* Sat Jan 17 2026 Fedora Release Engineering - 0.48.1-36 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Mon Aug 11 2025 Jens Petersen - 0.48.1-35 -- Rebuild - -* Fri Jul 25 2025 Fedora Release Engineering - 0.48.1-34 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sun Mar 30 2025 Jens Petersen - 0.48.1-33 -- Rebuild - -* Sun Jan 19 2025 Fedora Release Engineering - 0.48.1-32 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Sun Jul 21 2024 Jens Petersen - 0.48.1-31 -- https://hackage.haskell.org/package/xmobar-0.48.1/changelog - -* Sat Jul 20 2024 Fedora Release Engineering - 0.46-30 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Sat Jan 27 2024 Fedora Release Engineering - 0.46-29 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jul 29 2023 Jens Petersen - 0.46-28 -- rebuild - -* Sat Jul 22 2023 Fedora Release Engineering - 0.46-27 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Sun Jan 22 2023 Jens Petersen - 0.46-26 -- https://hackage.haskell.org/package/xmobar-0.46/changelog -- refresh to cabal-rpm-2.1.0 with SPDX migration - -* Sat Jul 23 2022 Fedora Release Engineering - 0.43-25 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Tue Jun 07 2022 Jens Petersen - 0.43-24 -- https://hackage.haskell.org/package/xmobar-0.43/changelog - -* Sat Jan 22 2022 Fedora Release Engineering - 0.38-23 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Sat Jan 08 2022 Miro HronĨok - 0.38-22 -- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 - -* Thu Aug 5 2021 Jens Petersen - 0.38-21 -- update to 0.38 - -* Thu Aug 5 2021 Jens Petersen - 0.37-20 -- update to 0.37 - -* Fri Jul 23 2021 Fedora Release Engineering - 0.36-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Thu Jan 28 2021 Fedora Release Engineering - 0.36-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Aug 31 18:00:21 +08 2020 Jens Petersen - 0.36-17 -- update to 0.36 - https://hackage.haskell.org/package/xmobar-0.36/changelog - -* Wed Aug 19 2020 Jens Petersen - 0.35.1-16 -- switch from iwlib to netlink (#1860943) - -* Sat Aug 01 2020 Fedora Release Engineering - 0.35.1-15 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 0.35.1-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Thu Jul 16 2020 Jens Petersen - 0.35.1-13 -- update to 0.35.1 - -* Fri Jun 19 2020 Jens Petersen - 0.34-12 -- update to 0.34 - -* Wed Jun 10 2020 Jens Petersen - 0.33-11 -- update to 0.33 - -* Mon Feb 24 2020 Jens Petersen - 0.32-10 -- drop the libm patch - -* Sun Feb 23 2020 Jens Petersen - 0.32-9 -- update to 0.32 - -* Fri Jan 31 2020 Fedora Release Engineering - 0.29.4-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Fri Sep 13 2019 Jens Petersen - 0.29.4-7 -- add doc and prof subpackages (cabal-rpm-1.0) - -* Sat Jul 27 2019 Fedora Release Engineering - 0.29.4-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Mon Mar 4 2019 Jens Petersen - 0.29.4-5 -- rebuild without -O0 for s390x - -* Sat Feb 23 2019 Jens Petersen - 0.29.4-4 -- update to 0.29.4 -- now binlib -- drop xft font patch for now - -* Sun Feb 17 2019 Jens Petersen - 0.27-3 -- refresh to cabal-rpm-0.13 - -* Sun Feb 03 2019 Fedora Release Engineering - 0.27-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - * Sun Jul 22 2018 Jens Petersen - 0.27-1 - update to 0.27 - subpackage new iwlib dep