Initialize for libjansson
This commit is contained in:
commit
7b10a21bdd
7 changed files with 298 additions and 0 deletions
87
libjansson.spec
Normal file
87
libjansson.spec
Normal file
|
@ -0,0 +1,87 @@
|
|||
#
|
||||
# spec file for package libjansson
|
||||
#
|
||||
# Copyright (c) 2022-2023 ZhuningOS
|
||||
#
|
||||
|
||||
|
||||
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.14
|
||||
Release: 150000.3.5.1
|
||||
Url: http://digip.org/jansson/
|
||||
Source0: https://github.com/akheron/jansson/releases/download/v%{version}/jansson-%{version}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
Source2: https://github.com/akheron/jansson/releases/download/v%{version}/jansson-%{version}.tar.bz2.asc
|
||||
Source3: %name.keyring
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
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
|
||||
%setup -q -n jansson-%{version}
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -f "%buildroot/%_libdir"/*.la;
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%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
|
Loading…
Add table
Add a link
Reference in a new issue