From 7eae8f78a5e0e57dad70f873ac15ee2472ee1488 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 7 Apr 2023 10:33:48 +0000 Subject: automatic import of fmt --- .gitignore | 1 + fmt.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+) create mode 100644 fmt.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..879448f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/8.0.1.tar.gz diff --git a/fmt.spec b/fmt.spec new file mode 100644 index 0000000..bbe3b9a --- /dev/null +++ b/fmt.spec @@ -0,0 +1,52 @@ +%undefine __cmake_in_source_build +Name: fmt +Version: 8.0.1 +Release: 2 +License: MIT +Summary: Small, safe and fast formatting library for C++ +URL: https://github.com/fmtlib/fmt +Source0: https://github.com/fmtlib/fmt/archive/%{version}.tar.gz +BuildRequires: gcc gcc-c++ ninja-build cmake +%description +C++ Format 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 devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} +%description devel +This package contains the header file for using %{name}. + +%prep +%autosetup -p1 + +%build +%cmake \ + -G Ninja \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON +cmake --build ./ %{?_smp_flags} --verbose + +%install +DESTDIR="%{buildroot}" cmake --install ./ + +%check +ctest -VV %{?_smp_flags} + +%files +%license LICENSE.rst +%doc ChangeLog.rst README.rst +%{_libdir}/lib%{name}.so.8* + +%files devel +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_libdir}/cmake/%{name} +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Fri Aug 26 2022 yangchenguang - 8.0.1-2 +- fix dependency compile failed + +* Sat Aug 7 2021 liyanan - 8.0.1-1 +- package init diff --git a/sources b/sources new file mode 100644 index 0000000..918a074 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7d5af964c6633ef90cd6a47be3afe6a0 8.0.1.tar.gz -- cgit v1.2.3