## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 48; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %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 # version 1.12.x. We could do this automatically… # %%global so_version %%(echo %%{version} | cut -d . -f -2 | tr -d .) # …but we do not do so because we want to make sure we detect any soversion # update. %global so_version 112 Release: %autorelease Summary: Xalan XSLT processor for C/C++ # 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 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 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.} %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-libs%{?_isa} = %{version}-%{release} %description devel The xalan-c-devel package contains libraries and header files for developing applications that use xalan-c. %package doc Summary: Documentation for xalan-c # Doxygen HTML help is not suitable for packaging due to a minified JavaScript # bundle inserted by Doxygen itself. See discussion at # https://bugzilla.redhat.com/show_bug.cgi?id=2006555. # # 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 documentation. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -n %{tar_name} # https://github.com/apache/xalan-c/pull/35 chmod -v a-x NOTICE # Remove the Autotools build system cruft from the samples; otherwise, it would # be installed as documentation. We leave the CmakeLists.txt even though it # cannot be used standalone; it is used in the build (even though the built # 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_build %install %cmake_install # Remove CMake-installed docs in favor of using the doc macro. We refer to # _prefix/share instead of _datadir to mirror how the install path is defined # in the relevant CMakeLists.txt. Note also that we do *not* want to install # 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 %{_bindir}/Xalan %{_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 CREDITS LICENSE NOTICE %{_docdir}/%{name}-doc/ %changelog ## START: Generated by rpmautospec * Sun Nov 03 2024 Benjamin A. Beasley - 1.12.0-48 - Invoke %%cmake in %%conf rather than in %%build * Fri Oct 18 2024 Pete Walter - 1.12.0-47 - Rebuild for xerces-c 3.3 * Sat Jul 20 2024 Fedora Release Engineering - 1.12.0-46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Apr 05 2024 Benjamin A. Beasley - 1.12.0-45 - Add a man page for the Xalan command-line tool * Fri Apr 05 2024 Benjamin A. Beasley - 1.12.0-44 - Split libraries into a -libs subpackage separate from the command-line tool * Fri Apr 05 2024 Benjamin A. Beasley - 1.12.0-43 - Make the -doc subpackage noarch * Fri Apr 05 2024 Benjamin A. Beasley - 1.12.0-41 - Convert some stray CRNL line endings * Fri Apr 05 2024 Benjamin A. Beasley - 1.12.0-40 - Do not install README.md in the base package, only in -doc * Fri Apr 05 2024 Benjamin A. Beasley - 1.12.0-39 - Do not install KEYS * Fri Apr 05 2024 Benjamin A. Beasley - 1.12.0-38 - Treat CREDITS and NOTICE as additional license files * Fri Apr 05 2024 Benjamin A. Beasley - 1.12.0-37 - Save some space in the -doc subpackage by hardlinking duplicate files * Tue Feb 27 2024 Benjamin A. Beasley - 1.12.0-36 - Switch URL from HTTP to HTTPS * Wed Jan 31 2024 Pete Walter - 1.12.0-33 - Rebuild for ICU 74 * Sat Jan 27 2024 Fedora Release Engineering - 1.12.0-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 1.12.0-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 František Zatloukal - 1.12.0-30 - Rebuilt for ICU 73.2 * Sun Jun 18 2023 Benjamin A. Beasley - 1.12.0-29 - Use new (rpm 4.17.1+) bcond style * Sat Jan 21 2023 Fedora Release Engineering - 1.12.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Dec 31 2022 Pete Walter - 1.12.0-27 - Rebuild for ICU 72 * Thu Dec 22 2022 Benjamin A. Beasley - 1.12.0-26 - Trivially simplify one files list * Thu Dec 22 2022 Benjamin A. Beasley - 1.12.0-25 - Indicate dirs. in files list with trailing slashes * Tue Nov 29 2022 Benjamin A. Beasley - 1.12.0-24 - Update License to SPDX * Mon Aug 01 2022 František Zatloukal - 1.12.0-23 - Rebuilt for ICU 71.1 * Sat Jul 23 2022 Fedora Release Engineering - 1.12.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 1.12.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 14 2021 Benjamin A. Beasley - 1.12.0-20 - Dep. on cmake-filesystem is now auto-generated * Tue Sep 28 2021 Benjamin A. Beasley - 1.12.0-19 - Drop Doxygen-generated HTML documentation. * Tue Sep 28 2021 Benjamin A. Beasley - 1.12.0-18 - Reduce macro indirection in the spec file * Fri Jul 23 2021 Fedora Release Engineering - 1.12.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 21 2021 Benjamin A. Beasley - 1.12.0-16 - Make “chmod” invocation verbose * Wed Jul 21 2021 Benjamin A. Beasley - 1.12.0-15 - More concise cmake invocation * Wed Jul 21 2021 Benjamin A. Beasley - 1.12.0-14 - Better protection against undetected soversion updates * Wed Jul 21 2021 Benjamin A. Beasley - 1.12.0-13 - Remove EPEL accommodations * Thu May 20 2021 Pete Walter - 1.12.0-8 - Rebuild for ICU 69 * Wed May 19 2021 Pete Walter - 1.12.0-7 - Rebuild for ICU 69 * Wed Mar 10 2021 Benjamin A. Beasley - 1.12.0-6 - Commit KEYS (gpg keychain for source verification) to SCM rather than keeping it in the lookaside cache * Wed Jan 27 2021 Fedora Release Engineering - 1.12.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Dec 5 2020 Benjamin A. Beasley - 1.12.0-4 - Make -doc package arch again; there are indeed small differences by architecture. Note that 1.12.0-3 never made it to any buildroot, as the arch differences were flagged by koji. * Fri Dec 4 2020 Benjamin A. Beasley - 1.12.0-3 - Make -doc package noarch * Tue Dec 1 2020 Benjamin A. Beasley - 1.12.0-2 - Make spec file compatible with EPEL8: force CMake out-of-source build, add ldconfig_scriptlets macro, and add explicit dependency on graphviz (dot) for API docs * Mon Nov 30 2020 Benjamin A. Beasley - 1.12.0-1 - New upstream version 1.12.0 - Source code signature verification - New CMake build system - Enable new optional ICU dependency - Build API documentation with Doxygen * Sat Aug 01 2020 Fedora Release Engineering - 1.11.0-19 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.11.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Fedora Release Engineering - 1.11.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jul 27 2019 Fedora Release Engineering - 1.11.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 1.11.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.11.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.11.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.11.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.11.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.11.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Feb 05 2016 Fedora Release Engineering - 1.11.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Nov 26 2015 Peter Robinson 1.11.0-8 - Use power64 macro * Fri Jun 19 2015 Fedora Release Engineering - 1.11.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 1.11.0-6 - Rebuilt for GCC 5 C++11 ABI change * Mon Aug 18 2014 Fedora Release Engineering - 1.11.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.11.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Apr 30 2014 Peter Robinson 1.11.0-3 - Fix build on aarch64 * Thu Oct 24 2013 Lubomir Rintel - 1.11.0-2 - Bulk sad and useless attempt at consistent SPEC file formatting * Tue Oct 08 2013 Nick Le Mouton - 1.11.0-1 - Rebuilt for xalan-c 1.11, fixes a few problems with using newer xerces-c * Sun Aug 04 2013 Fedora Release Engineering - 1.10.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 15 2013 Fedora Release Engineering - 1.10.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Jul 22 2012 Fedora Release Engineering - 1.10.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 1.10.0-11 - Rebuilt for c++ ABI breakage * Sat Jan 14 2012 Fedora Release Engineering - 1.10.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Mar 10 2011 Kalev Lember - 1.10.0-9 - Rebuilt with xerces-c 3.1 * Mon Feb 07 2011 Fedora Release Engineering - 1.10.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Feb 05 2010 Lubomir Rintel - 1.10.0-7 - Rebuild for newer xerces-c * Mon Jul 27 2009 Fedora Release Engineering - 1.10.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 1.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 11 2008 Lubomir Kundrak 1.10.0-4 - Rebuild for newer xerces-c * Thu Jan 03 2008 Lubomir Kundrak 1.10.0-3 - Adding missing includes to fix build with gcc-4.3 * Mon Nov 19 2007 Lubomir Kundrak - 1.10.0-2 - Fix passing of compiler flags - Bump to stable source instead of CVS snapshot - Fixed License tag * Thu Feb 15 2007 Till Maas - 1.10.0-1 - Initial spec for fedora extras ## END: Generated by rpmautospec