| 1 | Name: jansson
|
|---|
| 2 | Version: 2.13.1
|
|---|
| 3 | Release: 2%{?dist}
|
|---|
| 4 | Summary: C library for encoding, decoding and manipulating JSON data
|
|---|
| 5 |
|
|---|
| 6 | License: MIT
|
|---|
| 7 | URL: http://www.digip.org/jansson/
|
|---|
| 8 | %if !0%{?os2_version}
|
|---|
| 9 | Source0: 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}
|
|---|
| 17 | Patch0: fix-docs-build-with-sphinx-3.patch
|
|---|
| 18 | BuildRequires: python3-sphinx
|
|---|
| 19 | %endif
|
|---|
| 20 |
|
|---|
| 21 | BuildRequires: gcc
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | %description
|
|---|
| 25 | Small library for parsing and writing JSON documents.
|
|---|
| 26 |
|
|---|
| 27 | %package devel
|
|---|
| 28 | Summary: Header files for jansson
|
|---|
| 29 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 30 |
|
|---|
| 31 | %description devel
|
|---|
| 32 | Header files for developing applications making use of jansson.
|
|---|
| 33 |
|
|---|
| 34 | %package devel-doc
|
|---|
| 35 | Summary: Development documentation for jansson
|
|---|
| 36 | BuildArch: noarch
|
|---|
| 37 |
|
|---|
| 38 | %description devel-doc
|
|---|
| 39 | Development 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
|
|---|
| 56 | autoreconf -ifv
|
|---|
| 57 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 58 | export LIBS="-lcx"
|
|---|
| 59 |
|
|---|
| 60 | %configure --disable-static
|
|---|
| 61 | %if !0%{?os2_version}
|
|---|
| 62 | %make_build
|
|---|
| 63 | make html
|
|---|
| 64 | %else
|
|---|
| 65 | make %{?_smp_mflags}
|
|---|
| 66 | %endif
|
|---|
| 67 |
|
|---|
| 68 | %check
|
|---|
| 69 | %if !0%{?os2_version}
|
|---|
| 70 | make check
|
|---|
| 71 | %endif
|
|---|
| 72 |
|
|---|
| 73 | %install
|
|---|
| 74 | %make_install
|
|---|
| 75 | rm "$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
|
|---|