#2 Add sources for LICENSE.md and README.md
Closed a month ago by c72578. Opened a month ago by c72578.

file added
+24

@@ -0,0 +1,24 @@ 

+ MIT License

+ 

+ Copyright (c) 2006-2019 Arseny Kapoulkine

+ 

+ Permission is hereby granted, free of charge, to any person

+ obtaining a copy of this software and associated documentation

+ files (the "Software"), to deal in the Software without

+ restriction, including without limitation the rights to use,

+ copy, modify, merge, publish, distribute, sublicense, and/or sell

+ copies of the Software, and to permit persons to whom the

+ Software is furnished to do so, subject to the following

+ conditions:

+ 

+ The above copyright notice and this permission notice shall be

+ included in all copies or substantial portions of the Software.

+ 

+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,

+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES

+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND

+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT

+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,

+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR

+ OTHER DEALINGS IN THE SOFTWARE.

file added
+72

@@ -0,0 +1,72 @@ 

+ pugixml [![Build Status](https://travis-ci.org/zeux/pugixml.svg?branch=master)](https://travis-ci.org/zeux/pugixml) [![Build status](https://ci.appveyor.com/api/projects/status/9hdks1doqvq8pwe7/branch/master?svg=true)](https://ci.appveyor.com/project/zeux/pugixml) [![codecov.io](https://codecov.io/github/zeux/pugixml/coverage.svg?branch=master)](https://codecov.io/github/zeux/pugixml?branch=master) ![MIT](https://img.shields.io/badge/license-MIT-blue.svg)

+ =======

+ 

+ pugixml is a C++ XML processing library, which consists of a DOM-like interface with rich traversal/modification

+ capabilities, an extremely fast XML parser which constructs the DOM tree from an XML file/buffer, and an XPath 1.0

+ implementation for complex data-driven tree queries. Full Unicode support is also available, with Unicode interface

+ variants and conversions between different Unicode encodings (which happen automatically during parsing/saving).

+ 

+ pugixml is used by a lot of projects, both open-source and proprietary, for performance and easy-to-use interface.

+ 

+ ## Documentation

+ 

+ Documentation for the current release of pugixml is available on-line as two separate documents:

+ 

+ * [Quick-start guide](https://pugixml.org/docs/quickstart.html), that aims to provide enough information to start using the library;

+ * [Complete reference manual](https://pugixml.org/docs/manual.html), that describes all features of the library in detail.

+ 

+ You’re advised to start with the quick-start guide; however, many important library features are either not described in it at all or only mentioned briefly; if you require more information you should read the complete manual.

+ 

+ ## Example

+ 

+ Here's an example of how code using pugixml looks; it opens an XML file, goes over all Tool nodes and prints tools that have a Timeout attribute greater than 0:

+ 

+ ```c++

+ #include "pugixml.hpp"

+ #include <iostream>

+ 

+ int main()

+ {

+     pugi::xml_document doc;

+     pugi::xml_parse_result result = doc.load_file("xgconsole.xml");

+     if (!result)

+         return -1;

+         

+     for (pugi::xml_node tool: doc.child("Profile").child("Tools").children("Tool"))

+     {

+         int timeout = tool.attribute("Timeout").as_int();

+         

+         if (timeout > 0)

+             std::cout << "Tool " << tool.attribute("Filename").value() << " has timeout " << timeout << "\n";

+     }

+ }

+ ```

+ 

+ And the same example using XPath:

+ 

+ ```c++

+ #include "pugixml.hpp"

+ #include <iostream>

+ 

+ int main()

+ {

+     pugi::xml_document doc;

+     pugi::xml_parse_result result = doc.load_file("xgconsole.xml");

+     if (!result)

+         return -1;

+         

+     pugi::xpath_node_set tools_with_timeout = doc.select_nodes("/Profile/Tools/Tool[@Timeout > 0]");

+     

+     for (pugi::xpath_node node: tools_with_timeout)

+     {

+         pugi::xml_node tool = node.node();

+         std::cout << "Tool " << tool.attribute("Filename").value() <<

+             " has timeout " << tool.attribute("Timeout").as_int() << "\n";

+     }

+ }

+ ```

+ 

+ 

+ ## License

+ 

+ This library is available to anybody free of charge, under the terms of MIT License (see LICENSE.md).

file modified
+12 -3

@@ -2,12 +2,16 @@ 

  

  Name:           pugixml

  Version:        1.10

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        A light-weight C++ XML processing library

  License:        MIT

- URL:            http://pugixml.org

+ URL:            https://pugixml.org

  

  Source0:        https://github.com/zeux/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz

+ # Upstream PR: Add LICENSE.md and README.md to RELEASE

+ # https://github.com/zeux/pugixml/pull/295

+ Source1:        https://raw.githubusercontent.com/zeux/pugixml/v1.10/LICENSE.md

+ Source2:        https://raw.githubusercontent.com/zeux/pugixml/v1.10/README.md

  

  BuildRequires:  cmake gcc-c++

  

@@ -39,7 +43,8 @@ 

  

  %prep

  %setup -q -n %{name}-%{version}%{?prerel:%{prerel}}

- 

+ cp %{SOURCE1} .

+ cp %{SOURCE2} .

  

  %build

  rm -rf build && mkdir build && pushd build

@@ -73,6 +78,10 @@ 

  

  

  %changelog

+ * Mon Sep 16 2019 Wolfgang Stöggl <c72578@yahoo.de> - 1.10-2

+ - Add sources for LICENSE.md and README.md

+ - Change URL from http to https

+ 

  * Sun Sep 15 2019 Richard Shaw <hobbes1069@gmail.com> - 1.10-1

  - Update to 1.10.