libfastjson/libfastjson.spec

60 lines
1.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:56:02 -04:00
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 <buildteam@openeuler.org> - 0.99.8-1
- Package init