mirror of
https://github.com/Cacti/spine.git
synced 2026-11-02 18:17:27 +09:00
Fixes #439 Adds idiomatic RPM spec at packaging/rpm/spine.spec. To build: rpmbuild -ba packaging/rpm/spine.spec \ --define "_sourcedir \$(pwd)" \ --define "_builddir \$(pwd)/_build" Spec decisions: %autosetup, --bindir=%{_sbindir} so the binary lands in /usr/sbin without a post-install move, %attr(4755,root,root) for setuid in %files (no redundant %post chmod), %config(noreplace) spine.conf seeded from spine.conf.dist at install, man1 section matching upstream Makefile.am. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> Co-authored-by: netniV <netniv@hotmail.com>
To build an RPM from source:
rpmbuild -ba packaging/rpm/spine.spec \
--define "_sourcedir $(pwd)" \
--define "_builddir $(pwd)/_build"
Or install the spec to your rpmbuild tree:
cp packaging/rpm/spine.spec ~/rpmbuild/SPECS/
spectool -g -R packaging/rpm/spine.spec
rpmbuild -ba ~/rpmbuild/SPECS/spine.spec