Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
F
finesse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
finesse
finesse
Commits
45e94d6f
Commit
45e94d6f
authored
May 25, 2018
by
Daniel Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding rpm packaging
parent
5eede023
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
packaging/rpm/Dockerfile
packaging/rpm/Dockerfile
+11
-0
packaging/rpm/README
packaging/rpm/README
+5
-0
packaging/rpm/build.py
packaging/rpm/build.py
+26
-0
No files found.
packaging/rpm/Dockerfile
0 → 100644
View file @
45e94d6f
FROM
scientificlinux/sl:7
WORKDIR
/root
RUN
yum
-y
update
RUN
yum
-y
install
git rpm-build gcc gsl-devel make gcc-c++
RUN
git clone https://git.ligo.org/finesse/finesse.git
ADD
. /host
ENTRYPOINT
"python /root/finesse/packaging/rpm/build.py"
\ No newline at end of file
packaging/rpm/README
0 → 100644
View file @
45e94d6f
Builds an RPM package for the Finesse binary
Build docker image first:
docker build -t finesse/sl7 .
packaging/rpm/build.py
0 → 100644
View file @
45e94d6f
import
os
from
subprocess
import
call
os
.
chdir
(
"/root/finesse"
)
call
(
"git pull"
.
split
())
call
(
"./finesse.sh --build"
.
split
())
os
.
chdir
(
"/root/finesse/packaging/rpm"
)
call
(
"mkdir -p rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}"
.
split
())
with
open
(
".rpmmacros"
)
as
file
:
file
.
write
(
"""
%_topdir %(echo $HOME)/rpmbuild
%_tmppath %{_topdir}/tmp
"""
)
os
.
chdir
(
"/root/finesse/packaging/rpm/rpmbuild"
)
# mkdir finesse-{version}
# mkdir -p finesse-{version}/usr/bin
# mkdir -p finesse-{version}/etc/finesse
# install -m 755 toybinprog toybinprog-1.0/usr/bin
# install -m 644 toybinprog.conf toybinprog-1.0/etc/toybinprog/
# tar -zcvf toybinprog-1.0.tar.gz toybinprog-1.0/
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment