From 8e68597b02a3cd8a993a9dc4b58362396d6f92df Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:08:28 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.1.0-1mamba;Thu Dec 24 2020] --- README.md | 4 +++ microsoft-gsl.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 microsoft-gsl.spec diff --git a/README.md b/README.md index 1ac9753..cb6ed78 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # microsoft-gsl +The Guidelines Support Library (GSL) contains functions and types that are suggested for use by the C++ Core Guidelines maintained by the Standard C++ Foundation. This repo contains Microsoft's implementation of GSL. +The entire implementation is provided inline in the headers under the gsl directory. The implementation generally assumes a platform that implements C++14 support. +While some types have been broken out into their own headers (e.g. gsl/span), it is simplest to just include gsl/gsl and gain access to the entire library. + diff --git a/microsoft-gsl.spec b/microsoft-gsl.spec new file mode 100644 index 0000000..7a8486c --- /dev/null +++ b/microsoft-gsl.spec @@ -0,0 +1,65 @@ +Name: microsoft-gsl +Version: 3.1.0 +Release: 1mamba +Summary: Functions and types that are suggested for use by the C++ Core Guidelines maintained by the Standard C++ Foundation +Group: Development/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/microsoft/GSL.git +Source: https://github.com/microsoft/GSL.git/v%{version}/GSL-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The Guidelines Support Library (GSL) contains functions and types that are suggested for use by the C++ Core Guidelines maintained by the Standard C++ Foundation. This repo contains Microsoft's implementation of GSL. +The entire implementation is provided inline in the headers under the gsl directory. The implementation generally assumes a platform that implements C++14 support. +While some types have been broken out into their own headers (e.g. gsl/span), it is simplest to just include gsl/gsl and gain access to the entire library. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +#% debug_package + +%prep +%setup -q -n GSL-%{version} + +%build +%cmake -d build \ + -DGSL_TEST=OFF + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/gsl +%{_includedir}/gsl/* +%dir %{_datadir}/cmake/Microsoft.GSL +%{_datadir}/cmake/Microsoft.GSL/Microsoft.GSLConfig*.cmake +%doc LICENSE + +%changelog +* Thu Dec 24 2020 Silvan Calarco 3.1.0-1mamba +- package created using the webbuild interface