diff --git a/README.md b/README.md index d899c54..126c91a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # benchmark +A microbenchmark support library. + diff --git a/benchmark.spec b/benchmark.spec new file mode 100644 index 0000000..bdfe7ef --- /dev/null +++ b/benchmark.spec @@ -0,0 +1,86 @@ +Name: benchmark +Version: 1.8.3 +Release: 1mamba +Summary: A microbenchmark support library +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/google/benchmark +Source: https://github.com/google/benchmark.git/v%{version}/benchmark-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +A microbenchmark support library. + +%package -n lib%{name} +Group: System/Libraries +Summary: A microbenchmark support library + +%description -n lib%{name} +A microbenchmark support library. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake \ + -DBUILD_SHARED_LIBS=ON \ + -DBENCHMARK_ENABLE_LTO=ON \ + -DBENCHMARK_ENABLE_GTEST_TESTS=OFF + +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libbenchmark.so.* +%{_libdir}/libbenchmark_main.so.* +%doc AUTHORS LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/benchmark +%{_includedir}/benchmark/* +%{_libdir}/libbenchmark.so +%{_libdir}/libbenchmark_main.so +%dir %{_libdir}/cmake/benchmark +%{_libdir}/cmake/benchmark/benchmark*.cmake +%{_libdir}/pkgconfig/benchmark.pc +%dir %{_docdir}/benchmark +%{_docdir}/benchmark/* +%doc README.md + +%changelog +* Sun Mar 10 2024 Silvan Calarco 1.8.3-1mamba +- package created using the webbuild interface