package created using the webbuild interface [release 1.8.3-1mamba;Sun Mar 10 2024]

This commit is contained in:
Silvan Calarco 2024-03-10 17:19:24 +01:00
parent 35eebf9147
commit bed7bd1b53
2 changed files with 88 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# benchmark
A microbenchmark support library.

86
benchmark.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.8.3-1mamba
- package created using the webbuild interface