diff --git a/build_ubi.sh b/build_ubi.sh index 965d007..51e4b35 100755 --- a/build_ubi.sh +++ b/build_ubi.sh @@ -10,4 +10,5 @@ printf "%%%s %s\n" \ rpmdev-setuptree sudo dnf builddep -y package.spec cp release_pkg.sh /src/SOURCES +cp changelog.spec /src/SOURCES rpmbuild --quiet -bb package.spec diff --git a/changelog-debian.toml b/changelog-debian.toml new file mode 100644 index 0000000..512cf64 --- /dev/null +++ b/changelog-debian.toml @@ -0,0 +1,27 @@ +[changelog] +body = """ca-certificates-st {% if version %}({{ version | trim_start_matches(pat="v") }}-1){% else %}unreleased{% endif %} stable; urgency=medium +{% for commit in commits %} + * {% if commit.scope %}*({{ commit.scope }})* {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }} +{%- endfor %} + + -- {% set release = commits | last %}{{ release.author.name }} <{{ release.author.email }}> {{ release.author.timestamp | date(format="%a, %d %b %Y %H:%M:%S +0000", timezone="UTC") }}\n +""" +trim = false +postprocessors = [] +output = "debian/changelog" + +[git] +conventional_commits = false +filter_unconventional = false +split_commits = false +commit_preprocessors = [ + # Replace issue numbers + #{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))"}, + # Check spelling of the commit with https://github.com/crate-ci/typos + # If the spelling is incorrect, it will be automatically fixed. + #{ pattern = '.*', replace_command = 'typos --write-changes -' }, +] +commit_parsers = [] +filter_commits = false +topo_order = false +sort_commits = "oldest" diff --git a/changelog-rhel.toml b/changelog-rhel.toml new file mode 100644 index 0000000..6ef2e05 --- /dev/null +++ b/changelog-rhel.toml @@ -0,0 +1,42 @@ +[changelog] +header = "%changelog" +body = """{% for commit in commits | reverse %} +* {{ commit.author.timestamp | date(format="%a %B %d %Y", timezone="UTC") }} {{ commit.author.name }} <{{ commit.author.email }}>{%if version%} {{ version }}{% endif %} + - {% if commit.scope %}*({{ commit.scope }})* {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }} +{%- endfor %} +""" +# template for the changelog footer +footer = "" +# remove the leading and trailing s +trim = true +# postprocessors +postprocessors = [ + # { pattern = '', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL +] +# render body even when there are no releases to process +# render_always = true +# output file path +output = "changelog.spec" + +[git] +# filter out the commits that are not conventional +filter_unconventional = false +# process each line of a commit as an individual commit +split_commits = false +# regex for preprocessing the commit messages +commit_preprocessors = [ + # Replace issue numbers + #{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))"}, + # Check spelling of the commit with https://github.com/crate-ci/typos + # If the spelling is incorrect, it will be automatically fixed. + #{ pattern = '.*', replace_command = 'typos --write-changes -' }, +] +# regex for parsing and grouping commits +commit_parsers = [ +] +# filter out the commits that are not matched by commit parsers +filter_commits = false +# sort the tags topologically +topo_order = false +# sort the commits inside sections by oldest/newest order +sort_commits = "oldest" diff --git a/changelog.spec b/changelog.spec new file mode 100644 index 0000000..5e30ee0 --- /dev/null +++ b/changelog.spec @@ -0,0 +1,22 @@ +%changelog + +* Sun May 04 2025 Sebastian Tobie v1.3 +- automated the changelog using git-cliff +* Sun May 04 2025 Sebastian Tobie v1.3 +- added old ca +* Sun May 04 2025 Sebastian Tobie v1.2 +- release 1.2 +* Sun May 04 2025 Sebastian Tobie v1.2 +- adjusted the build.pkg file to copy files into the container and only modify the packages directory +* Sun May 04 2025 Sebastian Tobie v1.2 +- created the specfile for rhel based distros +* Sun May 04 2025 Sebastian Tobie v1.2 +- fixed the permissions of build_archlinux.sh +* Sun May 04 2025 Sebastian Tobie v1.2 +- removed the unnessesary subdirectory +* Sat May 03 2025 Sebastian Tobie v1.2 +- moving the arch packages instead of copying +* Sat March 08 2025 Sebastian Tobie v1.2 +- added debian build data +* Sat March 08 2025 Sebastian Tobie v1.0 +- arch package build working diff --git a/debian/changelog b/debian/changelog index 17fb5d7..f2a74c8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,18 +1,25 @@ +ca-certificates-st (1.3-1) stable; urgency=medium + + * added old ca + * automated the changelog using git-cliff + + -- Sebastian Tobie Sun, 04 May 2025 20:49:46 +0000 + ca-certificates-st (1.2-1) stable; urgency=medium + * added debian build data * moving the arch packages instead of copying * removed the unnessesary subdirectory * fixed the permissions of build_archlinux.sh * created the specfile for rhel based distros * adjusted the build.pkg file to copy files into the container and only modify the packages directory - * release 1.2-1 + * release 1.2 - -- Sebastian Tobie Sun, 04 May 2025 16:32:57 +0000 + -- Sebastian Tobie Sun, 04 May 2025 16:09:32 +0000 -ca-certificates-st (1.0-1) unstable; urgency=medium +ca-certificates-st (1.0-1) stable; urgency=medium - [ Sebastian Tobie ] - * Initial release. * arch package build working - -- Sebastian Tobie Sat, 03 May 2025 20:48:30 +0000 + -- Sebastian Tobie Sat, 08 Mar 2025 08:28:04 +0000 + diff --git a/package.spec b/package.spec index 682ea71..695fbfa 100644 --- a/package.spec +++ b/package.spec @@ -1,7 +1,8 @@ Name: ca-certificates-st Version: 1.2 Release: 1 -Source: release_pkg.sh +Source0: release_pkg.sh +Source1: changelog.spec License: Propietary BuildArch: noarch Requires: ca-certificates @@ -14,6 +15,7 @@ Meine Zertifikate %prep %setup -T -c cp %SOURCE0 . +cp %SOURCE1 . %build ./release_pkg.sh