This repository has been archived by the owner on May 13, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version of release packaging using COPR/PPA
This is based on similar changes made for ponyc. See: ponylang/ponyc#2726 This commit has the initial version of release packaging using Fedora COPR and Ubuntu Launchpad PPA services. The biggest limitation is that for Fedora COPR, the API tokens expire every 180 days and need to be regenerated and updated manually. This is annoying but not especially hard to do. The current implementation only kicks off builds on COPR/PPA for releases. The current implementation relies on downloading the "official" snapshot tar.gz from github for the release that matches the value in the VERSION file: https://github.com/ponylang/pony-stable/archive/${VERSION}.tar.gz This is to ensure we're always using the right source code for a particular release. In theory, it should be relatively easy/painless to expand support to be able to do nightly snapshot builds. This url would be the main thing that needs to change along with deciding which version number to assign for a nightly build. The currently supported architecture is x86_64. The currently supported distributions are: * CentOS 7 * Fedora 26 * Fedora 27 * Fedora 28 * Fedora Rawhide * OpenSuSE Leap 15 (default llvm; not 3.9) * OpenSuse Tumbleweed (default llvm; not 3.9) * Ubuntu Trusty (stdlib regex tests are disabled) * Ubuntu Xenial * Ubuntu Artful * Ubuntu Bionic * Ubuntu Cosmic Fedora COPR also supports the Mageia distribution along with the i386/i586/ppc64le architectures. ARM architecture support is in the works and should become available in the near future. Future work could include expanding support for additional architectures, additional distributions, and/or nightly snapshot builds. The support for additional architectures and additional distributions would be dependent on similar work being completed for ponyc first.
- Loading branch information
Showing
10 changed files
with
185 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Source: pony-stable | ||
Maintainer: Pony Core Team <buildbot@pony.groups.io> | ||
Build-Depends: debhelper (>= 9.0.0), ponyc | ||
Priority: optional | ||
Standards-Version: 3.9.7 | ||
Section: devel | ||
|
||
Package: pony-stable | ||
Priority: optional | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends} | ||
Description: pony language dependency manager | ||
Dependency manager for the pony programming language. | ||
https://github.com/ponylang/pony-stable | ||
Pony is an open-source, actor-model, capabilities-secure, high performance programming language | ||
http://www.ponylang.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/make -f | ||
# See debhelper(7) (uncomment to enable) | ||
# output every command that modifies files on the build system. | ||
export DH_VERBOSE = 1 | ||
|
||
|
||
# see FEATURE AREAS in dpkg-buildflags(1) | ||
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all | ||
|
||
# see ENVIRONMENT in dpkg-buildflags(1) | ||
# package maintainers to append CFLAGS | ||
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic | ||
# package maintainers to append LDFLAGS | ||
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed | ||
|
||
dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1))) | ||
DEB_DISTRIBUTION = $(call dpkg_late_eval,DEB_DISTRIBUTION,dpkg-parsechangelog -SDistribution) | ||
|
||
MAKE_OPTIONS := prefix=/usr | ||
|
||
ifeq ($(DEB_HOST_ARCH),amd64) | ||
MAKE_OPTIONS += arch=x86-64 | ||
endif | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
env | ||
uname -m | ||
dh_auto_build -- $(MAKE_OPTIONS) | ||
|
||
override_dh_auto_install: | ||
dh_auto_install -- $(MAKE_OPTIONS) | ||
|
||
override_dh_auto_test: | ||
dh_auto_test -- $(MAKE_OPTIONS) | ||
|
||
# dh_make generated override targets | ||
# This is example for Cmake (See https://bugs.debian.org/641051 ) | ||
#override_dh_auto_configure: | ||
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
%global pony_stable_version %(ls %{_sourcedir} | egrep -o '[0-9]+\.[0-9]+\.[0-9]+' || cat ../../VERSION) | ||
%global release_version 1 | ||
|
||
%ifarch x86_64 | ||
%global arch_build_args arch=x86-64 | ||
%endif | ||
|
||
Name: pony-stable | ||
Version: %{pony_stable_version} | ||
Release: %{release_version}%{?dist} | ||
Packager: Pony Core Team <buildbot@pony.groups.io> | ||
Summary: Dependency manager for the pony programming language. | ||
# For a breakdown of the licensing, see PACKAGE-LICENSING | ||
License: BSD | ||
URL: https://github.com/ponylang/pony-stable | ||
Source0: https://github.com/ponylang/pony-stable/archive/%{version}.tar.gz | ||
BuildRequires: ponyc | ||
BuildRequires: make | ||
|
||
%description | ||
Dependency manager for the pony programming language. | ||
https://github.com/ponylang/pony-stable | ||
|
||
Pony is an open-source, actor-model, capabilities-secure, high performance programming language | ||
http://www.ponylang.org | ||
|
||
%global debug_package %{nil} | ||
|
||
%prep | ||
%setup | ||
|
||
%build | ||
make %{?arch_build_args} prefix=%{_prefix} %{?_smp_mflags} test | ||
|
||
%install | ||
make install %{?arch_build_args} prefix=%{_prefix} DESTDIR=$RPM_BUILD_ROOT | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%{_prefix}/bin/stable | ||
|
||
%changelog | ||
* Fri Jun 1 2018 Dipin Hora <dipin@wallaroolabs.com> 0.1.2-1 | ||
- Initial version of spec file |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters