Blame SPECS/libfastjson.spec

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