Use tilde versioning

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-11-27 14:23:23 +01:00
parent a6f5c49679
commit 106b09c956
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
2 changed files with 10 additions and 7 deletions

View File

@ -1,18 +1,18 @@
%global sover 2
%global with_tests 1
%global rc_ver 1
Summary: Portable Computing Language - an OpenCL implementation
Name: pocl
Version: 1.2
Release: 0.2.rc%{rc_ver}%{?dist}
%global ver 1.2-RC1
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(string.lower(ver))}
Release: 1%{?dist}
# The whole code is under MIT
# except include/utlist.h which is under BSD (and unbundled) and
# except lib/kernel/vecmath which is under GPLv3+ or LGPLv3+ (and unbundled in future)
License: MIT and BSD and (GPLv3+ or LGPLv3+)
URL: http://pocl.sourceforge.net
Source0: https://github.com/pocl/pocl/archive/v%{version}-RC%{rc_ver}.tar.gz
Source0: https://github.com/pocl/pocl/archive/v%{ver}/%{name}-%{version}.tar.gz
# FIXME: link
Patch1001: 0001-wrap-more-stuff-for-64-bit-atomics.patch
@ -59,7 +59,7 @@ superscalar,...).
%package devel
Summary: Portable Computing Language development files
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: ocl-icd-devel%{?_isa}
Requires: clang%{?_isa}
Requires: opencl-filesystem
@ -69,7 +69,7 @@ Requires: uthash-devel
Portable Computing Language development files.
%prep
%autosetup -p1 -n %{name}-%{version}-RC%{rc_ver}
%autosetup -p1 -n %{name}-%{ver}
# Unbundle uthash
find . -depth -name utlist* -print -delete
@ -132,6 +132,9 @@ popd
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Tue Nov 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2~rc1-1
- Use tilde versioning
* Wed Aug 15 2018 Tom Stellard <tstellar@redhat.com> - 1.2-0.2.rc1
- Update to 1.2-rc1

View File

@ -1 +1 @@
SHA512 (v1.2-RC1.tar.gz) = bcab03a478c3ffebce86ce632106ca2d5bcd9f5edb5f35b0df22d224c4fb45dd536d959c0e24a4a4997a8b2c9f1608a8d3a48319e4d2111376cbefe0e7084d80
SHA512 (pocl-1.2~rc1.tar.gz) = bcab03a478c3ffebce86ce632106ca2d5bcd9f5edb5f35b0df22d224c4fb45dd536d959c0e24a4a4997a8b2c9f1608a8d3a48319e4d2111376cbefe0e7084d80