Commit 46bf2d20 authored by Ciarán Ó Rourke's avatar Ciarán Ó Rourke
Browse files

Update fmt.spec

parent d827b1ac
Name: fmt-devel
Name: fmt
Version: 7.0.3
Release: 1%{?dist}
Summary: {fmt} is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams.
Summary: Small, safe and fast formatting library for C++
License: custom
License: BSD
URL: https://github.com/fmtlib/fmt
Source0: https://github.com/fmtlib/fmt/archive/%{version}.tar.gz
BuildRequires: cmake3,devtoolset-8-gcc,devtoolset-8-gcc-c++
%if 0%{?rhel} >= 8
%global cmake cmake
%global gcc gcc-c++
%else
%global cmake cmake3
%global gcc devtoolset-8-gcc,devtoolset-8-gcc-c++
%endif
BuildRequires: make
BuildRequires: %{cmake}
BuildRequires: %{gcc}
%description
{fmt} is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams.
Small, safe and fast formatting library for C++
%package devel
Summary: Development files for fmt
%description devel
This package contains the header file for using fmt.
%global debug_package %{nil}
......@@ -20,26 +36,30 @@ BuildRequires: cmake3,devtoolset-8-gcc,devtoolset-8-gcc-c++
%build
echo "Start Build"
cmake3 -DFMT_DOC=OFF \
%{cmake} -DFMT_DOC=OFF \
-DFMT_TEST=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_SHARED_LIBS=TRUE \
-DFMT_CMAKE_DIR=/usr/share/cmake/fmt \
.
make %{?_smp_mflags}
#mkdir -p /usr/share/cmake
#cp -r /usr/lib64/cmake/fmt /usr/share/cmake/
%install
%make_install
%files
%license LICENSE.rst
/usr/lib64/*
/usr/include/*
/usr/lib64/libfmt.so.*
%files devel
/usr/include/*
/usr/share/cmake/*
/usr/lib64/pkgconfig/fmt.pc
/usr/lib64/libfmt.so
%changelog
* Thu Sep 03 2020 Sophie Wenzel-Teuber <sophie.wenzel-teuber@ichec.ie> - 7.0.3
- First fmt package
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment