Changeset 1718 for spec/trunk/SPECS


Ignore:
Timestamp:
Oct 15, 2020, 11:49:29 PM (5 years ago)
Author:
tellie
Message:

spec: jansson: Release version 2.13.1-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/jansson.spec

    r1522 r1718  
    11Name:           jansson
    2 Version:        2.11
     2Version:        2.13.1
    33Release:        1%{?dist}
    44Summary:        C library for encoding, decoding and manipulating JSON data
    55
    6 Group:          System Environment/Libraries
    76License:        MIT
    87URL:            http://www.digip.org/jansson/
    9 #Source0:       http://www.digip.org/jansson/releases/jansson-%{version}.tar.bz2
    10 %scm_source git file://e:/gcc/jansson-2.11 jansson-2.11
     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
    1113
    12 BuildRequires: libgcc1
    13 #BuildRequires: python-sphinx
     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
    1423
    1524%description
     
    1827%package devel
    1928Summary: Header files for jansson
    20 Group: Development/Libraries
    2129Requires: %{name}%{?_isa} = %{version}-%{release}
    2230
     
    3139Development documentation for jansson.
    3240
     41%debug_package
     42
    3343%prep
    34 #%autosetup -p1
     44
     45%if !0%{?os2_version}
     46%autosetup -p1
     47%else
    3548%scm_setup
    36 autoreconf -vif
     49%endif
    3750
    3851%if 0%{?rhel} == 6
     
    4154
    4255%build
     56autoreconf -ifv
    4357export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    4458export LIBS="-lcx"
     59
    4560%configure --disable-static
     61%if !0%{?os2_version}
     62%make_build
     63make html
     64%else
    4665make %{?_smp_mflags}
    47 #make html
     66%endif
    4867
    4968%check
    50 #make check
     69%if !0%{?os2_version}
     70make check
     71%endif
    5172
    5273%install
    53 make install INSTALL="install -p" DESTDIR="$RPM_BUILD_ROOT"
     74%make_install
    5475rm "$RPM_BUILD_ROOT%{_libdir}"/*.la
    55 emximp -o %{buildroot}%{_libdir}/jansson_dll.lib %{buildroot}%{_libdir}/jansson4.dll
    56 emximp -o %{buildroot}%{_libdir}/jansson4_dll.lib %{buildroot}%{_libdir}/jansson4.dll
    5776
    58 
    59 #%ldconfig_scriptlets
     77%if !0%{?os2_version}
     78%ldconfig_scriptlets
     79%endif
    6080
    6181%files
    62 %defattr(-,root,root,-)
    63 %doc LICENSE CHANGES
     82%license LICENSE
     83%doc CHANGES
     84%if !0%{?os2_version}
     85%{_libdir}/*.so.*
     86%else
    6487%{_libdir}/*.dll
     88%endif
    6589
    6690%files devel
    67 %defattr(-,root,root,-)
    68 %{_libdir}/*.dll
     91%if !0%{?os2_version}
     92%{_libdir}/*.so
     93%else
    6994%{_libdir}/*.a
    70 %{_libdir}/*.lib
     95%endif
    7196%{_libdir}/pkgconfig/%{name}.pc
    7297%{_includedir}/*
    7398
    74 #%files devel-doc
    75 #%doc doc/_build/html/*
     99%files devel-doc
     100%if !0%{?os2_version}
     101%doc doc/_build/html/*
     102%endif
    76103
    77104%changelog
    78 * Mon Nov 19 2018 Elbert Pol <elbert.pol@gmail.com> - 2.11-2
    79 - first os2 rpm package
    80 
     105* Thu Oct 15 2020 Elbert Pol <elbert.pol@gmail.com> - 0.13.2-1
     106- Updated to latest version
Note: See TracChangeset for help on using the changeset viewer.