Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rhabacker:linkedprojecttest
mingw32-jsoncpp
mingw32-jsoncpp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw32-jsoncpp.spec of Package mingw32-jsoncpp
# # spec file for package mingw32-jsoncpp # # Copyright (c) 2021 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 25 %define _name jsoncpp Name: mingw32-%{_name} Version: 1.9.5 Release: 0 Summary: C++ library that allows manipulating with JSON License: MIT Group: Development/Libraries/C and C++ URL: https://github.com/open-source-parsers/jsoncpp Source0: https://github.com/open-source-parsers/%{_name}/archive/refs/tags/%{version}.tar.gz#/%{_name}-%{version}.tar.gz Patch0: jsoncpp-1.9.5-external-jsontestrunner.patch BuildRequires: gcc-c++ BuildRequires: mingw32-cross-gcc-c++ BuildRequires: mingw32-cross-meson >= 0.50.0 # ignore dependencies to mingw32-cross-wine required by cross meson package # TODO there should be a cross meson package available without this dependency #!BuildIgnore: mingw32-cross-wine BuildRequires: python3-base # for testing BuildRequires: mingw32-libgcc BuildRequires: mingw32-libstdc++6 %_mingw32_package_header_debug BuildArch: noarch %description JSON is a lightweight data-interchange format. It can represent numbers, strings, ordered sequences of values, and collections of name/value pairs. JsonCpp is a C++ library that allows manipulating JSON values, including serialization and deserialization to and from strings. It can also preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files. %package devel Summary: Development files for %{name} Group: Development/Languages/C and C++ Requires: mingw32-lib%{_name}%{sover} = %{version} %description devel JSON is a lightweight data-interchange format. It can represent numbers, strings, ordered sequences of values, and collections of name/value pairs. JsonCpp is a C++ library that allows manipulating JSON values, including serialization and deserialization to and from strings. It can also preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files. %package -n mingw32-lib%{_name}%{sover} Summary: Shared library for %{name} Group: System/Libraries %description -n mingw32-lib%{_name}%{sover} JSON is a lightweight data-interchange format. It can represent numbers, strings, ordered sequences of values, and collections of name/value pairs. JsonCpp is a C++ library that allows manipulating JSON values, including serialization and deserialization to and from strings. It can also preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files. %_mingw32_debug_package %prep %autosetup -p1 -n %{_name}-%{version} %build # native build %meson %meson_build %_mingw32_meson -Djsontestrunner=$PWD/noarch-suse-linux/jsontestrunner -Djsoncpp_test=$PWD/noarch-suse-linux/jsoncpp_test %_mingw32_meson_build %install %_mingw32_meson_install pushd %{buildroot}%{_mingw32_includedir}/json/ # From 1.9.1 to 1.9.2, features.h has been renamed json_features.h # so, create a symlink for compatibility ln -s json_features.h features.h # From 1.9.2 to 1.9.3, autolink.h has been dropped and config.h must be used # so, create a symlink for compatibility ln -s config.h autolink.h popd %check %_mingw32_meson_test %files -n mingw32-lib%{_name}%{sover} %license LICENSE %{_mingw32_bindir}/lib%{_name}-%{sover}.dll %files devel %license LICENSE %doc AUTHORS README.md %{_mingw32_libdir}/pkgconfig/%{_name}.pc %{_mingw32_libdir}/lib%{_name}.dll.a %{_mingw32_includedir}/json/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor