- Update descriptions and mention feature set and noticable problems. There is another problem: the .pc file is in /usr/share/pkgconfig; this is wrong, because the .pc file contains an architecture-specific path (lib64), so the .pc file too needs to be in the arch-specific location /usr/lib64/pkgconfig/. OBS-URL: https://build.opensuse.org/request/show/830571 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libjsonparser?expand=0&rev=2
84 lines
2.6 KiB
RPMSpec
84 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package libjsonparser
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
%define sover 1_1
|
|
Name: libjsonparser
|
|
Version: 1.1.0
|
|
Release: 0
|
|
Summary: JSON parser written in ANSI C
|
|
License: BSD-2-Clause
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/udp/json-parser
|
|
Source: https://github.com/udp/json-parser/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM https://github.com/udp/json-parser/pull/45
|
|
Patch0: 0001-improve-pkgconfig-module-close-37.patch
|
|
BuildRequires: automake
|
|
BuildRequires: gcc
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
JSON parser written in ANSI C that never recurses.
|
|
In C++ mode, it offers a number of decorators like a default constructor,
|
|
begin()/end(), and implicit conversions.
|
|
|
|
%package -n libjsonparser%{sover}
|
|
Summary: JSON parser written in ANSI C
|
|
Group: System/Libraries
|
|
|
|
%description -n libjsonparser%{sover}
|
|
JSON parser written in ANSI C that never recurses.
|
|
In C++ mode, it offers a number of decorators like a default constructor,
|
|
begin()/end(), and implicit conversions.
|
|
|
|
%package devel
|
|
Summary: Development files for libjsonparser
|
|
Requires: libjsonparser%{sover} = %{version}
|
|
|
|
%description devel
|
|
Files needed to develop applications with libjsonparser.
|
|
|
|
This openSUSE build does not support the source line/column number
|
|
tracking, and setting -DJSON_TRACK_SOURCE in libjsonparser-using
|
|
projects will cause a silent ABI break.
|
|
|
|
%prep
|
|
%autosetup -n json-parser-%{version}
|
|
|
|
%build
|
|
autoreconf -vfi
|
|
%configure
|
|
%make_build
|
|
|
|
%install
|
|
make install-shared DESTDIR=%{buildroot}
|
|
|
|
%post -n libjsonparser%{sover} -p /sbin/ldconfig
|
|
%postun -n libjsonparser%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libjsonparser%{sover}
|
|
%license LICENSE
|
|
%doc README.md AUTHORS
|
|
%{_libdir}/libjsonparser.so.1.1
|
|
%{_libdir}/libjsonparser.so.1.1.0
|
|
|
|
%files devel
|
|
%{_libdir}/lib*.so
|
|
%{_includedir}/json-parser/
|
|
%{_datadir}/pkgconfig/json-parser.pc
|
|
|
|
%changelog
|