|
@@ -1,39 +1,21 @@
|
|
|
%undefine __cmake_in_source_build
|
|
|
-%bcond_with doc
|
|
|
|
|
|
Name: fmt
|
|
|
Summary: Small, safe and fast formatting library for C++
|
|
|
-Version: 7.1.3
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 9.1.0
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Group: system
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
|
|
|
-
|
|
|
License: BSD
|
|
|
URL: https://github.com/fmtlib/%{name}
|
|
|
Source0: %{url}/archive/%{version}.tar.gz
|
|
|
-# See https://github.com/fmtlib/fmt/issues/443 and https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/LVKYLDLJVWAVJE4MQVKDO6PYZRD5MCP6/
|
|
|
-Patch1: doc-build-removed-all-pip-internet-stuff.patch
|
|
|
-Patch3: doc-build-do-not-create-virtual-environment.patch
|
|
|
-Patch4: doc-_templates-layout-stripped-Google-Analytics.patch
|
|
|
-Patch5: doc-_templates-layout-stripped-download-links.patch
|
|
|
-Patch6: doc-index-removed-GitHub-iframe.patch
|
|
|
-Patch7: doc-build-use-sphinx-build-3.patch
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
BuildRequires: gcc-c++
|
|
|
BuildRequires: ninja
|
|
|
BuildRequires: cmake
|
|
|
-%if %{with doc}
|
|
|
-BuildRequires: doxygen
|
|
|
-BuildRequires: nodejs
|
|
|
-BuildRequires: python3-sphinx
|
|
|
-BuildRequires: python3-breathe
|
|
|
-%else
|
|
|
-Provides: %{name}-doc = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
-Obsoletes: %{name}-doc < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
-%endif
|
|
|
|
|
|
# This package replaces the old name of cppformat
|
|
|
Provides: cppformat = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
@@ -57,22 +39,6 @@ Obsoletes: cppformat-devel < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
This package contains the header file for using %{name}.
|
|
|
|
|
|
|
|
|
-%if %{with doc}
|
|
|
-%package doc
|
|
|
-Summary: Documentation files for %{name}
|
|
|
-Group: documentation
|
|
|
-License: Python
|
|
|
-BuildArch: noarch
|
|
|
-
|
|
|
-# This package replaces the old name of cppformat
|
|
|
-Provides: cppformat-doc = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
-Obsoletes: cppformat-doc < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
-
|
|
|
-%description doc
|
|
|
-This package contains documentation for developer documentation for %{name}.
|
|
|
-%endif
|
|
|
-
|
|
|
-
|
|
|
%debug_package
|
|
|
|
|
|
|
|
@@ -90,24 +56,15 @@ sed -i "s/'--clean-css',//" doc/build.py
|
|
|
-G Ninja \
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
|
- -DFMT_CMAKE_DIR=%{_datadir}/cmake/%{name} \
|
|
|
+ -DFMT_CMAKE_DIR=%{_libdir}/cmake/%{name} \
|
|
|
-DFMT_LIB_DIR=%{_libdir}
|
|
|
|
|
|
-%__cmake --build . \
|
|
|
-%if %{with doc}
|
|
|
- --target doc \
|
|
|
-%endif
|
|
|
- --target all
|
|
|
-
|
|
|
-%if %{with doc}
|
|
|
-# Remove temporary build products
|
|
|
-rm -rf %{_vpath_builddir}/doc/html/{.buildinfo,.doctrees,objects.inv}
|
|
|
-%endif
|
|
|
+%cmake_build
|
|
|
|
|
|
|
|
|
%install
|
|
|
-DESTDIR="%{buildroot}" %__cmake --install .
|
|
|
-
|
|
|
+%cmake_install
|
|
|
+
|
|
|
|
|
|
#%check
|
|
|
#%ctest
|
|
@@ -116,22 +73,19 @@ DESTDIR="%{buildroot}" %__cmake --install .
|
|
|
%files
|
|
|
%license LICENSE.rst
|
|
|
%doc ChangeLog.rst README.rst
|
|
|
-%{_libdir}/lib%{name}.so.7*
|
|
|
+%{_libdir}/lib%{name}.so.*
|
|
|
|
|
|
%files devel
|
|
|
%{_includedir}/%{name}
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
-%{_datadir}/cmake/%{name}
|
|
|
+%{_libdir}/cmake/%{name}
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
-%if %{with doc}
|
|
|
-%files doc
|
|
|
-%doc %{_datadir}/doc/%{name}
|
|
|
-%license doc/python-license.txt
|
|
|
-%endif
|
|
|
-
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Oct 02 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 9.1.0-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Sat Dec 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 7.1.3-2
|
|
|
- initial build for Vine Linux.
|
|
|
|