Verify GPG signature: Perform build-time offline GPG verification. Please verify that included keyring matches your needs. For manipulation with the offline keyring, please use gpg-offline tool from openSUSE:Factory, devel-tools-building or Base:System. See the man page and/or /usr/share/doc/packages/gpg-offline/PACKAGING.HOWTO. If you need to build your package for older products and don't want to mess spec file with ifs, please follow PACKAGING.HOWTO: you can link or aggregate gpg-offline from devel:tools:building or use following trick with "osc meta prjconf": --- Cut here ---- %if 0%{?suse_version} <= 1220 Substitute: gpg-offline %endif Macros: %gpg_verify(dnf) \ %if 0%{?suse_version} > 1220\ echo "WARNING: Using %%gpg_verify macro from prjconf, not from gpg-offline package."\ gpg-offline --directory="%{-d:%{-d*}}%{!-d:%{_sourcedir}}" --package="%{-n:%{-n*}}%{!-n:%{name}}""%{-f: %{-f*}}" --verify %{**}\ %else\ echo "WARNING: Dummy prjconf macro. gpg-offline is not available, skipping %{**} GPG signature verification!"\ %endif\ %nil ----------------- OBS-URL: https://build.opensuse.org/request/show/143897 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libjansson?expand=0&rev=6
98 lines
2.8 KiB
RPMSpec
98 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package libjansson
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libjansson
|
|
%define lname libjansson4
|
|
Summary: C library for encoding, decoding and manipulating JSON data
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
Version: 2.3.1
|
|
Release: 0
|
|
Url: http://digip.org/jansson/
|
|
Source: jansson-%version.tar.gz
|
|
Source2: jansson-%version.tar.gz.asc
|
|
Source3: %name.keyring
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gpg-offline
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
Jansson is a C library for encoding, decoding and manipulating JSON data.
|
|
It features:
|
|
* Simple and intuitive API and data model
|
|
* Comprehensive documentation
|
|
* No dependencies on other libraries
|
|
* Full Unicode support (UTF-8)
|
|
* Extensive test suite
|
|
|
|
%package -n %lname
|
|
Summary: C library for encoding, decoding and manipulating JSON data
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n %lname
|
|
Jansson is a C library for encoding, decoding and manipulating JSON data.
|
|
It features:
|
|
* Simple and intuitive API and data model
|
|
* Comprehensive documentation
|
|
* No dependencies on other libraries
|
|
* Full Unicode support (UTF-8)
|
|
* Extensive test suite
|
|
|
|
%package devel
|
|
Summary: Development files for libjansson
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %lname = %version
|
|
|
|
%description devel
|
|
Jansson is a C library for encoding, decoding and manipulating JSON data.
|
|
It features:
|
|
* Simple and intuitive API and data model
|
|
* Comprehensive documentation
|
|
* No dependencies on other libraries
|
|
* Full Unicode support (UTF-8)
|
|
* Extensive test suite
|
|
|
|
%prep
|
|
%gpg_verify %{S:2}
|
|
%setup -q -n jansson-%{version}
|
|
|
|
%build
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
rm -f "%buildroot/%_libdir"/*.la;
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%files -n %lname
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libjansson.so.4*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/jansson.h
|
|
%{_includedir}/jansson_config.h
|
|
%{_libdir}/libjansson.so
|
|
%{_libdir}/pkgconfig/jansson.pc
|
|
|
|
%changelog
|