Blame SPECS/libfastjson.spec

5ff640
Name:		libfastjson
5ff640
Version:	0.99.4
5ff640
Release:	2%{?dist}
5ff640
Summary:	A JSON implementation in C
5ff640
License:	MIT
5ff640
URL:		https://github.com/rsyslog/libfastjson
5ff640
Source0:	http://download.rsyslog.com/libfastjson/libfastjson-%{version}.tar.gz
5ff640
5ff640
# 1421612 - New defect found in libfastjson-0.99.4-1.el7
5ff640
Patch0: libfastjson-0.99.4-rhbz1421612-nullptr-guard.patch
5ff640
5ff640
%description
5ff640
LIBFASTJSON implements a reference counting object
5ff640
model that allows you to easily construct JSON
5ff640
objects in C, output them as JSON formatted strings
5ff640
and parse JSON formatted strings back into the
5ff640
C representation of JSON objects.
5ff640
5ff640
%package	devel
5ff640
Summary:	Development files for libfastjson
5ff640
Group:		Development/Libraries
5ff640
Requires:	%{name}%{?_isa} = %{version}-%{release}
5ff640
5ff640
%description	devel
5ff640
This package contains libraries and header files for
5ff640
developing applications that use libfastjson.
5ff640
5ff640
%prep
5ff640
%setup -q
5ff640
%patch0 -p1
5ff640
5ff640
for doc in ChangeLog; do
5ff640
 iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
5ff640
 touch -r $doc $doc.new &&
5ff640
 mv $doc.new $doc
5ff640
done
5ff640
5ff640
%build
5ff640
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" # temporary workaround for EPEL5, fixed upstream
5ff640
%configure --enable-shared --disable-static
5ff640
5ff640
%install
5ff640
make V=1 DESTDIR=%{buildroot} install
5ff640
find %{buildroot} -name '*.la' -delete -print
5ff640
5ff640
%check
5ff640
make V=1 check
5ff640
5ff640
%post -p /sbin/ldconfig
5ff640
5ff640
%postun -p /sbin/ldconfig
5ff640
5ff640
%files
5ff640
%{!?_licensedir:%global license %%doc}
5ff640
%license COPYING
5ff640
%doc AUTHORS ChangeLog README.html
5ff640
%{_libdir}/libfastjson.so.*
5ff640
5ff640
%files devel
5ff640
%{_includedir}/libfastjson
5ff640
%{_libdir}/libfastjson.so
5ff640
%{_libdir}/pkgconfig/libfastjson.pc
5ff640
5ff640
%changelog
5ff640
* Tue Mar 07 2017 Daniel Kopecek <dkopecek@redhat.com> - 0.99.4-2
5ff640
- Fix defect found by clang-analyzer
5ff640
  Resolves: #1421612
5ff640
5ff640
* Tue Jan 24 2017 Daniel Kopecek <dkopecek@redhat.com> - 0.99.4-1
5ff640
- Import
5ff640
  Resolves: #1395145