2020-10-08 13:45:40 +00:00
|
|
|
# vim: syntax=spec
|
|
|
|
|
|
|
|
Name: rpm-git-tag-sort
|
|
|
|
Version: 1.0
|
2022-07-23 01:01:30 +00:00
|
|
|
Release: 8%{?dist}
|
2020-10-08 13:45:40 +00:00
|
|
|
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
|
|
|
|
|
2021-01-08 20:53:44 +00:00
|
|
|
BuildRequires: make
|
2020-10-08 13:45:40 +00:00
|
|
|
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
|
2022-07-23 01:01:30 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-02-20 18:17:40 +00:00
|
|
|
* Sun Feb 20 2022 Igor Raits <igor.raits@gmail.com> - 1.0-7
|
|
|
|
- Rebuild for libgit2 1.4.x
|
|
|
|
|
2022-01-21 18:01:39 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-28 14:21:02 +00:00
|
|
|
* Sun Nov 28 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.0-5
|
|
|
|
- Rebuild for libgit2 1.3.x
|
|
|
|
|
2021-07-23 11:35:40 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-27 15:26:59 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-28 18:00:32 +00:00
|
|
|
* Mon Dec 28 19:00:32 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.0-2
|
|
|
|
- Rebuild for libgit2 1.1.x
|
|
|
|
|
2020-10-08 13:45:40 +00:00
|
|
|
* 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
|