Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM packages #51

Closed
AaronTHolt opened this issue Jul 23, 2015 · 5 comments
Closed

RPM packages #51

AaronTHolt opened this issue Jul 23, 2015 · 5 comments

Comments

@AaronTHolt
Copy link

It is currently very difficult to get Slurm-web running on anything that isn't debian. An rpm would fix this.

@rezib
Copy link
Contributor

rezib commented Jul 24, 2015

Yes, that's right, we've focused mainly on Debian because it is our main distrib in EDF. We would be pleased to get help from people used to RPM based distribs to write a proper spec file.

Currently, slurm-web is a native Debian package. That basically means the versions of the software and the deb packages are closely tighted. Maybe we could start by turning slurm-web repository into a distrib neutral software (by removing debian/ sub-directory) and then create 2 repos:

  • one for deb packaging with all Debian related specifics
  • another one for RPM packaging

What do you guys think about it?

@flegoff
Copy link

flegoff commented Jul 24, 2015

I would recommend a specific subdirectory that would include the different packaging manifests (/distribs?).​

Respository fragmentation will increase the cost of maintaining packages in the mean term.

@mehdid
Copy link

mehdid commented Jul 24, 2015

I don't agree on the difficulty not on the fact that slurm-web is Debian specific. It certainly requires someone with knowledge about RPM packaging, but that's not hard per se.
Besides, there is nothing in slurm-web's code which is Debian specific. The fact that we ship a debian directory can be ignored by users or RPM-based distros.
Having two repos can be a bit heavy to manage and the subdirectory cannot be implemented (AFAIK) since packaging tools expect specific files at the top directory of the project. One could easily imagine a branch per distribution though.
For the brave souls, here is the list of files provided by each debian binary package (up to version 1.1). If you mimick that in the .spec file, you'll have working RPMs:

slurm-web-dashboard:
/etc/apache2/conf-available/slurm-web-dashboard.conf
/usr/share/slurm-web/dashboard/css/dashboard.css
/usr/share/slurm-web/dashboard/static/logo.png
/usr/share/slurm-web/dashboard/js/slurm-dashboard.js
/usr/share/slurm-web/dashboard/index.html

slurm-web-restapi:
/etc/slurm-web/racks.xml
/etc/apache2/conf-available/slurm-web-restapi.conf
/usr/share/slurm-web/restapi/slurm-web-restapi.wsgi
/usr/share/slurm-web/restapi/slurmrestapi.py
/usr/share/slurm-web/restapi/schema/dtd/racks.dtd

@mehdid mehdid changed the title RHEL install RPM packages Jul 24, 2015
@mehdid mehdid modified the milestone: vX.Y Dec 2, 2015
@lachlansimpson
Copy link

(see #53 (comment) for current state of affairs)

@antanasb antanasb mentioned this issue Nov 27, 2019
@rezib
Copy link
Contributor

rezib commented Dec 1, 2021

Hi @AaronTHolt,

Slurm-web v2.4.0 has just been released with a spec file to build RPM for el8. Please give it a try!

Let me know if you see any reason to re-open this issue.

@rezib rezib closed this as completed Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants