Packages: added Fedora support.

Tested on currently supported releases: Fedora 26, Fedora 27.
This commit is contained in:
Andrei Belov
2018-02-28 09:31:38 +00:00
parent 2d2b5048bc
commit f2090bce21
3 changed files with 13 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1330 -a 0%{?is_opensu
OSVER = opensuse-tumbleweed OSVER = opensuse-tumbleweed
else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1315 -a 0%{?is_opensuse} -eq 0'`; echo $$?), 0) else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1315 -a 0%{?is_opensuse} -eq 0'`; echo $$?), 0)
OSVER = sles OSVER = sles
else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 26'`; echo $$?),0)
OSVER = fedora
endif endif
BUILD_DEPENDS_unit = gcc rpm-build rpmlint BUILD_DEPENDS_unit = gcc rpm-build rpmlint
@@ -82,6 +84,14 @@ include Makefile.python34
include Makefile.perl include Makefile.perl
endif endif
ifeq ($(OSVER), fedora)
include Makefile.php
include Makefile.python27
include Makefile.python36
include Makefile.go
include Makefile.perl
endif
CONFIGURE_ARGS=\ CONFIGURE_ARGS=\
--prefix=/usr \ --prefix=/usr \
--state=%{_sharedstatedir}/unit \ --state=%{_sharedstatedir}/unit \

View File

@@ -15,6 +15,8 @@ MODULE_SOURCES_python27= unit.example-python-app \
ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles)) ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles))
BUILD_DEPENDS_python27= python-devel BUILD_DEPENDS_python27= python-devel
else ifeq ($(OSVER), fedora)
BUILD_DEPENDS_python27= python2-devel
else else
BUILD_DEPENDS_python27= python27-devel BUILD_DEPENDS_python27= python27-devel
endif endif

View File

@@ -13,7 +13,7 @@ MODULE_INSTARGS_python36= python3.6-install
MODULE_SOURCES_python36= unit.example-python-app \ MODULE_SOURCES_python36= unit.example-python-app \
unit.example-python36-config unit.example-python36-config
ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles)) ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora))
BUILD_DEPENDS_python36= python3-devel BUILD_DEPENDS_python36= python3-devel
else else
BUILD_DEPENDS_python36= python36-devel BUILD_DEPENDS_python36= python36-devel