Packages: added man page on rpm-based systems.

This commit is contained in:
Konstantin Pavlov 2021-03-24 18:45:45 +03:00
parent 4a2dcb46dd
commit d62192738f
2 changed files with 3 additions and 2 deletions

View file

@ -214,7 +214,7 @@ endif
rpmbuild/SOURCES/unit-$(VERSION).tar.gz:
cd ../.. && tar -czf pkg/rpm/rpmbuild/SOURCES/unit-$(VERSION).tar.gz \
--transform "s#^#unit-$(VERSION)/#" \
LICENSE NOTICE CHANGES README configure auto src test version go
LICENSE NOTICE CHANGES README configure auto src test version go docs/man/unitd.8.in
unit: check-build-depends-unit rpmbuild/SPECS/unit.spec rpmbuild/SOURCES/unit-$(VERSION).tar.gz
@echo "===> Building $@ package" ; \

View file

@ -98,7 +98,7 @@ Library and include files required for NGINX Unit modules development.
%install
%{__rm} -rf %{buildroot}
%{__ln_s} build-nodebug build
DESTDIR=%{buildroot} make unitd-install libunit-install
DESTDIR=%{buildroot} make unitd-install libunit-install manpage-install
%{__install} -m755 %{bdir}/build-debug/unitd \
%{buildroot}%{_sbindir}/unitd-debug
%{__install} -m644 %{bdir}/build-debug/libunit.a \
@ -205,6 +205,7 @@ BANNER
%dir %{_sharedstatedir}/unit
%dir %attr(0700,root,root) %{_localstatedir}/log/unit
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_mandir}/man8/unitd.8*
%files devel
%{_libdir}/libunit.a