Browse Source

json-c:
- update to 0.10
- update URL

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7171 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 11 years ago
parent
commit
1cf0f339c1
1 changed files with 15 additions and 5 deletions
  1. 15 5
      j/json-c/json-c-vl.spec

+ 15 - 5
j/json-c/json-c-vl.spec

@@ -1,18 +1,18 @@
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 
-%define pkg_version 0.9
-%define pkg_release 2%{?_dist_release}
+%define pkg_version 0.10
+%define pkg_release 1%{?_dist_release}
 
 Summary:	A JSON implementation in C
 Name:		json-c
 Version:	%{pkg_version}
 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
 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
 
@@ -72,8 +72,14 @@ for writing applications that are using json-c.
 %prep
 %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
-%configure --disable-static
+%configure --enable-shared --disable-static
 %{__make} %{?_smp_mflags}
 
 %install
@@ -121,6 +127,10 @@ for writing applications that are using json-c.
 
 
 %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
 - create compat32 sub packages