|
@@ -1,24 +1,24 @@
|
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
-%define pkg_version 0.11
|
|
|
-%define pkg_release 1%{?_dist_release}
|
|
|
+%define pkg_version 0.13.1
|
|
|
+%define pkg_date 20180305
|
|
|
+%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
Summary: A JSON implementation in C
|
|
|
Name: json-c
|
|
|
Version: %{pkg_version}
|
|
|
Release: %{pkg_release}
|
|
|
|
|
|
-Source0: https://github.com/downloads/json-c/json-c/json-c-%{version}.tar.gz
|
|
|
+Source0: https://github.com/json-c/json-c/archive/json-c-json-c-%{version}-%{pkg_date}.tar.gz
|
|
|
|
|
|
License: MIT
|
|
|
Group: System Environment/Libraries
|
|
|
-URL: https://github.com/json-c/json-c/wiki
|
|
|
+URL: https://github.com/json-c/json-c/wiki
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
-Packager: Takemikaduchi
|
|
|
|
|
|
|
|
|
%description
|
|
@@ -70,7 +70,7 @@ for writing applications that are using json-c.
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -q
|
|
|
+%setup -q -n json-c-json-c-%{version}-%{pkg_date}
|
|
|
|
|
|
# Hack to get json_object_iterator.c compiled
|
|
|
sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \
|
|
@@ -102,17 +102,15 @@ autoreconf -fiv
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc COPYING ChangeLog COPYING NEWS README README.html
|
|
|
-%{_libdir}/libjson.so.*
|
|
|
+%license COPYING
|
|
|
+%doc AUTHORS ChangeLog NEWS README*
|
|
|
%{_libdir}/libjson-c.so.*
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root,-)
|
|
|
-%{_includedir}/json/*
|
|
|
+%dir %{_includedir}/json-c
|
|
|
%{_includedir}/json-c/*
|
|
|
-%{_libdir}/libjson.so
|
|
|
%{_libdir}/libjson-c.so
|
|
|
-%{_libdir}/pkgconfig/json.pc
|
|
|
%{_libdir}/pkgconfig/json-c.pc
|
|
|
|
|
|
%files doc
|
|
@@ -122,19 +120,19 @@ autoreconf -fiv
|
|
|
%if %{build_compat32}
|
|
|
%files -n compat32-%{name}
|
|
|
%defattr(-,root,root,-)
|
|
|
-%{_libdir}/libjson.so.*
|
|
|
%{_libdir}/libjson-c.so.*
|
|
|
|
|
|
%files -n compat32-%{name}-devel
|
|
|
%defattr(-,root,root,-)
|
|
|
-%{_libdir}/libjson.so
|
|
|
%{_libdir}/libjson-c.so
|
|
|
-%{_libdir}/pkgconfig/json.pc
|
|
|
%{_libdir}/pkgconfig/json-c.pc
|
|
|
%endif
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Jan 01 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.13.1-1
|
|
|
+- update to 0.13.1.
|
|
|
+
|
|
|
* Sat Jan 17 2015 Daisuke SUZUKI <daisuke@vinelinux.org> 0.11-1
|
|
|
- update to 0.11
|
|
|
|