%global reldate 20160607 %{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} Name: json-c Version: 0.12.1 Release: 1%{?dist} Summary: JSON implementation in C License: MIT URL: https://github.com/%{name}/%{name} Source0: %{url}/archive/json-c-%{version}-%{reldate}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool %description JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects. It aims to conform to RFC 7159. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} == %{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Reference manual for json-c BuildArch: noarch BuildRequires: doxygen BuildRequires: hardlink %description doc This package contains the reference manual for json-c. %prep %autosetup -n %{name}-%{name}-%{version}-%{reldate} for doc in ChangeLog; do %{_bindir}/iconv -f iso-8859-1 -t utf8 ${doc} > ${doc}.new /bin/touch -r ${doc} ${doc}.new %{__mv} -f ${doc}.new ${doc} done %{__sed} -i 's|-Werror ||g' Makefile.am.inc %{_bindir}/autoreconf -fiv %build %configure \ --disable-rpath \ --disable-silent-rules \ --disable-static \ --enable-shared \ --enable-rdrand %make_build %{_bindir}/doxygen Doxyfile %install %make_install %{_bindir}/find %{buildroot} -name '*.la' -delete -print %{__mkdir} -p %{buildroot}/%{_pkgdocdir} %{__cp} -pr doc/html ChangeLog README README.* %{buildroot}/%{_pkgdocdir} %{_sbindir}/hardlink -cvf %{buildroot}/%{_pkgdocdir} %check %make_build check %pretrans devel -p path = "%{_includedir}/%{name}" st = posix.stat(path) if st and st.type == "link" then os.remove(path) end %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc %dir %{_pkgdocdir} %license AUTHORS %license COPYING %{_libdir}/lib%{name}.so.* %files devel %doc %dir %{_pkgdocdir} %doc %{_pkgdocdir}/ChangeLog %doc %{_pkgdocdir}/README* %{_includedir}/%{name}/ %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %files doc %if 0%{?fedora} || 0%{?rhel} >= 7 %license %{_datadir}/licenses/%{name}* %endif # 0%%{?fedora} || 0%%{?rhel} >= 7 %doc %{_pkgdocdir} %changelog * Thu Apr 27 2017 Björn Esser - 0.12.1-1 - Update to new upstream release - Introduces SONAME bump, that should have been in 0.12 already - Unify %%doc - General spec-file cleanup * Fri Feb 10 2017 Fedora Release Engineering - 0.12-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.12-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.12-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Aug 16 2014 Fedora Release Engineering - 0.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Tue Jul 29 2014 Christopher Meng - 0.12-4 - SONAME bump postponed. * Mon Jul 28 2014 Christopher Meng - 0.12-3 - SONAME bump, see bug 1123785 * Fri Jul 25 2014 Christopher Meng - 0.12-2 - NVR bump * Thu Jul 24 2014 Christopher Meng - 0.12-1 - Update to 0.12 * Sat Jul 12 2014 Tom Callaway - 0.11-8 - fix license handling * Sun Jun 08 2014 Fedora Release Engineering - 0.11-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Apr 09 2014 Susi Lehtola - 0.11-7 - Address CVE-2013-6371 and CVE-2013-6370 (BZ #1085676 and #1085677). - Enabled rdrand support. * Mon Feb 10 2014 Susi Lehtola - 0.11-6 - Bump spec. * Sat Dec 21 2013 Ville Skyttä - 0.11-5 - Run test suite during build. - Drop empty NEWS from docs. * Tue Sep 10 2013 Susi Lehtola - 0.11-4 - Remove default warning flags so that package builds on EPEL as well. * Sat Aug 24 2013 Remi Collet - 0.11-3 - increase parser strictness for php * Sat Aug 03 2013 Fedora Release Engineering - 0.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Apr 29 2013 Remi Collet - 0.11-1 - update to 0.11 - fix source0 - enable both json and json-c libraries * Thu Feb 14 2013 Fedora Release Engineering - 0.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Nov 24 2012 Jussi Lehtola - 0.10-2 - Compile and install json_object_iterator using Remi Collet's fix (BZ #879771). * Sat Nov 24 2012 Jussi Lehtola - 0.10-1 - Update to 0.10 (BZ #879771). * Thu Jul 19 2012 Fedora Release Engineering - 0.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jan 23 2012 Jiri Pirko - 0.9-4 - add json_tokener_parse_verbose, and return NULL on parser errors * Fri Jan 13 2012 Fedora Release Engineering - 0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Apr 06 2010 Jussi Lehtola - 0.9-1 - First release.