Skip to content

Commit

Permalink
Fixes #390 - Hide the .spec.rpm in a subdirectory as not to offend …
Browse files Browse the repository at this point in the history
…the Alpine and Debian fans among us (#392)
  • Loading branch information
jiridanek authored Apr 28, 2022
1 parent 80d6962 commit bcb46e9
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ jobs:
- uses: actions/checkout@v3

- name: Deploy the spec.rpkg file to /
run: ln -s packaging/skupper-router.spec.rpkg ./

- name: Install build dependencies (2/2)
run: |
rpkg spec --outdir /tmp/rpkg
Expand Down
38 changes: 38 additions & 0 deletions packaging/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
////
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License
////
= Packaging
== rpm
The `rpkg` tool expects to have a `spec.rpkg` file at the source root.
In order to build, first link the spec file to the expected location.
https://copr.fedorainfracloud.org/[COPR] builds can use the following script,
and configure `git rpkg` in the Build dependencies field.
[source,shell script]
----
#!/bin/bash
set -Exeuo pipefail
git clone --branch main https://github.com/skupperproject/skupper-router.git
ln -s ${PWD}/skupper-router/packaging/skupper-router.spec.rpkg ./skupper-router/
rpkg srpm --outdir ./ --spec ./skupper-router
----
File renamed without changes.

0 comments on commit bcb46e9

Please sign in to comment.