2024-01-06 00:02:10 +01:00
|
|
|
Name: jansson
|
2024-01-06 00:02:10 +01:00
|
|
|
Version: 2.13.1
|
|
|
|
Release: 1mamba
|
2024-01-06 00:02:10 +01:00
|
|
|
Summary: A C library for encoding, decoding and manipulating JSON data
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.digip.org/jansson/
|
|
|
|
Source: http://www.digip.org/jansson/releases/jansson-%{version}.tar.bz2
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Jansson is a C library for encoding, decoding and manipulating JSON data.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 00:02:10 +01:00
|
|
|
%ifarch x86_64 aarch64
|
2024-01-06 00:02:10 +01:00
|
|
|
sed -i "s|\"lib\"|\"lib64\"|" CMakeLists.txt
|
|
|
|
%endif
|
2024-01-06 00:02:10 +01:00
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
%build
|
2024-01-06 00:02:10 +01:00
|
|
|
%cmake -d build \
|
|
|
|
-DJANSSON_BUILD_SHARED_LIBS=TRUE \
|
2024-01-06 00:02:10 +01:00
|
|
|
-DJANSSON_INSTALL_LIB_DIR=/%{_lib} \
|
2024-01-06 00:02:10 +01:00
|
|
|
-DJANSSON_INSTALL_CMAKE_DIR=%{_libdir}/cmake/jansson
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
%ifarch x86_64 aarch64
|
2024-01-06 00:02:10 +01:00
|
|
|
mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}%{_libdir}
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libjansson.so.*
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/jansson.h
|
|
|
|
%{_includedir}/jansson_config.h
|
2024-01-06 00:02:10 +01:00
|
|
|
%{_libdir}/cmake/jansson/janssonConfig.cmake
|
|
|
|
%{_libdir}/cmake/jansson/janssonConfigVersion.cmake
|
|
|
|
%{_libdir}/cmake/jansson/janssonTargets-noconfig.cmake
|
|
|
|
%{_libdir}/cmake/jansson/janssonTargets.cmake
|
2024-01-06 00:02:10 +01:00
|
|
|
%{_libdir}/libjansson.so
|
|
|
|
%{_libdir}/pkgconfig/jansson.pc
|
2024-01-06 00:02:10 +01:00
|
|
|
#%{_libdir}/libjansson.so
|
2024-01-06 00:02:10 +01:00
|
|
|
%doc CHANGES README.rst
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 00:02:10 +01:00
|
|
|
* Sun May 17 2020 Automatic Build System <autodist@mambasoft.it> 2.13.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
* Sun Mar 24 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-2mamba
|
|
|
|
- fix libdir in pkgconfig file
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
* Mon Dec 24 2018 Automatic Build System <autodist@mambasoft.it> 2.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
* Thu Mar 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11-2mamba
|
|
|
|
- fix libdir in pkgconfig file
|
|
|
|
|
|
|
|
* Thu Mar 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11-1mamba
|
|
|
|
- update to 2.11
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
* Sat Mar 18 2017 Automatic Build System <autodist@mambasoft.it> 2.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
* Mon Oct 10 2016 Automatic Build System <autodist@mambasoft.it> 2.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
* Tue Nov 04 2014 Automatic Build System <autodist@mambasoft.it> 2.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 00:02:10 +01:00
|
|
|
* Wed Aug 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-1mamba
|
|
|
|
- package created using the webbuild interface
|