CBL-Mariner/SPECS/json-c/json-c.spec

95 lines
2.7 KiB
Plaintext

%global publishdate 20200726
Summary: A JSON implementation in C
Name: json-c
Version: 0.15
Release: 1%{?dist}
License: MIT
Group: System Environment/Base
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/json-c/json-c
Source0: %{url}/archive/%{name}-%{version}-%{publishdate}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
%description
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 JSON formatted strings back into the C representation of JSON objects.
%package devel
Summary: Development libraries and header files for json-c
Requires: %{name} = %{version}-%{release}
%description devel
The package contains libraries and header files for
developing applications that use json-c.
%prep
%setup -q -n %{name}-%{name}-%{version}-%{publishdate}
%build
mkdir build
pushd build
%cmake ..
make %{?_smp_mflags}
popd
%install
make DESTDIR=%{buildroot} install -C build
rm -r %{buildroot}%{_libdir}/cmake/%{name}
%check
cd build/tests
make %{?_smp_mflags} test
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license COPYING
%{_libdir}/lib%{name}.so.*
%exclude %{_libdir}/libjson-c.a
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Thu Feb 24 2022 Cameron Baird <cameronbaird@microsoft.com> - 0.15-1
- Update source to v0.15
- Remove CVE-2020-12762.patch, Fix-CVE-2020-12762.patch (found in release source)
- Exclude static library
* Thu Nov 19 2020 Andrew Phelps <anphel@microsoft.com> - 0.14-3
- Fix check tests
* Tue Aug 04 2020 Henry Beberman <henry.beberman@microsoft.com> - 0.14-2
- Add a patch to fix a bug introduced by CVE-2020-12762.patch
* Mon Jun 08 2020 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.14-1
- Bumping up version and adding a patch to fix CVE-2020-12762.
- License verified.
- Removing "sha1" macro.
- Updated "Source0" tag to use the sources from project's main page instead of Amazon's AWS.
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 0.13.1-3
- Added %%license line automatically
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> - 0.13.1-2
- Initial CBL-Mariner import from Photon (license: Apache2).
* Wed Oct 10 2018 Ankit Jain <ankitja@vmware.com> - 0.13.1-1
- Updated package to version 0.13.1
* Mon Apr 03 2017 Divya Thaluru <dthaluru@vmware.com> - 0.12.1-1
- Updated package to version 0.12.1
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> - 0.12-2
- GA - Bump release of all rpms
* Wed Jun 17 2015 Divya Thaluru <dthaluru@vmware.com> - 0.12-1
- Initial build. First version