release 1.0

This commit is contained in:
clime 2020-10-08 15:45:40 +02:00 committed by Michal Novotný
parent 798e26d3e9
commit f5255d1313
3 changed files with 76 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/rpm-git-tag-sort-518db2f7.tar.gz
/rpm-git-tag-sort-c-vector-518db2f7.tar.gz

72
rpm-git-tag-sort.spec Normal file
View File

@ -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 <clime@fedoraproject.org> 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 <clime@fedoraproject.org> 0.1-1
- initial version

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (rpm-git-tag-sort-518db2f7.tar.gz) = c83299e246bde37e95b9a2c40e7a145794576566e6a4cb8c650203eaaa5d99a8619470ee649559e66c024ce2275309eb2c335ce40eb5756d7cfb3bf8ce7f6ab2
SHA512 (rpm-git-tag-sort-c-vector-518db2f7.tar.gz) = 3177557be969a3237bab5bdf2ec8c6d601994906c2d6da4ee8ad49d8f6b92610715557215f5abff85ab0373b0bb7640e429e290e8836b60477c8ea0a40177e0d