]> git.pld-linux.org Git - packages/nlohmann-json.git/blame - nlohmann-json.spec
- updated to 3.11.2
[packages/nlohmann-json.git] / nlohmann-json.spec
CommitLineData
ef3f2fe8
JB
1Summary: JSON for Modern C++ by Niels Lohmann
2Summary(pl.UTF-8): JSON dla współczesnego C++ autorstwa Nielsa Lohmanna
3Name: nlohmann-json
471ab4e2
JB
4Version: 3.11.2
5Release: 1
ef3f2fe8
JB
6License: MIT
7Group: Libraries
8#Source0Download: https://github.com/nlohmann/json/releases
9Source0: https://github.com/nlohmann/json/archive/v%{version}/json-%{version}.tar.gz
471ab4e2 10# Source0-md5: e8d56bc54621037842ee9f0aeae27746
ef3f2fe8
JB
11URL: https://json.nlohmann.me/
12BuildRequires: cmake >= 3.1
13BuildRequires: libstdc++-devel >= 6:4.7
830505d1
JB
14BuildRequires: rpmbuild(macros) >= 1.605
15BuildArch: noarch
ef3f2fe8
JB
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19JSON for Modern C++ by Niels Lohmann.
20
21%description -l pl.UTF-8
22JSON dla współczesnego C++ autorstwa Nielsa Lohmanna.
23
24%package devel
25Summary: JSON for Modern C++ by Niels Lohmann
26Summary(pl.UTF-8): JSON dla współczesnego C++ autorstwa Nielsa Lohmanna
27Group: Development/Libraries
28Requires: libstdc++-devel >= 6:4.7
29
30%description devel
31JSON for Modern C++ by Niels Lohmann.
32
33%description devel -l pl.UTF-8
34JSON dla współczesnego C++ autorstwa Nielsa Lohmanna.
35
36%prep
37%setup -q -n json-%{version}
38
39%build
40install -d build
41cd build
830505d1
JB
42# force noarch libdir
43%cmake .. \
b38d5215
JB
44 -DCMAKE_INSTALL_LIBDIR=share \
45 -DJSON_MultipleHeaders=ON
ef3f2fe8
JB
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50%{__make} -C build install \
51 DESTDIR=$RPM_BUILD_ROOT
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files devel
57%defattr(644,root,root,755)
58%doc ChangeLog.md LICENSE.MIT README.md
59%dir %{_includedir}/nlohmann
b38d5215
JB
60%{_includedir}/nlohmann/adl_serializer.hpp
61%{_includedir}/nlohmann/byte_container_with_subtype.hpp
ef3f2fe8 62%{_includedir}/nlohmann/json.hpp
b38d5215
JB
63%{_includedir}/nlohmann/json_fwd.hpp
64%{_includedir}/nlohmann/ordered_map.hpp
65%{_includedir}/nlohmann/detail
66%{_includedir}/nlohmann/thirdparty
830505d1
JB
67%{_npkgconfigdir}/nlohmann_json.pc
68%{_datadir}/cmake/nlohmann_json
This page took 0.187428 seconds and 4 git commands to generate.