# 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