-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxchange.spec
79 lines (58 loc) · 2.15 KB
/
xchange.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
77
78
%global upstream_version 1.0.0-rc1
Name: xchange
Version: 1.0.0.rc1
Release: 1%{?dist}
Summary: Light-weight structured data exchange and JSON support for C/C++
License: Unlicense
URL: https://smithsonian.github.io/xchange
Source0: https://github.com/Smithsonian/xchange/archive/refs/tags/v%{upstream_version}.tar.gz
BuildRequires: gcc
BuildRequires: sed
BuildRequires: doxygen >= 1.9.0
%description
The xchange library provides a free framework for platform independent data
exchange for structured data in C/C++, and includes a JSON parser and emitter.
It is free to use, in any way you like, without licensing restrictions.
While there are many excellent libraries out there that offer such
capabilities for C++ and/or other object-oriented languages, support for
structured data exchange is notably rare for standard C. The xchange library
aims to fill that niche, by providing a data exchange framework with a
C99-compatible API that supports the interchange of arbitrary structured data
between different platforms and different serialization formats with ease. The
xchange library also provides support for JSON formatting and parsing using
the C99 standard out of the box. All that in a light-weight and fast package.
%package devel
Summary: C development files for the xchange C/C++ library
Requires: %{name}%{_isa} = %{version}-%{release}
%description devel
This sub-package provides C headers and non-versioned shared library symbolic
links for the xchange C/C++ library.
%package doc
Summary: Documentation for the xchange C/C++ astronomy library
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description doc
This package provides man pages and HTML documentation for the xchange C/C++
library.
%prep
%setup -q -n xchange-%{upstream_version}
%build
make %{?_smp_mflags}
%check
make test
%install
make DESTDIR=%{buildroot} libdir=%{_libdir} install
%files
%license LICENSE
%doc CHANGELOG.md
%{_libdir}/lib%{name}.so.1{,.*}
%files devel
%doc CONTRIBUTING.md
%doc %{_docdir}/%{name}/*
%{_prefix}/include/*
%{_libdir}/*.so
%files doc
%doc %{_docdir}/%{name}/%{name}.tag
%doc %{_docdir}/%{name}/html
%changelog
%autochangelog