This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support SUSE build on build.opensuse.org
This adds a SUSE-specific spec file (calamari-clients.suse.spec) and suse-tarball build target to the Makefile. Ordinarily, we'd want SUSE's build service to be able to do a complete build from source (think: make && make install invoked from a spec file), but the calamari-clients build uses `npm install` internally, which downloads various node dependencies at build time. Instances within SUSE's build service don't have network access, so there's no way this is going to work. Given these problems, the least-worst solution seems to be adding the suse-tarball build target, which a package maintainer can run from a source checkout on an openSUSE or SLES system to generate a suitable tarball, then that can be uploaded to the build service along with calamari-clients.suse.spec. Note that there's no real reason the suse-tarball target is SUSE-specific, except that it packs everything into /srv/www/calamari, to match SUSE's packaging guidelines for web apps. Signed-off-by: Tim Serong <tserong@suse.com>
- Loading branch information
Showing
3 changed files
with
72 additions
and
0 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
.git | ||
*.swp | ||
*.swo | ||
calamari-clients*.tar.gz | ||
**/.sass-cache | ||
**/.tmp | ||
**/dist | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# SUSE spec file for package calamari-clients | ||
# | ||
# Note that the SUSE build for calamari-clients requires that someone has | ||
# already generated a suitable tarball from the source tree by invoking | ||
# `make suse-tarball`. This will result in a tarball named similar to | ||
# calamari-clients-X.Y+git.TIMESTAMP.COMMIT.tar.gz. Don't bother with | ||
# `make rpm`, just use build.opensuse.org with this spec file and the | ||
# appropriate tarball. | ||
# | ||
# NOTE: You will have to edit the Version tag in this spec file to match | ||
# your tarball, once you've checked them in to the build service. | ||
# | ||
|
||
Name: calamari-clients | ||
Version: 1.2+git.TIMESTAMP.COMMIT | ||
Release: 0 | ||
License: MIT | ||
Summary: Calamari GUI front-end components | ||
Url: http://ceph.com/ | ||
Group: System/Filesystems | ||
Source0: %{name}-%{version}.tar.gz | ||
# Need BuildRequires calamari-server to avoid rpmlint warning about no package | ||
# owning /srv/www/calamari (other than that it serves no actual purpose at build | ||
# time). | ||
BuildRequires: calamari-server | ||
BuildRequires: fdupes | ||
Requires: calamari-server | ||
BuildArch: noarch | ||
%description | ||
Contains the JavaScript GUI content for the Calamari frontend components | ||
(dashboard, login screens, administration screens) | ||
|
||
%prep | ||
%setup -q %{name}-%{version} | ||
|
||
%build | ||
# Nothing to do here, this relies on a prebuilt tarball | ||
|
||
%install | ||
cp -a srv %{buildroot}/ | ||
%fdupes %{buildroot}/srv/www/calamari/content | ||
|
||
%files -n calamari-clients | ||
%defattr(-,root,root,-) | ||
/srv/www/calamari/content | ||
|
||
%changelog |