## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 10; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %bcond_without icu 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++ License: ASL 2.0 URL: http://xalan.apache.org/xalan-c/ %global tag Xalan-C_%(echo '%{version}' | tr . _) %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 BuildRequires: gnupg2 BuildRequires: cmake # Either make or ninja is supported. BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: xerces-c-devel %if %{with icu} BuildRequires: libicu-devel %endif # Required for EPEL8: %undefine __cmake_in_source_build %description 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. %package devel Summary: Development files for xalan-c Requires: xalan-c%{?_isa} = %{version}-%{release} Requires: cmake-filesystem %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]. %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 rm -vf samples/configure samples/configure.in %build %cmake %{?with_icu:-Dtranscoder=icu} -GNinja %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 %check %ctest # Required for EPEL8: %ldconfig_scriptlets %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}.* %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 %changelog * Wed Sep 29 2021 Benjamin A. Beasley 1.12.0-10 - Drop Doxygen-generated HTML documentation. * Wed Sep 29 2021 Benjamin A. Beasley 1.12.0-9 - Reduce macro indirection in the spec file * Wed Sep 29 2021 Benjamin A. Beasley 1.12.0-8 - Make “chmod” invocation verbose * Wed Sep 29 2021 Benjamin A. Beasley 1.12.0-7 - More concise CMake invocation * Wed Sep 29 2021 Benjamin A. Beasley 1.12.0-6 - Better protection against undetected soversion updates * Wed Sep 29 2021 Benjamin A. Beasley 1.12.0-5 - Commit KEYS (gpg keychain for source verification) to SCM rather than keeping it in the lookaside cache * 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