Package created

- version 0.99.4
This commit is contained in:
Radovan Sroka 2016-09-27 15:22:18 +02:00
parent c9a07448a3
commit a57608c0ab
3 changed files with 64 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/libfastjson-0.99.4.tar.gz

62
libfastjson.spec Normal file
View File

@ -0,0 +1,62 @@
Name: libfastjson
Version: 0.99.4
Release: 1%{?dist}
Summary: A JSON implementation in C
License: MIT
URL: https://github.com/rsyslog/libfastjson
Source0: http://download.rsyslog.com/libfastjson/libfastjson-%{version}.tar.gz
%description
LIBFASTJSON implements a reference counting object
model that allows you to easily construct JSON
objects in C, output them as JSON formatted strings
and parse JSON formatted strings back into the
C representation of JSON objects.
%package devel
Summary: Development files for libfastjson
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains libraries and header files for
developing applications that use libfastjson.
%prep
%setup -q
for doc in ChangeLog; do
iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
touch -r $doc $doc.new &&
mv $doc.new $doc
done
%build
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" # temporary workaround for EPEL5, fixed upstream
%configure --enable-shared --disable-static
%install
make V=1 DESTDIR=%{buildroot} install
find %{buildroot} -name '*.la' -delete -print
%check
make V=1 check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc AUTHORS ChangeLog README.html
%{_libdir}/libfastjson.so.*
%files devel
%{_includedir}/libfastjson
%{_libdir}/libfastjson.so
%{_libdir}/pkgconfig/libfastjson.pc
%changelog
* Tue Sep 27 2016 Radovan Sroka <rsroka@redhat.com> - 0.99.4-1
- Package created

View File

@ -0,0 +1 @@
18ee28081e87673e20d5d4412a7ca5d4 libfastjson-0.99.4.tar.gz