From f5255d13131bf8445e8799a570d5cf522f96b08b Mon Sep 17 00:00:00 2001 From: clime Date: Thu, 8 Oct 2020 15:45:40 +0200 Subject: [PATCH] release 1.0 --- .gitignore | 2 ++ rpm-git-tag-sort.spec | 72 +++++++++++++++++++++++++++++++++++++++++++ sources | 2 ++ 3 files changed, 76 insertions(+) create mode 100644 .gitignore create mode 100644 rpm-git-tag-sort.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7da19eb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/rpm-git-tag-sort-518db2f7.tar.gz +/rpm-git-tag-sort-c-vector-518db2f7.tar.gz diff --git a/rpm-git-tag-sort.spec b/rpm-git-tag-sort.spec new file mode 100644 index 0000000..e7a724f --- /dev/null +++ b/rpm-git-tag-sort.spec @@ -0,0 +1,72 @@ +# vim: syntax=spec + +Name: rpm-git-tag-sort +Version: 1.0 +Release: 1%{?dist} +Summary: Sorts merged git annotated tags according to topology and rpm version sorting. +License: GPLv2+ +URL: https://pagure.io/rpm-git-tag-sort + +%if 0%{?fedora} || 0%{?rhel} > 6 +VCS: git+ssh://git@pagure.io/rpm-git-tag-sort.git#518db2f75cbd20679d0522604aa35e43a167bd03: +%endif + +# Sources is created by: +# git clone https://pagure.io/rpm-git-tag-sort.git +# cd rpm-git-tag-sort +# git checkout rpm-git-tag-sort-1.0-1 +# ./rpkg spec --sources +Source0: rpm-git-tag-sort-518db2f7.tar.gz +Source1: rpm-git-tag-sort-c-vector-518db2f7.tar.gz + +BuildRequires: gcc +BuildRequires: rpm-devel +BuildRequires: libgit2-devel + +# dynamically generated by rpm: +# Requires: libgit2 +# Requires: rpm-libs + +%description +Sorts git annotated tags of Name-Version-Release form +according to topology (primary criterion) and rpm +version sorting (secondary criterion). Outputs only +merged tags (i.e. those that reachable from the +current HEAD). + +%prep +%setup -T -b 0 -b 1 -q -n rpm-git-tag-sort +# move c-vector sources to the correct place +mv ../rpm-git-tag-sort-c-vector/* c-vector/ + +%build +%if 0%{?rhel} && 0%{?rhel} < 7 + sed -i 's/git_libgit2_init();/git_threads_init();/' main.c +%endif +%set_build_flags +%make_build +./test + +%install +%make_install + +%files +%{!?_licensedir:%global license %doc} +%license LICENSE +/usr/bin/rpm-git-tag-sort + +%changelog +* Mon Sep 14 2020 clime 1.0-1 +- switch order of input arguments (target_repo first, package name second) +- Update README.md +- use "source_indices" param in spec instead of "sources" due to change in rpkg- +util +- fix tag ids output to contain 40 chars instead of 39 +- fix package description and improve comment formatting +- update README.md +- add README.md with description and example usage +- add dot at the end of summary in spec +- requires on dynamic libs are automatically generated by rpm + +* Mon Jul 20 2020 clime 0.1-1 +- initial version diff --git a/sources b/sources new file mode 100644 index 0000000..da694f1 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (rpm-git-tag-sort-518db2f7.tar.gz) = c83299e246bde37e95b9a2c40e7a145794576566e6a4cb8c650203eaaa5d99a8619470ee649559e66c024ce2275309eb2c335ce40eb5756d7cfb3bf8ce7f6ab2 +SHA512 (rpm-git-tag-sort-c-vector-518db2f7.tar.gz) = 3177557be969a3237bab5bdf2ec8c6d601994906c2d6da4ee8ad49d8f6b92610715557215f5abff85ab0373b0bb7640e429e290e8836b60477c8ea0a40177e0d