-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpp-json.spec
76 lines (62 loc) · 2.61 KB
/
cpp-json.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Name: tokox-cpp-json
Version: 1.5
Release: 1%{?dist}
Summary: C++ JSON object import/export library
License: MIT
URL: https://github.com/tokox/cpp-json
BugURL: https://github.com/tokox/cpp-json/issues
Source0: https://github.com/tokox/cpp-json/archive/v%{version}.tar.gz
BuildArch: noarch
%description
This is a JSON object import/export library in C++. It contains class to represent JSON Object and functions to read it from stream and write it to stream. That is basically it. For more information look at README.
Install from copr:
```
dnf copr enable tokox/cpp-json
dnf install tokox-cpp-json
```
Library should install in `/usr/include/tokox/cpp-json/` and docs should install in `/usr/share/doc/tokox/cpp-json/`
Bugs and issues report at github: tokox/cpp-json
%prep
%setup -n cpp-json-%{version}
%install
mkdir -p %{buildroot}/usr/include/tokox/cpp-json
cp -a *.hpp *.cpp %{buildroot}/usr/include/tokox/cpp-json
rm -f %{buildroot}/usr/include/tokox/cpp-json/test.cpp
mkdir -p %{buildroot}/usr/share/doc/tokox/cpp-json
cp -a LICENSE.md README.md %{buildroot}/usr/share/doc/tokox/cpp-json
%files
/usr/include/tokox/cpp-json/json.hpp
/usr/include/tokox/cpp-json/types.hpp
/usr/include/tokox/cpp-json/types.cpp
/usr/include/tokox/cpp-json/object.hpp
/usr/include/tokox/cpp-json/object.cpp
/usr/include/tokox/cpp-json/import.hpp
/usr/include/tokox/cpp-json/import.cpp
/usr/include/tokox/cpp-json/export.hpp
/usr/include/tokox/cpp-json/export.cpp
%license /usr/share/doc/tokox/cpp-json/LICENSE.md
%doc /usr/share/doc/tokox/cpp-json/README.md
%changelog
* Tue Apr 02 2024 Tomasz Kośnikowski (tokox) - 1.5-1
- Refactored import/export
- Updated README
- Deleted out-of-date docs
* Sat Mar 30 2024 Tomasz Kośnikowski (tokox) - 1.4-1
- Rewritten import_error
- Refactored error messages
- Fixed value_type conversions in types.cpp (dumb dumb me)
- Added throws for unknown value_type and error_type
- Fixed last case of value_type in conversion to object_type
* Sat Mar 30 2024 Tomasz Kośnikowski (tokox) - 1.3-1
- Splitted code into files
- Separated headers and source
* Wed Mar 20 2024 Tomasz Kośnikowski (tokox) - 1.2-2
- Updated README
* Tue Mar 19 2024 Tomasz Kośnikowski (tokox) - 1.2-1
- Replaced std::variant with std::any
- improved object class
* Sun Mar 10 2024 Tomasz Kośnikowski (tokox) - 1.1-1
- Wrapped everything in tokox namespace and reformated code
- Updated README
* Sat Mar 09 2024 Tomasz Kośnikowski (tokox) - 1.0-1
- First Release!