[packages/nlohmann-json] - new

qboosh qboosh at pld-linux.org
Wed Jun 29 06:22:08 CEST 2022


commit ef3f2fe8257c0ad7ebabfc4029bd5e95ffa8307d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 29 06:23:33 2022 +0200

    - new

 nlohmann-json.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
---
diff --git a/nlohmann-json.spec b/nlohmann-json.spec
new file mode 100644
index 0000000..39b7ce0
--- /dev/null
+++ b/nlohmann-json.spec
@@ -0,0 +1,57 @@
+Summary:	JSON for Modern C++ by Niels Lohmann
+Summary(pl.UTF-8):	JSON dla współczesnego C++ autorstwa Nielsa Lohmanna
+Name:		nlohmann-json
+Version:	3.10.5
+Release:	1
+License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/nlohmann/json/releases
+Source0:	https://github.com/nlohmann/json/archive/v%{version}/json-%{version}.tar.gz
+# Source0-md5:	5b946f7d892fa55eabec45e76a20286b
+URL:		https://json.nlohmann.me/
+BuildRequires:	cmake >= 3.1
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+JSON for Modern C++ by Niels Lohmann.
+
+%description -l pl.UTF-8
+JSON dla współczesnego C++ autorstwa Nielsa Lohmanna.
+
+%package devel
+Summary:	JSON for Modern C++ by Niels Lohmann
+Summary(pl.UTF-8):	JSON dla współczesnego C++ autorstwa Nielsa Lohmanna
+Group:		Development/Libraries
+Requires:	libstdc++-devel >= 6:4.7
+
+%description devel
+JSON for Modern C++ by Niels Lohmann.
+
+%description devel -l pl.UTF-8
+JSON dla współczesnego C++ autorstwa Nielsa Lohmanna.
+
+%prep
+%setup -q -n json-%{version}
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files devel
+%defattr(644,root,root,755)
+%doc ChangeLog.md LICENSE.MIT README.md
+%dir %{_includedir}/nlohmann
+%{_includedir}/nlohmann/json.hpp
+%{_pkgconfigdir}/nlohmann_json.pc
+%{_libdir}/cmake/nlohmann_json
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nlohmann-json.git/commitdiff/ef3f2fe8257c0ad7ebabfc4029bd5e95ffa8307d



More information about the pld-cvs-commit mailing list