{"id":28958773,"url":"https://github.com/ericwq/rpms","last_synced_at":"2025-06-23T23:07:06.593Z","repository":{"id":230318760,"uuid":"779068250","full_name":"ericwq/rpms","owner":"ericwq","description":"build rpm for public repository","archived":false,"fork":false,"pushed_at":"2024-04-13T22:32:08.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T00:23:35.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericwq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-29T01:08:01.000Z","updated_at":"2024-04-15T05:57:25.519Z","dependencies_parsed_at":"2024-04-13T23:29:49.111Z","dependency_job_id":null,"html_url":"https://github.com/ericwq/rpms","commit_stats":null,"previous_names":["ericwq/rpms"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ericwq/rpms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwq%2Frpms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwq%2Frpms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwq%2Frpms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwq%2Frpms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericwq","download_url":"https://codeload.github.com/ericwq/rpms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwq%2Frpms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261571674,"owners_count":23178769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-23T23:07:05.447Z","updated_at":"2025-06-23T23:07:06.562Z","avatar_url":"https://github.com/ericwq.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Note: this project has been moved to [codeberg.org](https://codeberg.org/ericwq/rpms)**.\n\n# for rpm pacakge user\n\ncurrently, the repo is served by github pages. first you need to import public key to rpm DB.\n```sh\nrpm --import https://ericwq.codeberg.page/skarnet/RPM-GPG-KEY-wangqi\n```\nthen add the new repo to dnf. you can check dnf repo list before and after.\n```sh\ndnf repolist\ncurl -s https://ericwq.codeberg.page/skarnet/skarnet.repo | tee /etc/yum.repos.d/skarnet.repo\ndnf repolist\n```\nor you can use the following command to add new repo.\n```sh\ndnf config-manager --add-repo https://ericwq.codeberg.page/skarnet/skarnet.repo\n```\nenjoy the skarnet rpms!\n\n# rpms\n\nThis project contains rpm spec and instructions to build rpm packages for Fedora, Centos, Redhat. Now it contains rpm spec for: [skalibs](https://skarnet.org/software/skalibs), [execline](https://skarnet.org/software/execline), [s6](https://skarnet.org/software/s6/), [s6-dns](https://skarnet.org/software/s6-dns/), [s6-networking](https://skarnet.org/software/s6-networking/), [s6-rc](https://skarnet.org/software/s6-rc/), [tipidee](https://skarnet.org/software/tipidee/).\n\nWith the help of fedora linux container, you can reproduce the rpm building process as you follow the instruction. The container is created according to [RPM Packaging Guide](https://rpm-packaging-guide.github.io/#introduction).\n\n The container contains:\n- the container is based on fedora:39.\n- packages `gcc rpm-build rpm-devel rpmlint make python bash coreutils diffutils patch rpmdevtools`.\n- packages `sudo dnf-plugins-core tree git wget which ripgrep fzf pkgconfig`.\n- packages `mock mock-scm createrepo_c`, refer to [Building package using Mock](https://developer.fedoraproject.org/deployment/rpm/about.html).\n- `packager` user is created and added to sudo list.\n- PID 1 is `/sbin/init`.\n\n## requirement\nTo reproduce the buing process, you need `git` and `docker` on your local system.\n\n## prepare the container\nBuild the container first. Note: only one of the `docker build` is needed. The main difference is the former will use docker cache.\n```sh\ngit clone https://github.com/ericwq/rpms.git\ncd rpms\ndocker build -t rpm-builder:0.2.1 -f fedora.dockerfile .\ndocker build --no-cache --progress plain -t rpm-builder:0.2.1 -f fedora.dockerfile .\n```\n## run the container\nRun the container as packager user. Note: here I mount the local directory:`/Users/qiwang/dev` to the container's directory `/home/packager/develop`. This container also setup the timezone to shanghai,PRC. You can change it to mount your local directory and timezone.\n\nstart the container as daemon.\n```sh\ndocker run --env TZ=Asia/Shanghai --tty --privileged --volume /sys/fs/cgroup:/sys/fs/cgroup:rw \\\n    --mount source=proj-vol,target=/home/packager/proj \\\n    --mount type=bind,source=/Users/qiwang/dev,target=/home/packager/develop \\\n    -h rpm-builder --name rpm-builder -d -p 80:80 \\\n    rpm-builder:0.2.1\n```\n\nlogin the container as packager or root.\n```sh\ndocker exec -u packager -it rpm-builder bash\ndocker exec -u root -it rpm-builder bash\n```\n\n## build rpm packages\nNext, follow the instructions for individual project. Note, you must follow the following order (top -\u003e down) to build indivial rpm packages, there are dependency rule.\n- [skalibs](skalibs/readme.md)👌\n- [execline](execline/readme.md)👌\n- [s6](s6/readme.md)👌\n- [utmps](utmps/readme.md)❌\n- [s6-dns](s6-dns/readme.md)👌\n- [s6-networking](s6-networking/readme.md)👌\n- [s6-rc](s6-rc/readme.md)👌\n- [tipidee](tipidee/readme.md)👌\n\n## hosting rpm packages via yum/dnf repo\nfollow the instructions in [this document](sign.md) to build yum repo. Note I setup tipidee (web server) to serve yum/dnf repo for dnf.\n\nimport public key to rpm DB, check dnf repo list.\n```sh\nrpm --import https://ericwq.github.io/rpms/repo/RPM-GPG-KEY-wangqi\ndnf repolist\n```\nadd the new repo to dnf. run one of the following command.\n```sh\nsudo dnf config-manager --add-repo https://ericwq.github.io/rpms/repo/skarnet.repo\ncurl -s https://ericwq.github.io/rpms/repo/skarnet.repo | tee /etc/yum.repos.d/skarnet.repo\n\n```\n## license\n[ISC](https://en.wikipedia.org/wiki/ISC_license)\n\n## reference\n- [s6 packaging for debian](https://github.com/multiplexd/s6-packaging)\n- [How to handle dynamic and static libraries in Linux](https://opensource.com/article/20/6/linux-libraries)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericwq%2Frpms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericwq%2Frpms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericwq%2Frpms/lists"}