%global debug_package %{nil}
Name: json
Version: 2.0.2
Release: 2%{?dist}
Summary: JSON for Modern C++
Group: Development/Libraries
License: MIT
## Not installed
# test/catch.hpp: Boost Software License, Version 1.0
URL: https://github.com/nlohmann/%{name}/
Source0: https://github.com/nlohmann/json/archive/v%{version}.tar.gz
BuildRequires: cppcheck
BuildRequires: /usr/bin/make
BuildRequires: doxygen
%description
This is a packages version of the nlohmann/json header-only C++
library available at Github.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Provides: %{name}-static = %{version}-%{release}
Provides: %{name} = %{version}-%{release}
Requires: libstdc++-devel
%description devel
The %{name}-devel package contains C++ header files for developing
applications that use %{name}.
%prep
%setup -q -n %{name}-%{version}
%build
doxygen doc/Doxyfile
%check
make cppcheck
make json_unit
./json_unit
%install
mkdir -p %{buildroot}%{_includedir}
install -p -m 0644 src/json.hpp %{buildroot}%{_includedir}/json.hpp
%files devel
%doc README.md html/
%license LICENSE.MIT
%{_includedir}/json.hpp
%changelog
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Aug 02 2016 Daniel Kopecek <dkopecek@redhat.com> - 2.0.2-1
- update to latest upstream release v2.0.2
* Thu Jul 07 2016 Daniel Kopecek <dkopecek@redhat.com> - 2.0.1-1
- update to latest upstream release v2.0.1
* Mon May 16 2016 Daniel Kopecek <dkopecek@redhat.com> - 1.1.0-1
- update to latest upstream release v1.1.0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-7.20151110git3948630
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Nov 10 2015 Daniel Kopecek <dkopecek@redhat.com> - 0-6.20151110git3948630
- update to rev 3948630
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-5.20150410gitd7d0509
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Thu Apr 30 2015 Daniel Kopecek <dkopecek@redhat.com> - 0-4.20150410gitd7d0509
- don't build the base package
- removed a dot from the release tag
- corrected -devel subpackage description
* Tue Apr 14 2015 Daniel Kopecek <dkopecek@redhat.com> - 0-3.20150410git.d7d0509
- added patch to fix compilation of json_unit with gcc-5.x
* Tue Apr 14 2015 Daniel Kopecek <dkopecek@redhat.com> - 0-2.20150410git.d7d0509
- run json_unit target from the check section
- document catch.hpp license
- don't build the debuginfo subpackage
- don't generate a distribution specific pkg-config file
* Fri Apr 10 2015 Daniel Kopecek <dkopecek@redhat.com> - 0-1.20150410git.d7d0509
- Initial package