1 |
%global debug_package %{nil} |
%global debug_package %{nil} |
2 |
|
|
3 |
Name: json |
Name: json |
4 |
Version: 3.4.0 |
Version: 3.6.1 |
5 |
Release: %mkrel 1 |
Release: %mkrel 1 |
6 |
Summary: JSON for Modern C++ |
Summary: JSON for Modern C++ |
7 |
License: MIT |
License: MIT |
8 |
GRoup: Development/C++ |
Group: Development/C++ |
9 |
## Not installed |
## Not installed |
10 |
# test/catch.hpp: Boost Software License, Version 1.0 |
# test/catch.hpp: Boost Software License, Version 1.0 |
11 |
URL: https://github.com/nlohmann/%{name} |
URL: https://github.com/nlohmann/%{name} |
12 |
Source0: https://github.com/nlohmann/%{name}/archive/v%{version}.tar.gz |
Source0: https://github.com/nlohmann/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz |
13 |
|
|
14 |
BuildRequires: ninja |
BuildRequires: ninja |
15 |
BuildRequires: gcc-c++ |
BuildRequires: gcc-c++ |
16 |
BuildRequires: cmake |
BuildRequires: cmake |
17 |
|
|
|
|
|
18 |
%description |
%description |
19 |
This is a packages version of the nlohmann/json header-only C++ |
This is a packages version of the nlohmann/json header-only C++ |
20 |
library available at Github. |
library available at Github. |
21 |
|
|
|
|
|
22 |
%package devel |
%package devel |
23 |
Summary: Development files for %{name} |
Summary: Development files for %{name} |
24 |
|
Group: Development/C++ |
25 |
Provides: %{name}-static = %{version}-%{release} |
Provides: %{name}-static = %{version}-%{release} |
26 |
Provides: %{name} = %{version}-%{release} |
Provides: %{name} = %{version}-%{release} |
27 |
Requires: libstdc++-devel%{?_isa} |
Requires: libstdc++-devel |
28 |
|
|
29 |
%description devel |
%description devel |
30 |
The %{name}-devel package contains C++ header files for developing |
The %{name}-devel package contains C++ header files for developing |
34 |
%autosetup |
%autosetup |
35 |
sed -i 's@lib/@%{_libdir}/@g' CMakeLists.txt |
sed -i 's@lib/@%{_libdir}/@g' CMakeLists.txt |
36 |
|
|
|
|
|
37 |
%build |
%build |
38 |
%cmake -G Ninja |
%cmake -G Ninja |
39 |
%ninja_build |
%ninja_build |
40 |
|
|
|
|
|
41 |
%install |
%install |
42 |
%ninja_install -C build |
%ninja_install -C build |
43 |
ln -s nlohmann/%{name}.hpp %{buildroot}%{_includedir}/%{name}.hpp |
ln -s nlohmann/%{name}.hpp %{buildroot}%{_includedir}/%{name}.hpp |
48 |
%{_includedir}/nlohmann |
%{_includedir}/nlohmann |
49 |
%{_includedir}/%{name}.hpp |
%{_includedir}/%{name}.hpp |
50 |
%{_libdir}/cmake/nlohmann_json |
%{_libdir}/cmake/nlohmann_json |
|
|
|