Skip to content

Commit e850038

Browse files
cursoragentlovasoa
andcommitted
Fix RPM packaging: use tilde for pre-releases
Co-authored-by: contact <[email protected]>
1 parent d3601b4 commit e850038

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/packages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ jobs:
120120
- name: Update spec file version
121121
run: |
122122
VERSION=$(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
123-
sed -i "s/^Version:.*/Version: ${VERSION}/" rpm/sqlpage.spec
123+
# RPM doesn't allow hyphens in Version field, convert to tilde for pre-releases
124+
RPM_VERSION=$(echo "$VERSION" | sed 's/-/~/')
125+
sed -i "s/^Version:.*/Version: ${RPM_VERSION}/" rpm/sqlpage.spec
124126
cp rpm/sqlpage.spec ~/rpmbuild/SPECS/
125127
126128
- name: Create source tarball

PACKAGING_CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ When a version tag (v*) is pushed:
171171
### Version Scheme
172172

173173
- **DEB:** `0.38.0~beta.1-1` (tilde for pre-release ordering)
174-
- **RPM:** `0.38.0-0.1.beta.1` (0.1 for beta releases)
175-
- Both sync with `Cargo.toml` version
174+
- **RPM:** `0.38.0~beta.1-1` (tilde for pre-release, RPM doesn't allow hyphens in Version)
175+
- Both sync with `Cargo.toml` version, converting hyphens to tildes for package compatibility
176176

177177
### Future Enhancements (Not Implemented)
178178

debian/compat

Lines changed: 0 additions & 1 deletion
This file was deleted.

rpm/sqlpage.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: sqlpage
2-
Version: 0.38.0
3-
Release: 0.1.beta.1%{?dist}
2+
Version: 0.38.0~beta.1
3+
Release: 1%{?dist}
44
Summary: SQL-only webapp builder
55

66
License: MIT
@@ -114,7 +114,7 @@ fi
114114
%dir %attr(750,sqlpage,sqlpage) /var/log/sqlpage
115115

116116
%changelog
117-
* Thu Oct 02 2025 SQLPage Contributors <[email protected]> - 0.38.0-0.1.beta.1
117+
* Thu Oct 02 2025 SQLPage Contributors <[email protected]> - 0.38.0~beta.1-1
118118
- Initial RPM package release
119119
- SQL-only webapp builder with support for multiple databases
120120
- Includes systemd service configuration

scripts/validate-packaging.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ if [ -d "debian" ]; then
4747
"debian/control"
4848
"debian/rules"
4949
"debian/changelog"
50-
"debian/compat"
5150
"debian/copyright"
5251
)
5352

0 commit comments

Comments
 (0)