Merge pull request #83 from tim77/dev

Update rpm spec file
This commit is contained in:
Alexey Avramov 2020-02-03 01:36:49 +09:00 committed by GitHub
commit e852d2fc8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
### Automated build version of dev branch # Automated build version of dev branch
# #
# Copyright © 2019 Artem Polishchuk <ego.cordatus@gmail.com> # Copyright © 2019 Artem Polishchuk <ego.cordatus@gmail.com>
@ -23,7 +23,7 @@
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # 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 %global appname nohang
Name: %{appname}-dev Name: %{appname}-dev
@ -36,7 +36,8 @@ URL: https://github.com/hakavlad/nohang
Source0: %{url}/archive/dev/%{name}-%{build_timestamp}.tar.gz Source0: %{url}/archive/dev/%{name}-%{build_timestamp}.tar.gz
BuildArch: noarch BuildArch: noarch
%if 0%{?el7} BuildRequires: gettext
%if 0%{?rhel} >= 7
BuildRequires: systemd BuildRequires: systemd
%else %else
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
@ -49,8 +50,8 @@ Recommends: %{name}-desktop
%description %description
Nohang is a highly configurable daemon for Linux which is able to correctly Nohang is a highly configurable daemon for Linux which is able to correctly
prevent out of memory (OOM) and keep system responsiveness in low prevent out of memory (OOM) and keep system responsiveness in low memory
memory conditions. conditions.
To enable and start: To enable and start:
@ -71,13 +72,20 @@ Desktop version of %{name}.
%prep %prep
%autosetup -n %{appname}-dev-%{version} %autosetup -n %{appname}-dev-%{version}
# For local build
%dnl %autosetup -n %{appname}-dev
%build %build
%make_build %make_build
%install %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 echo "v%{version}-%{build_timestamp}" > %{buildroot}%{_sysconfdir}/%{appname}/version
@ -90,7 +98,7 @@ echo "v%{version}-%{build_timestamp}" > %{buildroot}%{_sysconfdir}/%{appname}/ve
%postun %postun
%systemd_postun_with_restart %{appname}.service %systemd_postun_with_restart %{appname}.service
### Desktop # Desktop
%post desktop %post desktop
%systemd_post %{appname}-desktop.service %systemd_post %{appname}-desktop.service
@ -123,12 +131,24 @@ echo "v%{version}-%{build_timestamp}" > %{buildroot}%{_sysconfdir}/%{appname}/ve
%changelog %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 * Sun Nov 17 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-16.20191117gitaef8af6
- Update to latest git snapshot - Update to latest git snapshot
* Mon Oct 14 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-15.20191005git2a3209c * Mon Oct 14 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-15.20191005git2a3209c
- Update to latest git snapshot - 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 * Thu Sep 19 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-14.20190919git286ed84
- Update to latest git snapshot - 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 * Sat Aug 31 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.1-5.20190831gitf3baa58
- Initial package - Initial package