|
@@ -1,18 +1,18 @@
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
-%define pkg_version 0.9
|
|
+%define pkg_version 0.10
|
|
-%define pkg_release 2%{?_dist_release}
|
|
+%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
Summary: A JSON implementation in C
|
|
Summary: A JSON implementation in C
|
|
Name: json-c
|
|
Name: json-c
|
|
Version: %{pkg_version}
|
|
Version: %{pkg_version}
|
|
Release: %{pkg_release}
|
|
Release: %{pkg_release}
|
|
|
|
|
|
-Source0: http://oss.metaparadigm.com/json-c/%{name}-%{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
|
|
-URL: http://oss.metaparadigm.com/json-c/
|
|
+URL: https://github.com/json-c/json-c/wiki
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
@@ -72,8 +72,14 @@ for writing applications that are using json-c.
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
|
|
+# Hack to get json_object_iterator.c compiled
|
|
|
|
+sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \
|
|
|
|
+ -e 's/json_object.h/json_object.h json_object_iterator.h/' \
|
|
|
|
+ -e 's/json_object.lo/json_object.lo json_object_iterator.lo/' \
|
|
|
|
+ -i Makefile.in
|
|
|
|
+
|
|
%build
|
|
%build
|
|
-%configure --disable-static
|
|
+%configure --enable-shared --disable-static
|
|
%{__make} %{?_smp_mflags}
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -121,6 +127,10 @@ for writing applications that are using json-c.
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Nov 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10-1
|
|
|
|
+- update to 0.10
|
|
|
|
+- update URL
|
|
|
|
+
|
|
* Sat Oct 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-2
|
|
* Sat Oct 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-2
|
|
- create compat32 sub packages
|
|
- create compat32 sub packages
|
|
|
|
|