Compare commits

...

27 Commits

Author SHA1 Message Date
Benjamin A. Beasley
12a0a5d16d Invoke %cmake in %conf rather than in %build 2024-11-03 07:06:59 -05:00
Pete Walter
6952d6f21d Rebuild for xerces-c 3.3 2024-10-18 14:08:38 +01:00
Fedora Release Engineering
3ee7711344 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 09:40:58 +00:00
Benjamin A. Beasley
1026f8758b Add a man page for the Xalan command-line tool 2024-04-05 11:33:13 -04:00
Benjamin A. Beasley
865b071569 Split libraries into a -libs subpackage separate from the command-line tool 2024-04-05 11:13:22 -04:00
Benjamin A. Beasley
df6bef35ef Make the -doc subpackage noarch 2024-04-05 10:54:09 -04:00
Benjamin A. Beasley
2a9ee9a725 Add an rpmlintrc file
[skip changelog]
2024-04-05 10:53:36 -04:00
Benjamin A. Beasley
329bf982f9 Convert some stray CRNL line endings 2024-04-05 10:47:18 -04:00
Benjamin A. Beasley
907fdb70b5 Do not install README.md in the base package, only in -doc 2024-04-05 10:43:01 -04:00
Benjamin A. Beasley
53aa39d24b Do not install KEYS 2024-04-05 10:43:00 -04:00
Benjamin A. Beasley
0b91f9cbc1 Treat CREDITS and NOTICE as additional license files 2024-04-05 10:42:40 -04:00
Benjamin A. Beasley
21057a2f3f Save some space in the -doc subpackage by hardlinking duplicate files 2024-04-05 10:38:06 -04:00
Benjamin A. Beasley
e643033a29 Switch URL from HTTP to HTTPS 2024-02-27 08:46:46 -05:00
Benjamin A. Beasley
3a8edd582c F39+: Form release tag name without a subshell
[skip changelog]
2024-02-27 08:45:47 -05:00
Benjamin A. Beasley
e6a89aacd4 Put the GitHub URL in its own macro
[skip changelog]
2024-02-27 08:45:26 -05:00
Pete Walter
3c013e931d Rebuild for ICU 74 2024-01-31 20:27:05 +00:00
Fedora Release Engineering
f27faf6993 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 09:18:08 +00:00
Fedora Release Engineering
1ce3c9018f Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 18:29:38 +00:00
František Zatloukal
55784e1b49 Rebuilt for ICU 73.2 2023-07-11 22:23:28 +02:00
Benjamin A. Beasley
6d018f8a3e Use new (rpm 4.17.1+) bcond style 2023-06-18 12:11:59 -04:00
Fedora Release Engineering
ca4c1ee033 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 07:07:19 +00:00
Pete Walter
4af08bbc23 Rebuild for ICU 72 2022-12-31 03:51:03 +00:00
Benjamin A. Beasley
13e310aacc Trivially simplify one files list 2022-12-22 13:06:35 -05:00
Benjamin A. Beasley
a867aba389 Indicate dirs. in files list with trailing slashes 2022-12-22 13:06:30 -05:00
Benjamin A. Beasley
c6181b337e Update License to SPDX 2022-11-29 14:35:47 -05:00
František Zatloukal
18d7d7789d Rebuilt for ICU 71.1 2022-08-01 15:13:06 +02:00
Fedora Release Engineering
76e334d3cb Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 12:45:29 +00:00
3 changed files with 130 additions and 28 deletions

52
Xalan.1 Normal file
View File

@ -0,0 +1,52 @@
.TH XALAN "1" "April 2024" "" "User Commands"
.SH NAME
.B Xalan
\(en Transform XML documents using a stylesheet
.SH SYNOPSIS
.B Xalan
.RI [ OPTIONS ]
.I source
.I stylesheet
.SH DESCRIPTION
Transform XML documents using a stylesheet
that conforms to XSLT 1.0 standards.
.SH OPTIONS
A dash as the
.I source
argument reads from stdin.
.RB ( \-
cannot be used for both arguments.)
.TP
.B \-a
Use xml-stylesheet PI, not the
.I stylesheet
argument.
.TP
.B \-e\ \fIencoding
Force the specified encoding for the output.
.TP
.B \-i\ \fIinteger
Indent the specified amount.
.TP
.B \-m
Omit the
.B META
tag in HTML output.
.TP
.B \-o\ \fIfilename
Write output to the specified file.
.TP
.B \-p\ \fIname\ expression
Sets a stylesheet parameter.
.TP
.B \-t
Display timing information.
.TP
.B \-u
Disable escaping of URLs in HTML output.
.TP
.B \-?
Display a help message.
.TP
.B \-v
Validates source documents.

10
xalan-c.rpmlintrc Normal file
View File

@ -0,0 +1,10 @@
# Not a real spelling error:
addFilter(r" spelling-error \('([Ss]tylesheet)s?',")
# Hardlinks within directories owned by a single package are safe.
addFilter(r" cross-directory-hard-link /\S+/xalan-c-doc/\S+ /\S+/xalan-c-doc/")
# All documentation is in the -doc subpackage.
addFilter(r" no-documentation$")
#xalan-c.x86_64: W: no-manual-page-for-binary Xalan
#xalan-c.x86_64: W: no-documentation
#xalan-c-devel.x86_64: W: no-documentation
#xalan-c-doc.x86_64: E: no-binary

View File

@ -1,4 +1,5 @@
%bcond_without icu
%bcond icu 1
Name: xalan-c
Version: 1.12.0
# The soversion is made from the major and minor version numbers, e.g. 112 for
@ -10,35 +11,59 @@ Version: 1.12.0
Release: %autorelease
Summary: Xalan XSLT processor for C/C++
License: ASL 2.0
URL: http://xalan.apache.org/xalan-c/
%global tag Xalan-C_%(echo '%{version}' | tr . _)
# The entire source is Apache-2.0, except cmake/RunTest.cmake, which is
# libtiff, but is a build-system file that does not contribute to the licenses
# of the binary RPMs.
License: Apache-2.0
URL: https://apache.github.io/xalan-c/
%global tag Xalan-C_%{gsub %{version} . _}
%global tar_name xalan_c-%(echo %{version} | cut -d . -f -2)
%global release_url https://github.com/apache/xalan-c/releases/download/%{tag}
Source0: %{release_url}/%{tar_name}.tar.gz
Source1: %{release_url}/%{tar_name}.tar.gz.asc
Source2: %{release_url}/KEYS
%global forgeurl https://github.com/apache/xalan-c/
%global releaseurl %{forgeurl}/releases/download/%{tag}
Source0: %{releaseurl}/%{tar_name}.tar.gz
Source1: %{releaseurl}/%{tar_name}.tar.gz.asc
Source2: %{releaseurl}/KEYS
# Man page hand-written for Fedora in groff_man(7) format based on Xalan -?
Source3: Xalan.1
BuildRequires: gnupg2
BuildRequires: cmake
# Either make or ninja is supported.
BuildRequires: ninja-build
BuildRequires: gcc-c++
BuildRequires: dos2unix
BuildRequires: hardlink
BuildRequires: xerces-c-devel
%if %{with icu}
BuildRequires: libicu-devel
%endif
%description
Requires: xalan-c-libs%{?_isa} = %{version}-%{release}
%global common_description %{expand:
The Apache Xalan-C++ Project provides a library and a command line program to
transform XML documents using a stylesheet that conforms to XSLT 1.0 standards.
Xalan is a project of the Apache Software Foundation.
Xalan is a project of the Apache Software Foundation.}
%description %{common_description}
This package contains the command-line tool.
%package libs
Summary: Shared libraries for xalan-c
%description libs
The xalan-c-libs package contains libraries needed by the command-line tool and
by applications that use xalan-c.
%package devel
Summary: Development files for xalan-c
Requires: xalan-c%{?_isa} = %{version}-%{release}
Requires: xalan-c-libs%{?_isa} = %{version}-%{release}
%description devel
The xalan-c-devel package contains libraries and header files for developing
@ -55,6 +80,7 @@ Summary: Documentation for xalan-c
# Normally, we would enable the Doxygen PDF documentation as a lesser
# substitute, but building it fails with:
# ! TeX capacity exceeded, sorry [pool size=5905151].
BuildArch: noarch
%description doc
Documentation for xalan-c. See https://apache.github.io/xalan-c/ for full HTML
@ -75,9 +101,18 @@ chmod -v a-x NOTICE
# samples are only tested and not installed), and is annoying to exclude.
rm -vf samples/configure samples/configure.in
# Convert line endings as needed:
find docs samples src -type f -exec file '{}' '+' |
grep -F 'CRLF' |
awk -F ':' '{ print $1 }' |
xargs dos2unix --keepdate
%conf
%cmake %{?with_icu:-Dtranscoder=icu} -GNinja
%build
%cmake %{?with_icu:-Dtranscoder=icu} -GNinja
%cmake_build
@ -89,42 +124,47 @@ rm -vf samples/configure samples/configure.in
# the HTML version of the API documentation.
rm -rf %{buildroot}%{_prefix}/share/doc/xalan-c/api
install -t '%{buildroot}%{_docdir}/%{name}-doc' -D -p -m 0644 \
README.md docs/*.md
cp -rvp docs/images/ samples/ '%{buildroot}%{_docdir}/%{name}-doc'
hardlink -c -v '%{buildroot}%{_docdir}/%{name}-doc'
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE3}'
%check
%ctest
%files
%license LICENSE
%doc CREDITS
%doc KEYS
%doc NOTICE
%doc README.md
%{_bindir}/Xalan
%{_libdir}/libxalanMsg.so.%{so_version}
%{_libdir}/libxalanMsg.so.%{so_version}.*
%{_libdir}/libxalan-c.so.%{so_version}
%{_libdir}/libxalan-c.so.%{so_version}.*
%{_mandir}/man1/Xalan.1*
%files libs
%license CREDITS LICENSE NOTICE
%{_libdir}/libxalanMsg.so.%{so_version}{,.*}
%{_libdir}/libxalan-c.so.%{so_version}{,.*}
%files devel
%{_libdir}/libxalanMsg.so
%{_libdir}/libxalan-c.so
%{_includedir}/xalanc/
%dir %{_libdir}/cmake/XalanC
%{_libdir}/cmake/XalanC/*.cmake
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/xalan-c.pc
%files doc
%license LICENSE
%doc CREDITS
%doc KEYS
%doc NOTICE
%doc README.md
%doc docs/*.md docs/images
%doc samples
%license CREDITS LICENSE NOTICE
%{_docdir}/%{name}-doc/
%changelog