summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-05-16 17:22:40 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-05-16 17:22:40 +0400
commit3e06ae3b34fa1fb1aff15186ddd4588f4f5aa3b3 (patch)
treea655b564eb16cfd6064fabde59f134b5856b2678 /pkg/rpm
parent7662ec5f1bf27de981a8aa100ab2c5c3fa985269 (diff)
downloadunit-3e06ae3b34fa1fb1aff15186ddd4588f4f5aa3b3.tar.gz
unit-3e06ae3b34fa1fb1aff15186ddd4588f4f5aa3b3.tar.bz2
Packages: ship README.md and CONTRIBUTING.md.
Diffstat (limited to 'pkg/rpm')
-rw-r--r--pkg/rpm/Makefile2
-rw-r--r--pkg/rpm/unit.spec.in4
2 files changed, 4 insertions, 2 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index 011eba5b..73a111c8 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -223,7 +223,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 docs/man/unitd.8.in
+ LICENSE NOTICE CHANGES README.md CONTRIBUTING.md 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" ; \
diff --git a/pkg/rpm/unit.spec.in b/pkg/rpm/unit.spec.in
index f643b77f..4cbc7358 100644
--- a/pkg/rpm/unit.spec.in
+++ b/pkg/rpm/unit.spec.in
@@ -123,7 +123,9 @@ DESTDIR=%{buildroot} make unitd-install libunit-install manpage-install
%{buildroot}%{_datadir}/doc/unit/
%{__install} -m 644 -p NOTICE \
%{buildroot}%{_datadir}/doc/unit/COPYRIGHT
-%{__install} -m 644 -p README \
+%{__install} -m 644 -p README.md \
+ %{buildroot}%{_datadir}/doc/unit/
+%{__install} -m 644 -p CONTRIBUTING.md \
%{buildroot}%{_datadir}/doc/unit/
%{__rm} -rf %{buildroot}%{_initrddir}/