Update rpm spec file
This commit is contained in:
parent
6fb032435a
commit
0564282170
@ -1,4 +1,4 @@
|
||||
### Automated build version of dev branch
|
||||
# Automated build version of dev branch
|
||||
|
||||
#
|
||||
# Copyright © 2019 Artem Polishchuk <ego.cordatus@gmail.com>
|
||||
@ -23,7 +23,7 @@
|
||||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
|
||||
%define build_timestamp %{lua: print(os.date("%Y%m%d.%H"))}
|
||||
%define build_timestamp %{lua: print(os.date("%Y%m%d"))}
|
||||
%global appname nohang
|
||||
|
||||
Name: %{appname}-dev
|
||||
@ -36,7 +36,8 @@ URL: https://github.com/hakavlad/nohang
|
||||
Source0: %{url}/archive/dev/%{name}-%{build_timestamp}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
%if 0%{?el7}
|
||||
BuildRequires: gettext
|
||||
%if 0%{?rhel} >= 7
|
||||
BuildRequires: systemd
|
||||
%else
|
||||
BuildRequires: systemd-rpm-macros
|
||||
@ -49,8 +50,8 @@ Recommends: %{name}-desktop
|
||||
|
||||
%description
|
||||
Nohang is a highly configurable daemon for Linux which is able to correctly
|
||||
prevent out of memory (OOM) and keep system responsiveness in low
|
||||
memory conditions.
|
||||
prevent out of memory (OOM) and keep system responsiveness in low memory
|
||||
conditions.
|
||||
|
||||
To enable and start:
|
||||
|
||||
@ -71,13 +72,20 @@ Desktop version of %{name}.
|
||||
%prep
|
||||
%autosetup -n %{appname}-dev-%{version}
|
||||
|
||||
# For local build
|
||||
%dnl %autosetup -n %{appname}-dev
|
||||
|
||||
|
||||
%build
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install BINDIR=%{_bindir} CONFDIR=%{_sysconfdir} SYSTEMDUNITDIR=%{_unitdir}
|
||||
%make_install \
|
||||
BINDIR=%{_bindir} \
|
||||
CONFDIR=%{_sysconfdir} \
|
||||
SYSTEMDUNITDIR=%{_unitdir}
|
||||
|
||||
echo "v%{version}-%{build_timestamp}" > %{buildroot}%{_sysconfdir}/%{appname}/version
|
||||
|
||||
|
||||
@ -90,7 +98,7 @@ echo "v%{version}-%{build_timestamp}" > %{buildroot}%{_sysconfdir}/%{appname}/ve
|
||||
%postun
|
||||
%systemd_postun_with_restart %{appname}.service
|
||||
|
||||
### Desktop
|
||||
# Desktop
|
||||
%post desktop
|
||||
%systemd_post %{appname}-desktop.service
|
||||
|
||||
@ -123,12 +131,24 @@ echo "v%{version}-%{build_timestamp}" > %{buildroot}%{_sysconfdir}/%{appname}/ve
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jan 31 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-19.20200131git6fb0324
|
||||
- Update to latest git snapshot
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-18.20191203git6389a06
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Dec 04 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-17.20191203git6389a06
|
||||
- Update to latest git snapshot
|
||||
|
||||
* Sun Nov 17 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-16.20191117gitaef8af6
|
||||
- Update to latest git snapshot
|
||||
|
||||
* Mon Oct 14 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-15.20191005git2a3209c
|
||||
- Update to latest git snapshot
|
||||
|
||||
* Sat Sep 21 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-15.20190919git286ed84
|
||||
- Fix BR: systemd required for EPEL8
|
||||
|
||||
* Thu Sep 19 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-14.20190919git286ed84
|
||||
- Update to latest git snapshot
|
||||
|
||||
@ -144,4 +164,3 @@ echo "v%{version}-%{build_timestamp}" > %{buildroot}%{_sysconfdir}/%{appname}/ve
|
||||
|
||||
* Sat Aug 31 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-5.20190831gitf3baa58
|
||||
- Initial package
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user