Skip to content

Commit

Permalink
add hpcstats-fsquota package and fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilce BOUSSAMBA committed Apr 9, 2021
1 parent 1bd79cd commit 2bb4ce2
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions hpcstats.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: hpcstats
Version: 1.6.3
Version: 1.6.4
Release: 1%{?dist}.edf
Summary: HPC cluster usage accounting and reporting software

Expand Down Expand Up @@ -31,9 +31,9 @@ CFLAGS="%{optflags}" python3 setup.py build
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}/bin
install -d %{buildroot}/%{_datadir}/%{name}/db
install -d %{buildroot}%{_datadir}/%{name}/db

cp -r db/* %{buildroot}/%{_datadir}/%{name}/db
cp -r db/* %{buildroot}%{_datadir}/%{name}/db

cp conf/hpcstats.conf %{buildroot}%{_sysconfdir}/%{name}
cp conf/architecture.conf %{buildroot}%{_sysconfdir}/%{name}
Expand All @@ -42,6 +42,8 @@ cp conf/architecture.conf %{buildroot}%{_sysconfdir}/%{name}
install contribs/fsusage %{buildroot}%{_datadir}/%{name}/bin
cp conf/fsusage.conf %{buildroot}%{_sysconfdir}/%{name}

install contribs/fsquota %{buildroot}%{_datadir}/%{name}/bin
cp conf/fsquota.conf %{buildroot}%{_sysconfdir}/%{name}

install contribs/jobstats %{buildroot}%{_datadir}/%{name}/bin
install contribs/jobstats.tpl.sh %{buildroot}%{_datadir}/%{name}/bin
Expand All @@ -59,9 +61,9 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%doc README.md
%{python3_sitelib}/HPCStats/*
%{python3_sitelib}/*%{name}*.egg-info
%config %{_bindir}/hpcstats
/usr/lib/python3.*/site-packages/HPCStats/*
/usr/lib/python3.*/site-packages/*%{name}*.egg-info
%{_bindir}/hpcstats
%config %{_sysconfdir}/%{name}/%{name}.conf
%config %{_sysconfdir}/%{name}/architecture.conf
%config %{_datadir}/%{name}/db/*
Expand Down Expand Up @@ -101,6 +103,17 @@ This agent is typically installed on HPC cluster frontend to log in a CSV file t
%config %{_sysconfdir}/%{name}/fsusage.conf
%{_datadir}/%{name}/bin/fsusage

%package -n hpcstats-fsquota-agent
Summary: FSQuota agent of HPC cluster usage accounting software
Requires: python3

%description -n hpcstats-fsquota-agent
This agent is typically installed on HPC cluster frontend to log in a CSV file the detailed usage and quota per user of file systems.

%files -n hpcstats-fsquota-agent
%config %{_sysconfdir}/%{name}/fsquota.conf
%{_datadir}/%{name}/bin/fsquota

%package -n hpcstats-utils
Summary: Various utilities of HPC cluster usage accounting software
Requires: python3
Expand All @@ -118,5 +131,7 @@ Set of various utilities for HPCStats accounting software:


%changelog
* Fri Apr 09 2021 Nilce BOUSSAMBA <[email protected]>
- add package hpcstats-fsquota-agent
* Thu Mar 18 2021 Nilce BOUSSAMBA <[email protected]>
- first rpm package

0 comments on commit 2bb4ce2

Please sign in to comment.