From b192a9cb82a5bce855bdbafdfadbc202b849e374 Mon Sep 17 00:00:00 2001 From: Sofia Boldyreva Date: Tue, 21 Mar 2023 23:08:24 +0100 Subject: [PATCH] Import wingpanel-indicator-power-6.1.0-2.el9 --- .gitignore | 1 + .wingpanel-indicator-power.metadata | 1 + SPECS/wingpanel-indicator-power.spec | 175 +++++++++++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 .gitignore create mode 100644 .wingpanel-indicator-power.metadata create mode 100644 SPECS/wingpanel-indicator-power.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee700ea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/wingpanel-indicator-power-6.1.0.tar.gz diff --git a/.wingpanel-indicator-power.metadata b/.wingpanel-indicator-power.metadata new file mode 100644 index 0000000..e547d1a --- /dev/null +++ b/.wingpanel-indicator-power.metadata @@ -0,0 +1 @@ +3c69a90806d15694a0518fe61098802d93e044ff SOURCES/wingpanel-indicator-power-6.1.0.tar.gz diff --git a/SPECS/wingpanel-indicator-power.spec b/SPECS/wingpanel-indicator-power.spec new file mode 100644 index 0000000..086310b --- /dev/null +++ b/SPECS/wingpanel-indicator-power.spec @@ -0,0 +1,175 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.2.5) +%define autorelease(e:s:pb:) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} +## END: Set by rpmautospec + +%global __provides_exclude_from ^%{_libdir}/wingpanel/.*\\.so$ + +%global srcname wingpanel-indicator-power +%global appname io.elementary.wingpanel.power + +Name: wingpanel-indicator-power +Summary: Power indicator for wingpanel +Version: 6.1.0 +Release: %autorelease +License: GPLv2+ + +URL: https://github.com/elementary/wingpanel-indicator-power +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildRequires: gettext +BuildRequires: libappstream-glib +BuildRequires: meson +BuildRequires: vala >= 0.22.0 + +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(granite) >= 6.0.0 +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(libbamf3) +BuildRequires: pkgconfig(libgtop-2.0) +BuildRequires: pkgconfig(libnotify) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(wingpanel) >= 3.0.0 + +Requires: wingpanel%{?_isa} +Supplements: wingpanel%{?_isa} + + +%description +A power indicator for wingpanel. + + +%prep +%autosetup -n %{srcname}-%{version} -p1 + + +%build +%meson +%meson_build + + +%install +%meson_install + +%find_lang power-indicator + +# remove the specified stock icon from appdata (invalid in libappstream-glib) +sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml + + +%check +appstream-util validate-relax --nonet \ + %{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml + + +%files -f power-indicator.lang +%doc README.md +%license COPYING + +%{_libdir}/wingpanel/libpower.so + +%{_datadir}/glib-2.0/schemas/io.elementary.desktop.wingpanel.power.gschema.xml +%{_datadir}/metainfo/%{appname}.appdata.xml + + +%changelog +* Sat Jan 22 2022 Fedora Release Engineering 6.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Aug 24 2021 Fabio Valentini 6.1.0-1 +- Update to version 6.1.0; Fixes RHBZ#1997081 + +* Fri Jul 23 2021 Fedora Release Engineering 6.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sat Jul 17 2021 Fabio Valentini 6.0.0-1 +- Update to version 6.0.0; Fixes RHBZ#1982588 + +* Fri Feb 19 2021 Fabio Valentini - 2.2.0-3.20210219git9934372 +- Bump to commit 9934372. Rebuilt for granite 6 soname bump and wingpanel 3. + +* Wed Jan 27 2021 Fedora Release Engineering - 2.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Sep 04 2020 Fabio Valentini - 2.2.0-1 +- Update to version 2.2.0. + +* Wed Jul 29 2020 Fedora Release Engineering - 2.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Apr 03 2020 Fabio Valentini - 2.1.5-1 +- Update to version 2.1.5. + +* Fri Jan 31 2020 Fedora Release Engineering - 2.1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 2.1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 2.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 29 2019 Fabio Valentini - 2.1.4-1 +- Update to version 2.1.4. + +* Tue Oct 02 2018 Fabio Valentini - 2.1.3-1 +- Update to version 2.1.3. + +* Sat Jul 14 2018 Fedora Release Engineering - 2.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jul 05 2018 Fabio Valentini - 2.1.2-1 +- Update to version 2.1.2. + +* Wed Jun 13 2018 Fabio Valentini - 2.1.1-8 +- Rebuild for granite5 soname bump. + +* Fri Feb 09 2018 Fedora Release Engineering - 2.1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 24 2018 Fabio Valentini - 2.1.1-6 +- Add patch to fix undefined symbols. + +* Sat Nov 04 2017 Fabio Valentini - 2.1.1-5 +- Rebuild for granite soname bump. + +* Thu Aug 03 2017 Fedora Release Engineering - 2.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Jun 13 2017 Kalev Lember - 2.1.1-2 +- Rebuilt for libgtop2 soname bump + +* Tue May 16 2017 Fabio Valentini - 2.1.1-1 +- Update to version 2.1.1. + +* Sun Apr 30 2017 Fabio Valentini - 2.1.0-1 +- Update to version 2.1.0. + +* Sat Feb 11 2017 Fedora Release Engineering - 2.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Jan 25 2017 Fabio Valentini - 2.0.1-3 +- Remove explicit BR: pkgconfig. + +* Sat Jan 14 2017 Fabio Valentini - 2.0.1-2 +- Clean up spec file. + +* Mon Oct 31 2016 Fabio Valentini - 2.0.1-1 +- Update to version 2.0.1. + +* Thu Sep 29 2016 Fabio Valentini - 2.0-3 +- Mass rebuild. + +* Wed Sep 28 2016 Fabio Valentini - 2.0-2 +- Spec file cleanups. + +* Sun Aug 21 2016 Fabio Valentini - 2.0-1 +- Update to version 2.0. +