summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2018-02-28 09:31:38 +0000
committerAndrei Belov <defan@nginx.com>2018-02-28 09:31:38 +0000
commitf2090bce21e4fb47d11f992a76ef5c4da74c3233 (patch)
tree3e3b0e8b0da8f4955a883a0879bb898ff2c3fe9a /pkg/rpm/Makefile
parent2d2b5048bc2150ed9abe7f0f24372442e277b738 (diff)
downloadunit-f2090bce21e4fb47d11f992a76ef5c4da74c3233.tar.gz
unit-f2090bce21e4fb47d11f992a76ef5c4da74c3233.tar.bz2
Packages: added Fedora support.
Tested on currently supported releases: Fedora 26, Fedora 27.
Diffstat (limited to 'pkg/rpm/Makefile')
-rw-r--r--pkg/rpm/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index 0373a52d..718b475d 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -22,6 +22,8 @@ else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1330 -a 0%{?is_opensu
OSVER = opensuse-tumbleweed
else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1315 -a 0%{?is_opensuse} -eq 0'`; echo $$?), 0)
OSVER = sles
+else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 26'`; echo $$?),0)
+OSVER = fedora
endif
BUILD_DEPENDS_unit = gcc rpm-build rpmlint
@@ -82,6 +84,14 @@ include Makefile.python34
include Makefile.perl
endif
+ifeq ($(OSVER), fedora)
+include Makefile.php
+include Makefile.python27
+include Makefile.python36
+include Makefile.go
+include Makefile.perl
+endif
+
CONFIGURE_ARGS=\
--prefix=/usr \
--state=%{_sharedstatedir}/unit \