2016-01-04 09:34:45 +00:00
|
|
|
#
|
|
|
|
# spec file for package libfastjson
|
|
|
|
#
|
2023-05-04 16:56:46 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-01-04 09:34:45 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2021-02-10 08:18:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-01-04 09:34:45 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-07-23 10:59:40 +00:00
|
|
|
%define somajor 4
|
2016-01-04 09:34:45 +00:00
|
|
|
Name: libfastjson
|
2023-05-04 16:56:46 +00:00
|
|
|
Version: 1.2304.0
|
2016-01-04 09:34:45 +00:00
|
|
|
Release: 0
|
2021-06-22 06:36:48 +00:00
|
|
|
Summary: JSON parsing library, a fork of json-c
|
2016-01-04 09:34:45 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2021-02-10 08:18:03 +00:00
|
|
|
URL: https://github.com/rsyslog/libfastjson
|
|
|
|
Source: https://download.rsyslog.com/libfastjson/%{name}-%{version}.tar.gz
|
2016-07-23 10:59:40 +00:00
|
|
|
BuildRequires: pkgconfig
|
2016-01-04 09:34:45 +00:00
|
|
|
|
|
|
|
%description
|
2021-06-22 06:36:48 +00:00
|
|
|
A JSON parsing library, a fork of json-c, developed by the rsyslog team
|
2016-01-04 09:34:45 +00:00
|
|
|
and used for rsyslog and liblognorm.
|
|
|
|
|
|
|
|
%package -n libfastjson%{somajor}
|
2021-06-22 06:36:48 +00:00
|
|
|
Summary: JSON parsing library
|
2016-01-04 09:34:45 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libfastjson%{somajor}
|
2021-06-22 06:36:48 +00:00
|
|
|
A JSON parsing library, a fork of json-c, developed by the rsyslog team
|
2016-01-04 09:34:45 +00:00
|
|
|
and used for rsyslog and liblognorm.
|
|
|
|
|
|
|
|
This package includes the libfastjson library.
|
|
|
|
|
|
|
|
%package -n libfastjson-devel
|
|
|
|
Summary: Development headers and libraries for libfastjson
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libfastjson%{somajor} = %{version}
|
|
|
|
|
|
|
|
%description -n libfastjson-devel
|
2021-06-22 06:36:48 +00:00
|
|
|
A JSON parsing library, a fork of json-c, developed by the rsyslog team
|
2016-01-04 09:34:45 +00:00
|
|
|
and used for rsyslog and liblognorm.
|
|
|
|
|
|
|
|
This package includes header files and scripts needed for developers
|
|
|
|
using the libfastjson library
|
|
|
|
|
|
|
|
%prep
|
2021-06-22 06:36:48 +00:00
|
|
|
%autosetup
|
2016-01-04 09:34:45 +00:00
|
|
|
|
|
|
|
%build
|
2021-06-22 06:36:48 +00:00
|
|
|
%configure --disable-static
|
2021-02-10 08:18:03 +00:00
|
|
|
%make_build
|
2016-01-04 09:34:45 +00:00
|
|
|
|
|
|
|
%check
|
2021-02-10 08:18:03 +00:00
|
|
|
%make_build check
|
2016-01-04 09:34:45 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-08 09:08:10 +00:00
|
|
|
%make_install
|
2016-01-04 09:34:45 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%post -n libfastjson%{somajor} -p /sbin/ldconfig
|
|
|
|
%postun -n libfastjson%{somajor} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libfastjson%{somajor}
|
2018-05-28 06:29:47 +00:00
|
|
|
%license COPYING
|
2016-01-04 09:34:45 +00:00
|
|
|
%{_libdir}/libfastjson.so.%{somajor}*
|
|
|
|
|
|
|
|
%files -n libfastjson-devel
|
2018-05-28 06:29:47 +00:00
|
|
|
%doc AUTHORS
|
|
|
|
%license COPYING
|
2016-01-04 09:34:45 +00:00
|
|
|
%{_libdir}/libfastjson.so
|
|
|
|
%{_includedir}/libfastjson
|
|
|
|
%{_libdir}/pkgconfig/libfastjson.pc
|
|
|
|
|
|
|
|
%changelog
|