Changeset 1718 for spec/trunk/SPECS
- Timestamp:
- Oct 15, 2020, 11:49:29 PM (5 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/jansson.spec (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/jansson.spec
r1522 r1718 1 1 Name: jansson 2 Version: 2.1 12 Version: 2.13.1 3 3 Release: 1%{?dist} 4 4 Summary: C library for encoding, decoding and manipulating JSON data 5 5 6 Group: System Environment/Libraries7 6 License: MIT 8 7 URL: 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} 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 11 13 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} 17 Patch0: fix-docs-build-with-sphinx-3.patch 18 BuildRequires: python3-sphinx 19 %endif 20 21 BuildRequires: gcc 22 14 23 15 24 %description … … 18 27 %package devel 19 28 Summary: Header files for jansson 20 Group: Development/Libraries21 29 Requires: %{name}%{?_isa} = %{version}-%{release} 22 30 … … 31 39 Development documentation for jansson. 32 40 41 %debug_package 42 33 43 %prep 34 #%autosetup -p1 44 45 %if !0%{?os2_version} 46 %autosetup -p1 47 %else 35 48 %scm_setup 36 autoreconf -vif49 %endif 37 50 38 51 %if 0%{?rhel} == 6 … … 41 54 42 55 %build 56 autoreconf -ifv 43 57 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 44 58 export LIBS="-lcx" 59 45 60 %configure --disable-static 61 %if !0%{?os2_version} 62 %make_build 63 make html 64 %else 46 65 make %{?_smp_mflags} 47 #make html 66 %endif 48 67 49 68 %check 50 #make check 69 %if !0%{?os2_version} 70 make check 71 %endif 51 72 52 73 %install 53 make install INSTALL="install -p" DESTDIR="$RPM_BUILD_ROOT" 74 %make_install 54 75 rm "$RPM_BUILD_ROOT%{_libdir}"/*.la 55 emximp -o %{buildroot}%{_libdir}/jansson_dll.lib %{buildroot}%{_libdir}/jansson4.dll56 emximp -o %{buildroot}%{_libdir}/jansson4_dll.lib %{buildroot}%{_libdir}/jansson4.dll57 76 58 59 #%ldconfig_scriptlets 77 %if !0%{?os2_version} 78 %ldconfig_scriptlets 79 %endif 60 80 61 81 %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 64 87 %{_libdir}/*.dll 88 %endif 65 89 66 90 %files devel 67 %defattr(-,root,root,-) 68 %{_libdir}/*.dll 91 %if !0%{?os2_version} 92 %{_libdir}/*.so 93 %else 69 94 %{_libdir}/*.a 70 % {_libdir}/*.lib95 %endif 71 96 %{_libdir}/pkgconfig/%{name}.pc 72 97 %{_includedir}/* 73 98 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 76 103 77 104 %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.
