Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f01c1cf19f | |||
| d5ef6a6989 | |||
| e231876801 |
BIN
xmlto-0.0.28.tar.bz2
LFS
BIN
xmlto-0.0.28.tar.bz2
LFS
Binary file not shown.
3
xmlto-0.0.29.tar.bz2
Normal file
3
xmlto-0.0.29.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6000d8e8f0f9040426c4f85d7ad86789bc88d4aeaef585c4d4110adb0b214f21
|
||||
size 54700
|
||||
@@ -1,44 +0,0 @@
|
||||
--- a/xmlif/xmlif.l
|
||||
+++ b/xmlif/xmlif.l
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
static char **selections; /* selection tokens */
|
||||
static int nselections; /* number of selections */
|
||||
-static ifsense; /* sense of last `if' or unless seen */
|
||||
+static int ifsense; /* sense of last `if' or unless seen */
|
||||
static char *attribute; /* last attribute scanned */
|
||||
|
||||
struct stack_t {
|
||||
@@ -84,7 +84,7 @@ static void pop_level(void)
|
||||
}
|
||||
}
|
||||
|
||||
-static void stash_attribute(char *attr)
|
||||
+static void stash_attribute(const char *attr)
|
||||
/* stash an attribute away for comparison */
|
||||
{
|
||||
#ifdef DEBUG
|
||||
@@ -176,7 +176,7 @@ static void process_value(char *val)
|
||||
end->suppressed = suppress(attribute, val);
|
||||
}
|
||||
|
||||
-static void process_else()
|
||||
+static void process_else(void)
|
||||
/* process <?xmlif else> tag */
|
||||
{
|
||||
end->suppressed = end->matched;
|
||||
@@ -230,9 +230,12 @@ WS [ \t\n]*
|
||||
|
||||
#include "config.h"
|
||||
|
||||
-int yywrap() {exit(0);};
|
||||
+int yywrap(void)
|
||||
+{
|
||||
+ exit(0);
|
||||
+}
|
||||
|
||||
-main(int argc, char *argv[])
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
--- a/xmlif/xmlif.c
|
||||
+++ b/xmlif/xmlif.c
|
||||
@@ -2435,6 +2435,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
yylex();
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
--- a/xmlif/xmlif.l
|
||||
+++ b/xmlif/xmlif.l
|
||||
@@ -259,6 +259,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
yylex();
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 11 10:07:14 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- update to 0.0.29:
|
||||
* Rename variable BASH to XMLTO_BASH_PATH
|
||||
* Regenerate xmlif to use new version of gcc
|
||||
* Rename and format markdown files
|
||||
* Convert output path to unix on cygwin/msys
|
||||
* Add .gitignore
|
||||
* Skip validating xmlto man page during build
|
||||
- drop xmlto-nonvoid.patch, included upstream
|
||||
- drop xmlto-codecleanup.patch, not needed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 26 12:20:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
||||
18
xmlto.spec
18
xmlto.spec
@@ -2,6 +2,7 @@
|
||||
# spec file for package xmlto
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,7 +18,7 @@
|
||||
|
||||
|
||||
Name: xmlto
|
||||
Version: 0.0.28
|
||||
Version: 0.0.29
|
||||
Release: 0
|
||||
Summary: Tool for Converting XML Files to Various Formats
|
||||
License: GPL-2.0-or-later
|
||||
@@ -25,9 +26,9 @@ Group: Productivity/Publishing/XML
|
||||
URL: https://pagure.io/xmlto/
|
||||
Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
|
||||
Source10: README.SUSE
|
||||
Patch0: xmlto-nonvoid.patch
|
||||
Patch1: xmlto-xsltopts.patch
|
||||
Patch2: xmlto-codecleanup.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flex
|
||||
@@ -39,7 +40,7 @@ Requires: docbook_4
|
||||
Requires: libxslt-tools
|
||||
# For full functionality, we need passivetex; but since most users are not happy with
|
||||
# getting texlive installed, we only suggest it.
|
||||
Suggests: texlive-xmltex >= 2007
|
||||
Suggests: texlive-xmltex >= 2007
|
||||
|
||||
%description
|
||||
This is a package for converting XML files to various formats using XSL
|
||||
@@ -53,11 +54,12 @@ cp %{SOURCE10} .
|
||||
rm -f xmlif/xmlif.c
|
||||
|
||||
%build
|
||||
%configure BASH=/bin/bash
|
||||
make %{?_smp_mflags}
|
||||
autoreconf -fiv
|
||||
%configure XMLTO_BASH_PATH=/bin/bash
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make check %{?_smp_mflags}
|
||||
%make_build check
|
||||
|
||||
%install
|
||||
%make_install
|
||||
@@ -67,7 +69,7 @@ install -d %{buildroot}%{_datadir}/xmlto/xsl
|
||||
%files
|
||||
%doc README.SUSE
|
||||
%license COPYING
|
||||
%doc AUTHORS README ChangeLog FAQ THANKS NEWS
|
||||
%doc ChangeLog FAQ.md NEWS.md README.md THANKS.md
|
||||
%{_bindir}/xmlto
|
||||
%{_bindir}/xmlif
|
||||
%{_mandir}/man1/xmlto.1%{?ext_man}
|
||||
|
||||
Reference in New Issue
Block a user