|
@@ -1,17 +1,15 @@
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
-%define pkg_version 0.14
|
|
+%define pkg_date 20200726
|
|
-%define pkg_date 20200419
|
|
|
|
|
|
|
|
Summary: A JSON implementation in C
|
|
Summary: A JSON implementation in C
|
|
Name: json-c
|
|
Name: json-c
|
|
-Version: %{pkg_version}
|
|
+Version: 0.15
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
-Group: System Environment/Libraries
|
|
+Group: system
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
|
|
|
|
-
|
|
|
|
License: MIT
|
|
License: MIT
|
|
URL: https://github.com/json-c/json-c/wiki
|
|
URL: https://github.com/json-c/json-c/wiki
|
|
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{pkg_date}.tar.gz
|
|
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{pkg_date}.tar.gz
|
|
@@ -20,7 +18,6 @@ Patch1000: CVE-2020-12762.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: cmake
|
|
BuildRequires: cmake
|
|
|
|
|
|
-
|
|
|
|
%description
|
|
%description
|
|
JSON-C implements a reference counting object model that allows you to easily
|
|
JSON-C implements a reference counting object model that allows you to easily
|
|
construct JSON objects in C, output them as JSON formatted strings and parse
|
|
construct JSON objects in C, output them as JSON formatted strings and parse
|
|
@@ -29,7 +26,7 @@ JSON formatted strings back into the C representation of JSON objects.
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files for json-c
|
|
Summary: Development files for json-c
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
Requires: pkgconfig
|
|
|
|
|
|
@@ -40,7 +37,7 @@ for writing applications that are using json-c.
|
|
|
|
|
|
%package doc
|
|
%package doc
|
|
Summary: Documentation for json-c
|
|
Summary: Documentation for json-c
|
|
-Group: Documentation
|
|
+Group: documentation
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
@@ -50,7 +47,7 @@ This package contains documentation for json-c.
|
|
|
|
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: A JSON implementation in C
|
|
Summary: A JSON implementation in C
|
|
-Group: System Environment/Libraries
|
|
+Group: system,legacy
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
%description -n compat32-%{name}
|
|
@@ -60,7 +57,7 @@ JSON formatted strings back into the C representation of JSON objects.
|
|
|
|
|
|
%package -n compat32-%{name}-devel
|
|
%package -n compat32-%{name}-devel
|
|
Summary: Development files for json-c
|
|
Summary: Development files for json-c
|
|
-Group: Development/Libraries
|
|
+Group: programming,legacy
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
Requires: pkgconfig
|
|
|
|
|
|
@@ -69,51 +66,37 @@ This package contains the libraries and header files that are needed
|
|
for writing applications that are using json-c.
|
|
for writing applications that are using json-c.
|
|
|
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q -n json-c-json-c-%{version}-%{pkg_date}
|
|
%setup -q -n json-c-json-c-%{version}-%{pkg_date}
|
|
-%patch1000 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-mkdir -p build
|
|
|
|
-pushd build
|
|
|
|
%cmake \
|
|
%cmake \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
-DENABLE_RDRAND=ON \
|
|
-DENABLE_RDRAND=ON \
|
|
../
|
|
../
|
|
-make %{_smp_mflags}
|
|
+%cmake_build
|
|
-popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
-pushd build
|
|
+%cmake_install
|
|
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
-popd
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
%check
|
|
-pushd build
|
|
+%ctest
|
|
-make %{_smp_mflags} test
|
|
|
|
-popd
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%license COPYING
|
|
%license COPYING
|
|
@@ -145,6 +128,10 @@ popd
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Sep 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.15-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped Patch1000: fixed in upstream.
|
|
|
|
+
|
|
* Sat May 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.14-1
|
|
* Sat May 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.14-1
|
|
- updated to 0.14.
|
|
- updated to 0.14.
|
|
- added Patch1000 to fix CVE-2020-12762.
|
|
- added Patch1000 to fix CVE-2020-12762.
|