json-c/json-c.spec

145 lines
4.3 KiB
RPMSpec
Raw Normal View History

2014-07-24 11:22:06 +00:00
%global reldate 20140410
2014-07-25 02:59:20 +00:00
Name: json-c
Version: 0.12
Release: 1%{?dist}
Summary: A JSON implementation in C
License: MIT
URL: https://github.com/json-c/json-c/wiki
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{reldate}.tar.gz
2014-07-24 11:22:06 +00:00
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
2010-04-08 05:14:21 +00:00
%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.
2014-07-24 11:22:06 +00:00
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2010-04-08 05:14:21 +00:00
2014-07-24 11:22:06 +00:00
%description devel
This package contains libraries and header files for
developing applications that use %{name}.
2010-04-08 05:14:21 +00:00
2014-07-24 11:22:06 +00:00
%package doc
2014-07-25 02:59:20 +00:00
Summary: Reference manual for json-c
2014-07-24 11:22:06 +00:00
%if 0%{?fedora} > 10 || 0%{?rhel} > 5
2014-07-25 02:59:20 +00:00
BuildArch: noarch
2010-04-08 16:29:32 +00:00
%endif
2010-04-08 05:14:21 +00:00
2014-07-24 11:22:06 +00:00
%description doc
2010-04-08 05:14:21 +00:00
This package contains the reference manual for json-c.
%prep
2014-07-24 11:22:06 +00:00
%setup -qn json-c-json-c-%{version}-%{reldate}
# Get rid of maintainer mode cflags.
sed -i 's|-Werror ||g' Makefile.am.inc
2013-08-24 08:13:01 +00:00
2010-04-08 05:14:21 +00:00
for doc in ChangeLog; do
iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
touch -r $doc $doc.new &&
mv $doc.new $doc
done
%build
2014-07-25 02:59:20 +00:00
# Get rid of rpath.
2014-07-24 11:22:06 +00:00
autoreconf -fiv
2014-04-09 17:15:14 +00:00
%configure --enable-shared --disable-static --disable-rpath --enable-rdrand
2014-07-24 11:22:06 +00:00
make %{?_smp_mflags}
2010-04-08 05:14:21 +00:00
%install
2014-07-24 11:22:06 +00:00
%make_install
2010-04-08 05:14:21 +00:00
# Get rid of la files
2014-07-24 11:22:06 +00:00
find %{buildroot} -name '*.la' -delete -print
%check
make check
2014-07-25 02:59:20 +00:00
%pretrans devel -p <lua>
path = "%{_includedir}/json-c"
st = posix.stat(path)
if st and st.type == "link" then
os.remove(path)
end
2010-04-08 05:14:21 +00:00
%post -p /sbin/ldconfig
2014-07-24 11:22:06 +00:00
%postun -p /sbin/ldconfig
2010-04-08 05:14:21 +00:00
%files
2014-07-12 22:25:01 +00:00
%{!?_licensedir:%global license %%doc}
%license COPYING
%{_libdir}/libjson-c.so.*
2010-04-08 05:14:21 +00:00
%files devel
2014-07-24 11:22:06 +00:00
%doc AUTHORS ChangeLog README README.html
%{_includedir}/json-c/
%{_libdir}/libjson-c.so
%{_libdir}/pkgconfig/json-c.pc
2010-04-08 05:14:21 +00:00
%files doc
%doc doc/html/*
%changelog
2014-07-24 11:22:06 +00:00
* Thu Jul 24 2014 Christopher Meng <rpm@cicku.me> - 0.12-1
- Update to 0.12
2014-07-12 22:25:01 +00:00
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org> - 0.11-8
- fix license handling
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-04-09 17:15:14 +00:00
* Wed Apr 09 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.11-7
- Address CVE-2013-6371 and CVE-2013-6370 (BZ #1085676 and #1085677).
- Enabled rdrand support.
2014-02-10 08:27:01 +00:00
* Mon Feb 10 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.11-6
- Bump spec.
* Sat Dec 21 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.11-5
- Run test suite during build.
- Drop empty NEWS from docs.
* Tue Sep 10 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.11-4
- Remove default warning flags so that package builds on EPEL as well.
2013-08-24 08:13:01 +00:00
* Sat Aug 24 2013 Remi Collet <remi@fedoraproject.org> - 0.11-3
- increase parser strictness for php
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Mon Apr 29 2013 Remi Collet <remi@fedoraproject.org> - 0.11-1
- update to 0.11
- fix source0
- enable both json and json-c libraries
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Nov 24 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.10-2
- Compile and install json_object_iterator using Remi Collet's fix (BZ #879771).
2012-11-24 13:07:01 +00:00
* Sat Nov 24 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.10-1
- Update to 0.10 (BZ #879771).
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jan 23 2012 Jiri Pirko <jpirko@redhat.com> - 0.9-4
- add json_tokener_parse_verbose, and return NULL on parser errors
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-04-08 05:14:21 +00:00
* Tue Apr 06 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.9-1
- First release.