source: spec/trunk/SPECS/jansson.spec@ 1796

Last change on this file since 1796 was 1721, checked in by tellie, 5 years ago

spec: jansson: Release version 2.13.1-2.

File size: 2.1 KB
Line 
1Name: jansson
2Version: 2.13.1
3Release: 2%{?dist}
4Summary: C library for encoding, decoding and manipulating JSON data
5
6License: MIT
7URL: http://www.digip.org/jansson/
8%if !0%{?os2_version}
9Source0: http://www.digip.org/jansson/releases/jansson-%{version}.tar.bz2
10%else
11%scm_source github https://github.com/TesphinxLLie/jansson-os2 %{version}-os2
12%endif
13
14# Fix docs build failures with Sphinx 3
15# Resolved upstream: https://github.com/akheron/jansson/pull/543
16%if !0%{?os2_version}
17Patch0: fix-docs-build-with-sphinx-3.patch
18BuildRequires: python3-sphinx
19%endif
20
21BuildRequires: gcc
22
23
24%description
25Small library for parsing and writing JSON documents.
26
27%package devel
28Summary: Header files for jansson
29Requires: %{name}%{?_isa} = %{version}-%{release}
30
31%description devel
32Header files for developing applications making use of jansson.
33
34%package devel-doc
35Summary: Development documentation for jansson
36BuildArch: noarch
37
38%description devel-doc
39Development documentation for jansson.
40
41%debug_package
42
43%prep
44
45%if !0%{?os2_version}
46%autosetup -p1
47%else
48%scm_setup
49%endif
50
51%if 0%{?rhel} == 6
52%{__sed} -i 's/code-block:: shell/code-block:: none/g' doc/*.rst
53%endif
54
55%build
56autoreconf -ifv
57export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
58export LIBS="-lcx"
59
60%configure --disable-static
61%if !0%{?os2_version}
62%make_build
63make html
64%else
65make %{?_smp_mflags}
66%endif
67
68%check
69%if !0%{?os2_version}
70make check
71%endif
72
73%install
74%make_install
75rm "$RPM_BUILD_ROOT%{_libdir}"/*.la
76
77%if !0%{?os2_version}
78%ldconfig_scriptlets
79%endif
80
81%files
82%license LICENSE
83%doc CHANGES
84%if !0%{?os2_version}
85%{_libdir}/*.so.*
86%else
87%{_libdir}/*.dll
88%endif
89
90%files devel
91%if !0%{?os2_version}
92%{_libdir}/*.so
93%else
94%{_libdir}/*.a
95%endif
96%{_libdir}/pkgconfig/%{name}.pc
97%{_includedir}/*
98
99%files devel-doc
100%if !0%{?os2_version}
101%doc doc/_build/html/*
102%endif
103
104%changelog
105* Mon Oct 19 2020 Elbert Pol <elbert.pol@gmail.com> - 2.13.1-2
106- fix a version number in changelog
107- Forget to add older changelog
108
109* Thu Oct 15 2020 Elbert Pol <elbert.pol@gmail.com> - 2.13.1-1
110- Updated to latest version
111
112* Mon Nov 19 2018 Elbert Pol <elbert.pol@gmail.com> - 2.11-2
113- first os2 rpm package
Note: See TracBrowser for help on using the repository browser.