$ git show --format=fuller --patch-with-stat --summary a96be0b98fce1ee813269502bb0bd240bc0c034f
commit a96be0b98fce1ee813269502bb0bd240bc0c034f
Author: Alex <alexander@mezon.ru>
AuthorDate: Mon Sep 9 22:13:59 2019 +0000
Commit: Alex <alexander@mezon.ru>
CommitDate: Mon Sep 9 22:13:59 2019 +0000
add fmt
---
.abf.yml | 2 ++
fmt.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+)
create mode 100644 .abf.yml
create mode 100644 fmt.spec
diff --git a/.abf.yml b/.abf.yml
new file mode 100644
index 0000000..6cc4d14
--- /dev/null
+++ b/.abf.yml
@@ -0,0 +1,2 @@
+sources:
+ fmt-5.3.0.tar.gz: 787a568322e08cebb1e164b3c9766e27ca18b2c8
diff --git a/fmt.spec b/fmt.spec
new file mode 100644
index 0000000..2815490
--- /dev/null
+++ b/fmt.spec
@@ -0,0 +1,56 @@
+%define major 5
+%define minor 3
+%define libname %mklibname %{name} %{major}
+%define devel %mklibname -d %{name}
+
+Name: fmt
+Version: 5.3.0
+Release: 1
+Summary: Small, safe and fast formatting library
+Group: Development/C++
+License: BSD
+URL: https://fmtlib.org
+Source0: https://github.com/fmtlib/fmt/archive/%{version}/%{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+
+%description
+fmt is an open-source formatting library for C++. It can be used as a safe
+alternative to printf or as a fast alternative to IOStreams.
+
+%package -n %{devel}
+Summary: Development files for libfmt
+Group: Development/C++
+Requires: %{libname} = %{version}-%{release}
+Provides: %{name}-devel
+
+%description -n %{devel}
+This package contains the development header files, libraries
+and cmake files for libfmt
+
+%package -n %{libname}
+Summary: The libfmt libraries
+Group: Development/C++
+
+%description -n %{libname}
+This package contains the library for libfmt
+
+%prep
+%autosetup
+
+%build
+%cmake
+%make_build
+
+%install
+%make_install -C build
+
+%files -n %{devel}
+%{_includedir}/%{name}/
+%{_libdir}/cmake/%{name}/
+%{_libdir}/libfmt.so.%{major}
+%{_libdir}/libfmt.so.%{major}.%{minor}{,.*}
+%{_datadir}/pkgconfig/%{name}.pc
+
+%files -n %{libname}
+%{_libdir}/libfmt.so