Parcourir la source

updated 2 packages

xxhash-0.8.2-3

zlib-ng-2.1.7-1
Tomohiro "Tomo-p" KATO il y a 9 mois
Parent
commit
ddb225311f
2 fichiers modifiés avec 498 ajouts et 0 suppressions
  1. 220 0
      x/xxhash/xxhash-vl.spec
  2. 278 0
      z/zlib-ng/zlib-ng-vl.spec

+ 220 - 0
x/xxhash/xxhash-vl.spec

@@ -0,0 +1,220 @@
+Name:		xxhash
+Summary:	Extremely fast hash algorithm
+Version:	0.8.2
+Release:	3%{?_dist_release}
+Group:		system,accessories
+Vendor:		Project Vine
+Distribution:	Vine Linux
+
+#		The source for the library (xxhash.c and xxhash.h) is BSD-2-Clause
+#		The source for the command line tool (xxhsum.c) is GPL-2.0-or-later
+License:	BSD-2-Clause AND GPL-2.0-or-later
+URL:		https://www.xxhash.com/
+Source0:	https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
+
+BuildRequires:	make
+BuildRequires:	gcc
+BuildRequires:	doxygen
+
+%description
+xxHash is an Extremely fast Hash algorithm, running at RAM speed
+limits. It successfully completes the SMHasher test suite which
+evaluates collision, dispersion and randomness qualities of hash
+functions. Code is highly portable, and hashes are identical on all
+platforms (little / big endian).
+
+
+%package libs
+Summary:	Extremely fast hash algorithm - library
+Group:		system
+License:	BSD-2-Clause
+
+%description libs
+xxHash is an Extremely fast Hash algorithm, running at RAM speed
+limits. It successfully completes the SMHasher test suite which
+evaluates collision, dispersion and randomness qualities of hash
+functions. Code is highly portable, and hashes are identical on all
+platforms (little / big endian).
+
+
+%package devel
+Summary:	Extremely fast hash algorithm - development files
+Group:		programming
+License:	BSD-2-Clause
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
+# By setting XXH_INLINE_ALL, xxhash may be used as a header-only library.
+# Dependent packages that use xxhash this way must BR this virtual Provide:
+Provides:	%{name}-static = %{version}-%{release}
+
+%description devel
+Development files for the xxhash library
+
+
+%package doc
+Summary:	Extremely fast hash algorithm - documentation files
+Group:		documentation
+License:	BSD-2-Clause
+BuildArch:	noarch
+
+%description doc
+Documentation files for the xxhash library
+
+
+%debug_package
+
+
+%prep
+%setup -q -n xxHash-%{version}
+
+
+%build
+# Enable runtime detection of sse2/avx2/avx512 on intel architectures
+%ifarch %{ix86} x86_64
+%global dispatch 1
+# Some distribution variants build with -march=x86-64-v3.
+# See xxh_x86dispatch.c.
+%global moreflags_dispatch -DXXH_X86DISPATCH_ALLOW_AVX
+%else
+%global dispatch 0
+%global moreflags_dispatch %{nil}
+%endif
+
+%make_build \
+    MOREFLAGS="%{__global_cflags} %{?__global_ldflags} %{moreflags_dispatch}" \
+    DISPATCH=%{dispatch}
+doxygen
+
+
+%install
+%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
+rm %{buildroot}/%{_libdir}/libxxhash.a
+
+
+%check
+make check
+make test-xxhsum-c
+
+
+%files
+%license cli/COPYING
+%doc cli/README.md
+%{_bindir}/xxh*sum
+%{_mandir}/man1/xxh*sum.1*
+
+%files libs
+%license LICENSE
+%doc README.md
+%{_libdir}/libxxhash.so.*
+
+%files devel
+%{_includedir}/xxhash.h
+%{_includedir}/xxh3.h
+%{_libdir}/libxxhash.so
+%{_libdir}/pkgconfig/libxxhash.pc
+
+%files doc
+%doc doxygen/html
+
+
+%changelog
+* Tue May 07 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.8.2-3
+- initial built for Vine Linux.
+
+* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Sat Jul 22 2023 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.8.2-1
+- Update to version 0.8.2
+- Drop patch xxhash-epel7-ppc64le.patch
+- Use SPDX license identifiers
+
+* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+
+* Mon Jun 19 2023 Florian Weimer <fweimer@redhat.com> - 0.8.1-5
+- Enable building with -march=x86-64-v3 (#2215831)
+
+* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
+* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
+
+* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
+* Mon Nov 29 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.8.1-1
+- Update to version 0.8.1
+- Drop patch xxhash-pkgconfig-version.patch (accepted upstream)
+- Fix compilation on RHEL 7 ppc64le (gcc 4.8)
+- The x86 dispatch code now enables sse2 and avx2 separately, it can now use
+  sse2 on EPEL 7 without trying to use avx2 which is not supported by gcc 4.8
+- Add documentation package - doxygen mark-up was added
+
+* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
+* Thu Jun 10 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.8.0-3
+- Add virtual Provide for xxhash-static in xxhash-devel
+
+* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
+* Tue Jul 28 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.8.0-1
+- Update to version 0.8.0
+- Drop patches xxhash-compiler-warning-32-bit.patch (accepted upstream)
+  and xxhash-pkgconfig.patch (issue fixed upstream)
+- Fix empty version in .pc file
+
+* Fri Jul 24 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.4-2
+- Fix libdir in pkg-config file
+
+* Sat Jun 27 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.4-1
+- Update to version 0.7.4
+- Enable runtime detection of sse2/avx2/avx512 on intel architectures
+- Fix compiler warning for 32 bit architectures
+
+* Fri Mar 06 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.3-1
+- Update to version 0.7.3
+- Drop patch xxhash-gcc10-altivec.patch (accepted upstream)
+
+* Fri Feb 07 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.2-3
+- Fix ppc64le build with gcc 10
+
+* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Wed Oct 09 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.2-1
+- Update to version 0.7.2
+
+* Sat Aug 17 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.1-1
+- Update to version 0.7.1
+
+* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Mon Mar 18 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.0-1
+- Update to version 0.7.0
+
+* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Thu Apr 19 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.5-1
+- Update to version 0.6.5
+
+* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Wed Jan 03 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.4-1
+- Update to version 0.6.4
+- Drop previously backported patches
+
+* Thu Oct 19 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.3-2
+- Correct License tag (command line tool is GPLv2+)
+- Adjust Source tag to get a more descriptive tarfile name
+
+* Wed Oct 18 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.3-1
+- Initial packaging

+ 278 - 0
z/zlib-ng/zlib-ng-vl.spec

@@ -0,0 +1,278 @@
+%bcond_without compat
+%bcond_without sanitizers
+%bcond_with abitest
+
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
+
+# Compatible with the following zlib version.
+# see ZLIB_VERSION from https://github.com/zlib-ng/zlib-ng/blob/develop/zlib.h.in
+%global zlib_ver 1.3.1
+# Obsoletes zlib versions less than.
+%global zlib_obsoletes 1.3
+
+# ABI files for ix86 and s390x are not available upstream.
+%global supported_abi_test aarch64 ppc64le x86_64
+
+Name:		zlib-ng
+Summary:	Zlib replacement with optimizations
+Summary(ja):	最適化されたZlib代替パッケージ
+Version:	2.1.7
+Release:	1%{?_dist_release}
+Group:		system
+Vendor:		Project Vine
+Distribution:	Vine Linux
+
+License:	Zlib
+Url:		https://github.com/zlib-ng/zlib-ng
+Source0:	https://github.com/zlib-ng/zlib-ng/archive/%{version}/%{name}-%{version}.tar.gz
+Source99:	Changelog.fedora
+
+Patch:		far.diff
+
+BuildRequires:	cmake >= 3.1
+BuildRequires:	gcc-c++
+BuildRequires:	cmake(GTest) gmock
+%if %{with abitest}
+BuildRequires:	libabigail
+%endif
+%global __provides_exclude_from ^%{_libdir}/pkgconfig/zlib\.pc$
+
+%description
+zlib-ng is a zlib replacement that provides optimizations for "next generation"
+systems.
+
+
+%package	devel
+Summary:	Development files for %{name}
+Group:		programming
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description	devel
+The %{name}-devel package contains libraries and header files for developing
+application that use %{name}.
+
+
+%if %{with compat}
+
+%package	compat
+Summary:	Zlib implementation provided by %{name}
+Group:		system
+Provides:	zlib = %{zlib_ver}
+Provides:	zlib%{?_isa} = %{zlib_ver}
+Conflicts:	zlib%{?_isa}
+Obsoletes:	zlib < %{zlib_obsoletes}
+
+%description	compat
+zlib-ng is a zlib replacement that provides optimizations for "next generation"
+systems.
+The %{name}-compat package contains the library that is API and binary
+compatible with zlib.
+
+
+%package	compat-devel
+Summary:	Development files for %{name}-compat
+Group:		programming
+Requires:	%{name}-compat%{?_isa} = %{version}-%{release}
+Provides:	zlib-devel = %{zlib_ver}
+Provides:	zlib-devel%{?_isa} = %{zlib_ver}
+Conflicts:	zlib-devel%{?_isa}
+Obsoletes:	zlib-devel < %{zlib_obsoletes}
+Provides:	pkgconfig(zlib) = %{zlib_ver}.zlib-ng
+
+%description	compat-devel
+The %{name}-compat-devel package contains libraries and header files for
+developing application that use zlib.
+
+
+%package	compat-static
+Summary:	Static libraries for %{name}-compat
+Group:		programming
+Requires:	%{name}-compat-devel%{?_isa} = %{version}-%{release}
+Provides:	zlib-static = %{zlib_ver}
+Provides:	zlib-static%{?_isa} = %{zlib_ver}
+Conflicts:	zlib-static%{?_isa}
+Obsoletes:	zlib-static < %{zlib_obsoletes}
+
+%description	compat-static
+The %{name}-compat-static package contains static libraries needed for
+developing applications that use zlib.
+
+
+%package -n	compat32-zlib-ng-compat
+Summary:	Zlib replacement with optimizations (32bit)
+Summary(ja):	最適化されたZlib代替パッケージ (32bit)
+Group:		system,legacy
+Requires: zlib-ng-compat = %{version}-%{release}
+Provides:	compat32-zlib = %{zlib_ver}
+
+%description -n	compat32-zlib-ng-compat
+This package contains 32bit version of zlib-ng-compat.
+
+
+%package -n	compat32-zlib-ng-compat-devel
+Summary:	Development files for %{name}-compat (32bit)
+Summary(ja):	zlib-ng-compatを使ったプログラム開発に必要なヘッダファイル/ライブラリ (32bit)
+Group:		programming,legacy
+Requires:	zlib-ng-compat = %{version}-%{release}
+Requires:	zlib-ng-compat-devel = %{version}-%{release}
+Provides:	compat32-zlib-devel = %{zlib_ver}
+
+%description -n compat32-zlib-ng-compat-devel
+This package contains 32bit version of zlib-ng-compat-devel.
+
+%endif
+
+
+%debug_package
+
+
+%prep
+%autosetup -p1 -n %{name}-%{version}
+cp -f %{SOURCE99} ./
+
+
+%build
+cat <<_EOF_
+###########################################################################
+#
+# Build the default zlib-ng library
+#
+###########################################################################
+_EOF_
+
+# zlib-ng uses a different macro for library directory.
+%global cmake_param %{?with_sanitizers:-DWITH_SANITIZER=ON}
+
+# Setting __cmake_builddir is not necessary in this step, but do it anyway for symmetry.
+%global __cmake_builddir %{_vpath_builddir}
+%cmake %{cmake_param}
+%cmake_build
+
+%if %{with compat}
+cat <<_EOF_
+###########################################################################
+#
+# Build the compat mode library
+#
+###########################################################################
+_EOF_
+
+%global __cmake_builddir %{_vpath_builddir}-compat
+# defining BUILD_SHARED_LIBS disables the static library
+%undefine _cmake_shared_libs
+# Disable new strategies in order to keep compatibility with zlib.
+%cmake %{cmake_param} -DZLIB_COMPAT=ON -DWITH_NEW_STRATEGIES=OFF
+%cmake_build
+%endif
+
+
+%check
+cat <<_EOF_
+###########################################################################
+#
+# Run the zlib-ng tests
+#
+###########################################################################
+_EOF_
+
+%global __cmake_builddir %{_vpath_builddir}
+%ctest
+
+%ifarch ppc64le
+# Workaround Copr, that sets _target_cpu to ppc64le.
+%global target_cpu powerpc64le
+%else
+%global target_cpu %{_target_cpu}
+%endif
+
+%ifarch x86_64
+%global vendor pc
+%else
+%global vendor unknown
+%endif
+
+%if %{with abitest}
+%ifarch %{supported_abi_test}
+CHOST=%{target_cpu}-%{vendor}-linux-gnu sh test/abicheck.sh
+%endif
+%endif
+
+%if %{with compat}
+cat <<_EOF_
+###########################################################################
+#
+# Run the compat mode tests
+#
+###########################################################################
+_EOF_
+
+%global __cmake_builddir %{_vpath_builddir}-compat
+%ctest
+%if %{with abitest}
+%ifarch %{supported_abi_test}
+CHOST=%{target_cpu}-%{vendor}-linux-gnu sh test/abicheck.sh --zlib-compat
+%endif
+%endif
+%endif
+
+
+%install
+%global __cmake_builddir %{_vpath_builddir}
+%cmake_install
+
+%if %{with compat}
+%global __cmake_builddir %{_vpath_builddir}-compat
+%cmake_install
+%endif
+
+%files
+%license LICENSE.md
+%doc README.md Changelog.fedora
+%{_libdir}/libz-ng.so.*
+
+%files devel
+%{_includedir}/zconf-ng.h
+%{_includedir}/zlib-ng.h
+%{_includedir}/zlib_name_mangling-ng.h
+%{_libdir}/libz-ng.so
+%{_libdir}/pkgconfig/%{name}.pc
+%{_libdir}/cmake/zlib-ng/*
+
+%if %{with compat}
+%files compat
+%{_libdir}/libz.so.*
+
+%files compat-devel
+%{_includedir}/zconf.h
+%{_includedir}/zlib.h
+%{_includedir}/zlib_name_mangling.h
+%{_libdir}/libz.so
+%{_libdir}/pkgconfig/zlib.pc
+%{_libdir}/cmake/ZLIB/*
+
+%files compat-static
+%{_libdir}/libz.a
+
+%if %{build_compat32}
+%files -n compat32-%{name}-compat
+%defattr(-,root,root)
+%{_libdir}/libz.so.*
+
+%files -n compat32-%{name}-compat-devel
+%defattr(-,root,root)
+%{_libdir}/libz.so
+%{_libdir}/pkgconfig/zlib.pc
+%{_libdir}/cmake/ZLIB/*
+%endif
+%endif
+
+
+%changelog
+* Wed Jun 26 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.7-1
+- new upstream release.
+
+* Sun Jun 09 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.6-4
+- added compat32-* packages.
+
+* Tue Apr 09 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.6-3
+- initial build for Vine Linux.