Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lrupp
xml2json
xml2json.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xml2json.spec of Package xml2json
# # spec file for package xml2json # # Copyright (c) 2023 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: xml2json Version: 01 Release: 0 Summary: Deprecated Python script converts XML to JSON or the other way around Group: Productivity/Other License: MIT URL: https://github.com/hay/xml2json Source: %{name}-%{version}.tar.xz Requires: %{python_module simplejson} BuildRequires: python-rpm-macros BuildRequires: %{python_module simplejson} BuildRequires: %{python_module setuptools} BuildArch: noarch %description This (deprecated) Python script converts XML to JSON or the other way around. xml2json relies on ElementTree for the XML parsing. This is based on pesterfish.py but uses a different XML->JSON mapping. Invoke the script from the command line like this $ xml2json -t xml2json -o file.json file.xml %prep %setup -q sed -i "s|/usr/bin/env python|%{_bindir}/python|g" xml2json.py %build # %install install -Dm0755 xml2json.py %{buildroot}%{_bindir}/xml2json %files %license LICENSE %doc README.md %{_bindir}/xml2json %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