|
|
7939386 |
%global extdir %{_datadir}/gnome-shell/extensions/suspend-button@laserb
|
|
|
7939386 |
%global gschemadir %{_datadir}/glib-2.0/schemas
|
|
|
7939386 |
%global giturl https://github.com/laserb/%{name}
|
|
|
7939386 |
|
|
|
7939386 |
%global commit a81252074de99e2cdd29913b7f797a7f0d6d5b2b
|
|
|
7939386 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
7939386 |
%global commitdate 20171024
|
|
|
7939386 |
%global gitrel .%{commitdate}git%{shortcommit}
|
|
|
7939386 |
%global gitver -%{commitdate}git%{shortcommit}
|
|
|
7939386 |
|
|
|
7939386 |
|
|
|
7939386 |
Name: gnome-shell-extension-suspend-button
|
|
|
7939386 |
Version: 19
|
|
|
b1a5789 |
Release: 7%{?gitrel}%{?dist}
|
|
|
7939386 |
Summary: GNOME Shell Extension Suspend-Button by laserb
|
|
|
7939386 |
|
|
|
7939386 |
License: GPLv2+
|
|
|
7939386 |
URL: https://extensions.gnome.org/extension/826/suspend-button/
|
|
|
7939386 |
Source0: %{giturl}/archive/%{commit}.tar.gz#/%{name}-%{version}%{?gitversion}.tar.gz
|
|
|
7939386 |
|
|
|
7939386 |
BuildArch: noarch
|
|
|
7939386 |
|
|
|
7939386 |
BuildRequires: gettext
|
|
|
7939386 |
BuildRequires: %{_bindir}/glib-compile-schemas
|
|
|
4de5754 |
BuildRequires: make
|
|
|
7939386 |
|
|
|
7939386 |
Requires: gnome-shell-extension-common
|
|
|
7939386 |
|
|
|
7939386 |
%description
|
|
|
7939386 |
Allows to modify the suspend/shutdown button in the status menu.
|
|
|
7939386 |
|
|
|
7939386 |
|
|
|
7939386 |
%prep
|
|
|
7939386 |
%autosetup -n %{name}-%{commit} -p 1
|
|
|
7939386 |
|
|
|
7939386 |
|
|
|
7939386 |
%build
|
|
|
7939386 |
%make_build
|
|
|
7939386 |
|
|
|
7939386 |
|
|
|
7939386 |
%install
|
|
|
7939386 |
%make_install
|
|
|
7939386 |
|
|
|
7939386 |
# Cleanup crap.
|
|
|
7939386 |
%{__rm} -fr %{buildroot}%{extdir}/{COPYING*,README*,locale,schemas}
|
|
|
7939386 |
|
|
|
7939386 |
# Install schema.
|
|
|
7939386 |
%{__mkdir} -p %{buildroot}%{gschemadir}
|
|
|
7939386 |
%{__cp} -pr _build/schemas/*gschema.xml %{buildroot}%{gschemadir}
|
|
|
7939386 |
|
|
|
7939386 |
# Install i18n.
|
|
|
7939386 |
%{_bindir}/find _build -name '*.po' -print -delete
|
|
|
7939386 |
%{__cp} -pr _build/locale %{buildroot}%{_datadir}
|
|
|
7939386 |
|
|
|
7939386 |
# Create manifest for i18n.
|
|
|
7939386 |
%find_lang %{name} --all-name
|
|
|
7939386 |
|
|
|
7939386 |
|
|
|
7939386 |
# Fedora handles this using triggers.
|
|
|
7939386 |
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
7939386 |
%postun
|
|
|
7939386 |
if [ $1 -eq 0 ] ; then
|
|
|
7939386 |
%{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || :
|
|
|
7939386 |
fi
|
|
|
7939386 |
|
|
|
7939386 |
|
|
|
7939386 |
%posttrans
|
|
|
7939386 |
%{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || :
|
|
|
7939386 |
%endif
|
|
|
7939386 |
|
|
|
7939386 |
|
|
|
7939386 |
%files -f %{name}.lang
|
|
|
7939386 |
%license COPYING
|
|
|
7939386 |
%doc README.md
|
|
|
7939386 |
%{extdir}
|
|
|
7939386 |
%{gschemadir}/*gschema.xml
|
|
|
7939386 |
|
|
|
7939386 |
|
|
|
7939386 |
%changelog
|
|
|
b1a5789 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19-7.20171024gita812520
|
|
|
b1a5789 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
b1a5789 |
|
|
|
87e8782 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19-6.20171024gita812520
|
|
|
87e8782 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
87e8782 |
|
|
|
01dcd7b |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19-5.20171024gita812520
|
|
|
01dcd7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
01dcd7b |
|
|
|
ea41d90 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19-4.20171024gita812520
|
|
|
ea41d90 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
ea41d90 |
|
|
|
b34919c |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 19-3.20171024gita812520
|
|
|
b34919c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
b34919c |
|
|
|
f52650b |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 19-2.20171024gita812520
|
|
|
f52650b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
f52650b |
|
|
|
7939386 |
* Sun Dec 03 2017 Björn Esser <besser82@fedoraproject.org> - 19-1.20171024gita812520
|
|
|
7939386 |
- Initial import (rhbz#1520152)
|
|
|
7939386 |
|
|
|
7939386 |
* Fri Dec 01 2017 Björn Esser <besser82@fedoraproject.org> - 19-0.1.20171024gita812520
|
|
|
7939386 |
- Initial rpm release (rhbz#1520152)
|