Blame SPECS/libfastjson.spec

17a287
Name:		libfastjson
666609
Version:	0.99.9
666609
Release:	1%{?dist}
17a287
Summary:	A JSON implementation in C
17a287
License:	MIT
17a287
URL:		https://github.com/rsyslog/libfastjson
17a287
Source0:	http://download.rsyslog.com/libfastjson/libfastjson-%{version}.tar.gz
17a287
17a287
BuildRequires: autoconf automake libtool
17a287
17a287
%description
17a287
LIBFASTJSON implements a reference counting object
17a287
model that allows you to easily construct JSON
17a287
objects in C, output them as JSON formatted strings
17a287
and parse JSON formatted strings back into the
17a287
C representation of JSON objects.
17a287
17a287
%package	devel
17a287
Summary:	Development files for libfastjson
17a287
Group:		Development/Libraries
17a287
Requires:	%{name}%{?_isa} = %{version}-%{release}
17a287
17a287
%description	devel
17a287
This package contains libraries and header files for
17a287
developing applications that use libfastjson.
17a287
17a287
%prep
17a287
%setup -q
17a287
17a287
for doc in ChangeLog; do
17a287
 iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
17a287
 touch -r $doc $doc.new &&
17a287
 mv $doc.new $doc
17a287
done
17a287
17a287
%build
17a287
autoreconf -iv
17a287
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" # temporary workaround for EPEL5, fixed upstream
17a287
%configure --enable-shared --disable-static
17a287
17a287
%install
17a287
make V=1 DESTDIR=%{buildroot} install
17a287
find %{buildroot} -name '*.la' -delete -print
17a287
17a287
%check
17a287
make V=1 check
17a287
17a287
%post -p /sbin/ldconfig
17a287
17a287
%postun -p /sbin/ldconfig
17a287
17a287
%files
17a287
%{!?_licensedir:%global license %%doc}
17a287
%license COPYING
17a287
%doc AUTHORS ChangeLog README.html
17a287
%{_libdir}/libfastjson.so.*
17a287
17a287
%files devel
17a287
%{_includedir}/libfastjson
17a287
%{_libdir}/libfastjson.so
17a287
%{_libdir}/pkgconfig/libfastjson.pc
17a287
17a287
%changelog
666609
* Thu Apr 22 2021 Attila Lakatos <alakatos@redhat.com> - 0.99.9-1
666609
- rebase to v0.99.9
666609
Resolves: rhbz#1936807
666609
17a287
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.8-2
17a287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
17a287
17a287
* Thu Jan 11 2018 Jiri Vymazal <jvymazal@redhat.com> - 0.99.8-1
17a287
- rebase to v0.99.8
17a287
17a287
* Mon Oct 23 2017 Radovan Sroka <rsroka@redhat.com> - 0.99.7-1
17a287
- rebase to v0.99.7
17a287
17a287
* Tue Aug 15 2017 Marek Tamaskovic <mtamasko@redhat.com> - 0.99.6-1
17a287
- rebase to v0.99.6
17a287
17a287
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-3
17a287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
17a287
17a287
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-2
17a287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
17a287
17a287
* Mon May 22 2017 Radovan Sroka <rsroka@redhat.com> - 0.99.5-1
17a287
- added autoreconf
17a287
- rebase to v0.99.5
17a287
17a287
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.4-2
17a287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
17a287
17a287
* Tue Sep 27 2016 Radovan Sroka <rsroka@redhat.com> - 0.99.4-1
17a287
- Package created