Skip to content

Commit

Permalink
Simplify update script inclusion in SPEC file
Browse files Browse the repository at this point in the history
Simplify update script inclusion in SPEC file by matching on wildcard.
This will help avoid ommitting files in future (as was almost the case
here where the 1.6.2 script was missing from the file section).
  • Loading branch information
tofu-rocketry committed Apr 23, 2018
1 parent abd9e76 commit 0b9a8ad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apel.spec
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ cp schemas/server-extra.sql %{buildroot}%_datadir/apel/
cp schemas/cloud.sql %{buildroot}%_datadir/apel/
cp schemas/storage.sql %{buildroot}%_datadir/apel/

cp scripts/update-1.5.1-1.6.0.sql %{buildroot}%_datadir/apel/
cp scripts/update-1.6.0-1.6.1.sql %{buildroot}%_datadir/apel/
cp scripts/update-1.6.1-1.6.2.sql %{buildroot}%_datadir/apel/
# All update scripts matched by wildcard
cp scripts/update-*.sql %{buildroot}%_datadir/apel/

# accounting scripts
cp scripts/slurm_acc.sh %{buildroot}%_datadir/apel/
Expand Down Expand Up @@ -175,8 +174,8 @@ exit 0
%_datadir/apel/server-extra.sql
%_datadir/apel/cloud.sql
%_datadir/apel/storage.sql
%_datadir/apel/update-1.5.1-1.6.0.sql
%_datadir/apel/update-1.6.0-1.6.1.sql
# Include all update scripts by wildcard matching
%_datadir/apel/update-*.sql

%attr(755,root,root) %_datadir/apel/msg_status.py
%exclude %_datadir/apel/msg_status.pyc
Expand Down

0 comments on commit 0b9a8ad

Please sign in to comment.