commit f4fdfd681f4c41b1aa08ccf8c9e6fcdbed12b2a1 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:56:02 2019 -0400 Package init diff --git a/libfastjson-0.99.8.tar.gz b/libfastjson-0.99.8.tar.gz new file mode 100644 index 0000000..27d8adc Binary files /dev/null and b/libfastjson-0.99.8.tar.gz differ diff --git a/libfastjson.spec b/libfastjson.spec new file mode 100644 index 0000000..b3a9d15 --- /dev/null +++ b/libfastjson.spec @@ -0,0 +1,59 @@ +Name: libfastjson +Version: 0.99.8 +Release: 1 +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 +%{_libdir}/libfastjson.so* +%{_libdir}/pkgconfig/libfastjson.pc + +%changelog +* Mon Sep 2 2019 openEuler Buildteam - 0.99.8-1 +- Package init