2019-09-30 10:56:02 -04:00
|
|
|
Name: libfastjson
|
|
|
|
|
Version: 0.99.8
|
2020-01-10 16:15:44 +08:00
|
|
|
Release: 2
|
2019-09-30 10:56:02 -04:00
|
|
|
Summary: JSON-C - A JSON implementation in C
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/rsyslog/libfastjson
|
|
|
|
|
Source0: libfastjson-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
libfastjson is a fork from json-c, and is currently
|
|
|
|
|
under development. The aim of this is not to provide
|
|
|
|
|
a slightly modified clone of json-c. It's aim is to
|
|
|
|
|
provide: a small library with essential json handling
|
|
|
|
|
functions, sufficiently good json support (not 100%
|
|
|
|
|
standards compliant), be very fast in processing.
|
|
|
|
|
|
|
|
|
|
Obsoletes: %{name}
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for libfastjson
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
provide development files for libfastjson
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -iv
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -Wl,-z,relro,-z,now -fstack-protector-strong"
|
|
|
|
|
%configure --enable-shared --disable-static
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make V=1 DESTDIR=%{buildroot} install
|
|
|
|
|
rm -f %{buildroot}/usr/lib64/libfastjson.la
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make V=1 check
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS ChangeLog README.html
|
|
|
|
|
%{_libdir}/libfastjson.so*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/libfastjson
|
2020-01-10 16:15:44 +08:00
|
|
|
%{_libdir}/libfastjson.so
|
2019-09-30 10:56:02 -04:00
|
|
|
%{_libdir}/pkgconfig/libfastjson.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-01-10 16:15:44 +08:00
|
|
|
* Fri Jan 10 2020 BruceGW <gyl93216@163.com> - 0.99.8-2
|
|
|
|
|
- Fix duplicate provides
|
|
|
|
|
|
2019-09-30 10:56:02 -04:00
|
|
|
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.99.8-1
|
|
|
|
|
- Package init
|