Skip to content

Commit

Permalink
fix(rpm): fix example config from spec, as it's installed by make
Browse files Browse the repository at this point in the history
  • Loading branch information
farzadghanei committed Jun 16, 2024
1 parent 0d4a349 commit abdd935
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ install: build
cp docs/man/chkok.1 $(DESTDIR)$(mandir)
mkdir -p $(DESTDIR)$(docsdir)
cp examples/config.yaml $(DESTDIR)$(docsdir)/example-config.yaml
cp README.rst $(DESTDIR)$(docsdir)/README.rst

uninstall:
rm -f $(DESTDIR)$(bindir)/chkok
rm -f $(DESTDIR)$(mandir)/chkok.1
rm -f $(DESTDIR)$(docsdir)/*yaml
rm -f $(DESTDIR)$(docsdir)/*
rmdir $(DESTDIR)$(docsdir)

clean:
Expand Down
4 changes: 2 additions & 2 deletions build/package/chkok.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Provides different running modes, useful for reporting to local and remote monit
%install
rm -rf $RPM_BUILD_ROOT
%make_install
cp -a examples/config.yaml example-config.yaml


%clean
Expand All @@ -40,9 +39,10 @@ rm -rf $RPM_BUILD_ROOT

%files
%license LICENSE
%doc README.rst example-config.yaml
%doc README.rst
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_docdir}/chkok/example-config.yaml


%changelog
Expand Down

0 comments on commit abdd935

Please sign in to comment.