diff --git a/.packit.yml b/.packit.yml new file mode 100644 index 0000000000..263b02a1de --- /dev/null +++ b/.packit.yml @@ -0,0 +1,11 @@ +specfile_path: fedora/highway.spec + +notifications: + pull_request: + successful_build: true + +jobs: +- job: copr_build + trigger: pull_request + targets: + - fedora-rawhide diff --git a/fedora/highway.spec b/fedora/highway.spec new file mode 100644 index 0000000000..416e2636c3 --- /dev/null +++ b/fedora/highway.spec @@ -0,0 +1,75 @@ +%global common_description %{expand: +Highway is a C++ library for SIMD (Single Instruction, Multiple Data), i.e. +applying the same operation to 'lanes'.} + +Name: highway +Version: 1.4.0 +Release: %autorelease +Summary: Efficient and performance-portable SIMD + +License: (Apache-2.0 OR BSD-3-Clause) AND CC0-1.0 +URL: https://github.com/google/highway +Source: %url/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: gtest-devel + +%description +%common_description +%package devel +Summary: Development files for Highway +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +%{common_description} + +Development files for Highway. + +%package doc +Summary: Documentation for Highway +BuildArch: noarch + +%description doc +%{common_description} + +Documentation for Highway. + +%prep +%autosetup -p1 -n %{name}-%{version} + +%build +%cmake \ + -DHWY_SYSTEM_GTEST:BOOL=ON \ + -DHWY_CMAKE_RVV:BOOL=OFF +%cmake_build +%install +%cmake_install +%check +%ctest +%files +%license LICENSE +%{_libdir}/libhwy.so.1 +%{_libdir}/libhwy.so.%{version} +%{_libdir}/libhwy_contrib.so.1 +%{_libdir}/libhwy_contrib.so.%{version} +%{_libdir}/libhwy_test.so.1 +%{_libdir}/libhwy_test.so.%{version} + +%files devel +%license LICENSE +%{_includedir}/hwy/ +%{_libdir}/cmake/hwy/ +%{_libdir}/libhwy.so +%{_libdir}/libhwy_contrib.so +%{_libdir}/libhwy_test.so +%{_libdir}/pkgconfig/libhwy.pc +%{_libdir}/pkgconfig/libhwy-contrib.pc +%{_libdir}/pkgconfig/libhwy-test.pc + +%files doc +%license LICENSE +%doc g3doc hwy/examples + +%changelog +%autochangelog