|
@@ -1,6 +1,6 @@
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
-%define pkg_version 0.10
|
|
+%define pkg_version 0.11
|
|
%define pkg_release 1%{?_dist_release}
|
|
%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
Summary: A JSON implementation in C
|
|
Summary: A JSON implementation in C
|
|
@@ -8,7 +8,7 @@ Name: json-c
|
|
Version: %{pkg_version}
|
|
Version: %{pkg_version}
|
|
Release: %{pkg_release}
|
|
Release: %{pkg_release}
|
|
|
|
|
|
-Source0: https://github.com/downloads/json-c/json-c/json-c-%{version}.tar.gz
|
|
+Source0: https://github.com/downloads/json-c/json-c/json-c-%{version}.tar.gz
|
|
|
|
|
|
License: MIT
|
|
License: MIT
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
@@ -79,8 +79,9 @@ sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \
|
|
-i Makefile.in
|
|
-i Makefile.in
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --enable-shared --disable-static
|
|
+autoreconf -fiv
|
|
-%{__make} %{?_smp_mflags}
|
|
+%configure --enable-shared --disable-static --disable-rpath --enable-rdrand
|
|
|
|
+%{__make}
|
|
|
|
|
|
%install
|
|
%install
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
@@ -103,12 +104,16 @@ sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING ChangeLog COPYING NEWS README README.html
|
|
%doc COPYING ChangeLog COPYING NEWS README README.html
|
|
%{_libdir}/libjson.so.*
|
|
%{_libdir}/libjson.so.*
|
|
|
|
+%{_libdir}/libjson-c.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/json/*
|
|
%{_includedir}/json/*
|
|
|
|
+%{_includedir}/json-c/*
|
|
%{_libdir}/libjson.so
|
|
%{_libdir}/libjson.so
|
|
|
|
+%{_libdir}/libjson-c.so
|
|
%{_libdir}/pkgconfig/json.pc
|
|
%{_libdir}/pkgconfig/json.pc
|
|
|
|
+%{_libdir}/pkgconfig/json-c.pc
|
|
|
|
|
|
%files doc
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -118,15 +123,21 @@ sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \
|
|
%files -n compat32-%{name}
|
|
%files -n compat32-%{name}
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libjson.so.*
|
|
%{_libdir}/libjson.so.*
|
|
|
|
+%{_libdir}/libjson-c.so.*
|
|
|
|
|
|
%files -n compat32-%{name}-devel
|
|
%files -n compat32-%{name}-devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libjson.so
|
|
%{_libdir}/libjson.so
|
|
|
|
+%{_libdir}/libjson-c.so
|
|
%{_libdir}/pkgconfig/json.pc
|
|
%{_libdir}/pkgconfig/json.pc
|
|
|
|
+%{_libdir}/pkgconfig/json-c.pc
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Jan 17 2015 Daisuke SUZUKI <daisuke@vinelinux.org> 0.11-1
|
|
|
|
+- update to 0.11
|
|
|
|
+
|
|
* Wed Nov 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10-1
|
|
* Wed Nov 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10-1
|
|
- update to 0.10
|
|
- update to 0.10
|
|
- update URL
|
|
- update URL
|