Resolves: #1426929 - package systemd unit file
This commit is contained in:
parent
17c44c8758
commit
f4f870fdf7
12
nghttp2.spec
12
nghttp2.spec
@ -14,9 +14,11 @@ BuildRequires: CUnit-devel
|
|||||||
BuildRequires: c-ares-devel
|
BuildRequires: c-ares-devel
|
||||||
BuildRequires: libev-devel
|
BuildRequires: libev-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
Requires: libnghttp2%{?_isa} = %{version}-%{release}
|
Requires: libnghttp2%{?_isa} = %{version}-%{release}
|
||||||
|
%{?systemd_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the HTTP/2 client, server and proxy programs.
|
This package contains the HTTP/2 client, server and proxy programs.
|
||||||
@ -64,6 +66,8 @@ make %{?_smp_mflags} V=1
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
install -D -m0444 -p contrib/nghttpx.service \
|
||||||
|
"$RPM_BUILD_ROOT%{_unitdir}/nghttpx.service"
|
||||||
|
|
||||||
# not needed on Fedora/RHEL
|
# not needed on Fedora/RHEL
|
||||||
rm -f "$RPM_BUILD_ROOT%{_libdir}/libnghttp2.la"
|
rm -f "$RPM_BUILD_ROOT%{_libdir}/libnghttp2.la"
|
||||||
@ -75,6 +79,12 @@ rm -f "$RPM_BUILD_ROOT%{_datadir}/doc/nghttp2/README.rst"
|
|||||||
|
|
||||||
%postun -n libnghttp2 -p /sbin/ldconfig
|
%postun -n libnghttp2 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post nghttpx.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun nghttpx.service
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# test the just built library instead of the system one, without using rpath
|
# test the just built library instead of the system one, without using rpath
|
||||||
@ -92,6 +102,7 @@ make %{?_smp_mflags} check
|
|||||||
%{_mandir}/man1/nghttp.1*
|
%{_mandir}/man1/nghttp.1*
|
||||||
%{_mandir}/man1/nghttpd.1*
|
%{_mandir}/man1/nghttpd.1*
|
||||||
%{_mandir}/man1/nghttpx.1*
|
%{_mandir}/man1/nghttpx.1*
|
||||||
|
%{_unitdir}/nghttpx.service
|
||||||
|
|
||||||
%files -n libnghttp2
|
%files -n libnghttp2
|
||||||
%{_libdir}/libnghttp2.so.*
|
%{_libdir}/libnghttp2.so.*
|
||||||
@ -108,6 +119,7 @@ make %{?_smp_mflags} check
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Apr 03 2017 Kamil Dudka <kdudka@redhat.com> 1.21.0-1
|
* Mon Apr 03 2017 Kamil Dudka <kdudka@redhat.com> 1.21.0-1
|
||||||
- update to the latest upstream release (#1438364)
|
- update to the latest upstream release (#1438364)
|
||||||
|
- package systemd unit file (#1426929)
|
||||||
|
|
||||||
* Thu Feb 11 2016 Kamil Dudka <kdudka@redhat.com> 1.7.1-1
|
* Thu Feb 11 2016 Kamil Dudka <kdudka@redhat.com> 1.7.1-1
|
||||||
- update to the latest upstream release (fixes CVE-2016-1544)
|
- update to the latest upstream release (fixes CVE-2016-1544)
|
||||||
|
Loading…
Reference in New Issue
Block a user