Compare commits

...
Sign in to create a new pull request.

12 commits

Author SHA1 Message Date
Miro Hrončok
53b25ee1ca Orphaned for 6+ weeks 2023-05-25 08:32:48 +02:00
Fedora Release Engineering
39585ec2be Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 07:04:49 +00:00
Benjamin A. Beasley
eabaf636d1 Leaf package: remove i686 support 2022-12-22 13:04:38 -05:00
Benjamin A. Beasley
501f666690 Indicate dirs. in files lists with trailing slashes 2022-12-22 13:04:20 -05:00
Benjamin A. Beasley
6e83e81862 Confirm License is SPDX Unlicense 2022-11-29 14:31:27 -05:00
Fedora Release Engineering
88a37fe472 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 12:43:01 +00:00
Benjamin A. Beasley
50b2a29037 Fix virtual Provides 2022-04-22 15:12:26 -04:00
Benjamin A. Beasley
1ff3a27b67 Drop “forge” macros to modernize snapshot versioning 2022-04-20 10:43:57 -04:00
Fedora Release Engineering
bca7bf9fd5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 04:44:53 +00:00
Benjamin A. Beasley
1740f1dcd5 Let -devel subpackage be noarch 2021-12-16 20:44:54 -05:00
Benjamin A. Beasley
6b61cea2fe Reduce macro indirection in the spec file 2021-11-13 15:37:03 -05:00
Benjamin A. Beasley
be74236d56 Opt in to rpmautospec 2021-07-21 16:36:30 -04:00
5 changed files with 1 additions and 125 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
/wyhash-wyhash_final.tar.gz

View file

@ -1,3 +0,0 @@
# wyhash
The wyhash package

1
dead.package Normal file
View file

@ -0,0 +1 @@
Orphaned for 6+ weeks

View file

@ -1 +0,0 @@
SHA512 (wyhash-wyhash_final.tar.gz) = 8f71005a478cbc65fc0c9314620cbbfd42c1fc76d114771f5d8cf82424727116803ff7f8ded2d8abef664f87424676d07f5fe7f6b8084c9e9141dbe96b4af8f4

View file

@ -1,120 +0,0 @@
Name: wyhash
Summary: No hash function is perfect, but some are useful
%global forgeurl https://github.com/wangyi-fudan/%{name}
%global tag %{name}_final
%forgemeta
# Upstream has haphazard versioning: after going through “v1”-“v6”, they
# selected a version “final1”, and are now working on “final2”. They also keep
# all old versions in the git repository. We will package only based on the
# “final” version numbers. When “final2” is released, this package will move
# forward to that version, with “final1” offered in a parallel-installable
# compat package,
Version: final1
# Note that the forgemeta macro prepends commit information to the dist macro.
Release: 1%{?dist}
URL: %{forgeurl}
Source0: %{forgesource}
License: Unlicense
BuildRequires: gcc-c++
BuildRequires: make
# We need the delimiter in the “compat” version because the name ends, and the
# version starts, with a letter. See
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#multiple.
%global compat_name %{name}_%{version}
# No compiled code is installed, so this would be empty.
%global debug_package %{nil}
%global common_description %{expand:
No hash function is perfect, but some are useful.
wyhash and wyrand are the ideal 64-bit hash function and PRNG respectively:
solid: wyhash passed SMHasher, wyrand passed BigCrush, practrand.
portable: 64-bit/32-bit system, big/little endian.
fastest: Efficient on 64-bit machines, especially for short keys.
simplest: In the sense of code size.}
%description %{common_description}
%package devel
Summary: %{summary}
# Since this is a header-only library, dependent packages must require one of
# the -static virtual Provides.
Provides: %{name}-static = %{version}-%{release}
Provides: %{compat_name}-devel = %{version}-%{release}
Provides: %{compat_name}-devel%{?_isa} = %{version}-%{release}
Provides: %{compat_name}-static = %{version}-%{release}
%description devel %{common_description}
Dependent packages that require version %{version} in particular should use the
virtual Provides for %{compat_name}-devel/%{compat_name}-static, and should add
-I%{_includedir}/%{compat_name} to their compiler flags.
%package doc
Summary: Documentation for %{name}
BuildArch: noarch
%description doc %{common_description}
%prep
%forgeautosetup
# Build the tests with the distributions preferred flags
sed -r -i \
-e 's/ -O3\b//g' \
-e 's/ -march=native\b/ \$\(CXXFLAGS\) \$\(LDFLAGS\)/g' \
makefile
%build
%set_build_flags
# We build only the test executable, not the benchmarks.
%make_build test_vector CXX="${CXX-g++}"
%install
# We install only the main wyhash header; others, like wyhash32 and o1hash, are
# not yet properly versioned. We put it in a subdirectory of _includedir for
# parallel-installability; dependent packages requiring particular versions
# will have to adjust their CFLAGS.
install -D -p -m 0644 -t %{buildroot}%{_includedir}/%{compat_name} %{name}.h
# For this package, which tracks the latest version, we also allow the header
# to be used without adding the subdirectory to the CFLAGS.
ln -s %{compat_name}/%{name}.h %{buildroot}%{_includedir}/%{name}.h
%check
./test_vector
%files devel
%license LICENSE
%{_includedir}/%{compat_name}
%{_includedir}/%{name}.h
%files doc
%license LICENSE
%doc README.md
# An academic paper on the algorithm:
%doc *.docx
%changelog
* Sat Mar 06 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.20210306gitfinal
- Initial package