96 lines
2.1 KiB
RPMSpec
96 lines
2.1 KiB
RPMSpec
Name: yajl
|
|
Version: 2.1.0
|
|
Release: 13
|
|
Summary: Yet Another JSON Library
|
|
License: ISC
|
|
URL: http://lloyd.github.com/yajl/
|
|
Source0: https://github.com/lloyd/yajl/archive/%{version}.tar.gz
|
|
|
|
Patch1: yajl-2.1.0-pkgconfig-location.patch
|
|
Patch2: yajl-2.1.0-pkgconfig-includedir.patch
|
|
Patch3: yajl-2.1.0-test-location.patch
|
|
Patch4: yajl-2.1.0-dynlink-binaries.patch
|
|
Patch5: yajl-2.1.0-fix-memory-leak.patch
|
|
|
|
BuildRequires: cmake
|
|
|
|
%description
|
|
yajl is a small event-driven JSON parser written in ANSI C, and a small
|
|
validating JSON generator.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package provides the libraries and includes
|
|
necessary for developing against the yajl library.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
mkdir build
|
|
cd build
|
|
%cmake ..
|
|
%make_build VERBOSE=1
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
cd build
|
|
%make_install
|
|
|
|
%check
|
|
cd test/parsing
|
|
./run_tests.sh
|
|
cd ../api
|
|
./run_tests.sh
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING README ChangeLog TODO
|
|
%{_bindir}/json_reformat
|
|
%{_bindir}/json_verify
|
|
|
|
%{_libdir}/libyajl.so.*
|
|
%{_libdir}/libyajl.so
|
|
|
|
%files devel
|
|
%dir %{_includedir}/yajl
|
|
%{_includedir}/yajl/yajl_common.h
|
|
%{_includedir}/yajl/yajl_gen.h
|
|
%{_includedir}/yajl/yajl_parse.h
|
|
%{_includedir}/yajl/yajl_tree.h
|
|
%{_includedir}/yajl/yajl_version.h
|
|
|
|
%{_libdir}/pkgconfig/yajl.pc
|
|
%{_libdir}/libyajl_s.a
|
|
|
|
%changelog
|
|
* Wed Sep 9 2020 wangchen<wangchen137@huawei.com> - 2.1.0-13
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:modify the URL of Source0
|
|
|
|
* Sat Aug 31 2019 dongjian<dongjian13@huawei.com> - 2.1.0-12
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: modify summary and some structures
|
|
|
|
* Tue Aug 20 2019 fangyufa<fangyufa1@huawei.com> - 2.1.0-11.h3
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: modify name of patch
|
|
|
|
* Fri Aug 09 2019 fangyufa<fangyufa1@huawei.com> - 2.1.0-11.h2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: add head info of patch
|
|
|
|
* Thu Aug 01 2019 shenyangyang <shenyangyang4@huawei.com> - 2.1.0-11.h1
|
|
- Package Initialization
|