summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-24 02:00:23 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-24 02:00:23 +0000
commit64b2e11a15ccb80d77266e0ee19780b08d9010d4 (patch)
tree806d84bcabf6a533b28895adf9718635c471c562
parentfa066d67ea100daa686e4655d42be44f75361bcc (diff)
automatic import of fmt
-rw-r--r--.gitignore1
-rw-r--r--fmt.spec55
-rw-r--r--sources1
3 files changed, 57 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..307b53e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/9.1.0.tar.gz
diff --git a/fmt.spec b/fmt.spec
new file mode 100644
index 0000000..026263b
--- /dev/null
+++ b/fmt.spec
@@ -0,0 +1,55 @@
+%undefine __cmake_in_source_build
+Name: fmt
+Version: 9.1.0
+Release: 1
+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
+* Mon Apr 24 2023 wangxiyuan1007 <wangxiyuan1007@gmail.com> - 9.1.0-1
+- Upgrade to 9.1.0
+
+* Fri Aug 26 2022 yangchenguang <yangchenguang@uniontech.com> - 8.0.1-2
+- fix dependency compile failed
+
+* Sat Aug 7 2021 liyanan <liyanan32@huawei.com> - 8.0.1-1
+- package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..509e0eb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+21fac48cae8f3b4a5783ae06b443973a 9.1.0.tar.gz