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/el8 #13

Open
wants to merge 9 commits into
base: el8
Choose a base branch
from
Open

rpm/el8 #13

wants to merge 9 commits into from

Conversation

nilce05
Copy link

@nilce05 nilce05 commented Mar 26, 2021

No description provided.

Nilce BOUSSAMBA added 3 commits March 26, 2021 11:22
This commit fix syntax error related to the
migration of python2 to python3
This allows to change #!/usr/bin/python interpreter
to #!/usr/bin/python3 (or python2) explicitly
to fix build errors
hpcstats.spec Outdated Show resolved Hide resolved
hpcstats.spec Outdated

%files -n hpcstats-utils
%config %{_datadir}/%{name}/bin/encode-password
%config %{_datadir}/%{name}/bin/sync-hpcstats-slurm-job-accounts

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see 3 scripts in the %description but only two scripts in the %files ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s a very good point.
From what I understand, the scripts in the %description section are mainly managed by the main program HPCStatsImporter.
What is described in the %files section does' nt necessarily reflect all scripts of the %description as in the case of the encode-password

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description and the content should match.
else it doesn't make sense?

hpcstats.spec Outdated Show resolved Hide resolved
@nilce05 nilce05 requested a review from granquet March 31, 2021 07:41
hpcstats.spec Outdated
%doc README.md
%{python3_sitelib}/HPCStats/*
%{python3_sitelib}/*%{name}*.egg-info
%config %{_bindir}/hpcstats
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%{_bindir} as %config seems dubious to me?

hpcstats.spec Outdated
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}/bin
install -d %{buildroot}/%{_datadir}/%{name}/db
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

general "style" comment (that is not worth fixing overall imho):
choose if you want to append a / between the folder variables or not.
ie: %{buildroot}/%{_datadir} or %{buildroot}%{_datadir}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants