mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
1.7 KiB
1.7 KiB
Build mscp as deb package
make build-deb produces a mscp deb package and related files. This
target builds mscp with debuild inside a docker container
(Dockerfile is docker/build-deb.Docerfile).
mkdir build && cd build && cmake ..
make build-deb
After that:
$ ls debbuild
mscp_0.1.3_amd64.build mscp_0.1.3_amd64.deb mscp-dbgsym_0.1.3_amd64.ddeb
mscp_0.1.3_amd64.buildinfo mscp_0.1.3.dsc
mscp_0.1.3_amd64.changes mscp_0.1.3.tar.xz
To publush mscp in launchpad PPA:
- write changes in
debian/changelogat main branch (the date command needed here isdate -R) - switch to
ppa-focalorppa-jammybranch - reblase to the
mainbranch and modifydebian/changes:- change
UNRELEASEDto the release name (focalorjammy).
- change
- run
make build-debat the build directory andcd debbuild - sign the files with
debsign -k [GPGKEYID] mscp_X.X.X~X_source.changes - upload the files with
dput ppa:upaa/mscp mscp_X.X.X~X_source.changes
Build mscp as (source) rpm package
make build-srpm produces a mscp src.rpm package. This target builts
mscp with rpmbuild inside a docker container (Dockerfile is
docker/build-srpm.Dockerfile, generated from
build-srpm.Dockerfile.in by cmake).
mkdir build && cd build && cmake ..
make build-srpm
After that:
$ ls *.rpm
mscp-0.1.3-1.el9.src.rpm
To publish mscp in COPR:
- download
mscp-X.X.X-1.yyy.src.rpm - upload the src.rpm to Build page at COPR.
Update Document
The docuemnt is doc/mscp.rst (at present). When mscp.1.in is
modified, run make update-rst to make it up to date.
mkdir build cd build && cmake ..
make update-rst