From a57608c0abc909dee6df12abd830469aac4de7e7 Mon Sep 17 00:00:00 2001 From: Radovan Sroka Date: Tue, 27 Sep 2016 15:22:18 +0200 Subject: [PATCH] Package created - version 0.99.4 --- .gitignore | 1 + libfastjson.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+) create mode 100644 libfastjson.spec diff --git a/.gitignore b/.gitignore index e69de29..b2aacf8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libfastjson-0.99.4.tar.gz diff --git a/libfastjson.spec b/libfastjson.spec new file mode 100644 index 0000000..7bd49cf --- /dev/null +++ b/libfastjson.spec @@ -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 - 0.99.4-1 +- Package created diff --git a/sources b/sources index e69de29..809c9c9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +18ee28081e87673e20d5d4412a7ca5d4 libfastjson-0.99.4.tar.gz