Compare commits

..

69 commits

Author SHA1 Message Date
Fedora Release Engineering
69f8c98e46 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:18:19 +00:00
Björn Persson
66b7efa76d Rebuilt because GCC broke ALI again. 2026-05-10 20:06:51 +02:00
Björn Persson
60ec67aed1 Rebuilt because GCC 16.0.1-0.10 broke ALI. 2026-03-28 23:10:53 +01:00
Fedora Release Engineering
50187327ed Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:45:30 +00:00
7b435530de Remove version constraint on fedora-gnat-project-common
The constraint is satisfied in all supported versions of Fedora.
2026-01-06 22:54:40 +01:00
826a498792 Remove explicit build dependency on latexmk
It is included through python3-sphinx-latex.
2026-01-06 22:43:56 +01:00
d13e0833db Add missing font dependencies 2026-01-06 22:43:56 +01:00
61efeea091 Update to v26.0.0 2026-01-06 22:43:56 +01:00
Björn Persson
cfec7ec924 Rebuilt because the ALI of System.OS_Constants changed. 2025-08-08 20:57:35 +02:00
Fedora Release Engineering
c50d3f8799 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:55:51 +00:00
Fedora Release Engineering
0bb1a50af4 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 16:00:50 +00:00
Björn Persson
12a2ad169d Rebuilt with another GCC 15 prerelease. 2025-01-15 12:12:39 +01:00
Björn Persson
f90fa89c6b Rebuilt with GCC 15 prerelease. 2025-01-13 18:15:50 +01:00
Pavel Zhukov
dcffa6d8f9 Disable bootstrapping
This reverts commit 8d9e2649b0.
2024-12-04 15:22:37 +01:00
8d9e2649b0 Enable bootstrapping 2024-12-04 11:13:57 +01:00
0ed304da95 Update to v25.0.0 2024-11-08 16:43:30 +01:00
Fedora Release Engineering
de4407abc1 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 10:13:11 +00:00
Björn Persson
f0a6f1e191 Added a missing bootstrap dependency on findutils. 2024-05-15 23:33:17 +02:00
Björn Persson
2ae77acab8 Use the macro GPRinstall. 2024-04-25 18:02:47 +02:00
4ff40cd195 Update to v24.0.0. 2024-01-30 21:33:23 +01:00
Fedora Release Engineering
35e4b1c293 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 09:52:15 +00:00
Björn Persson
e8dcfc5f13 Rebuilt with GCC 14 prerelease. 2024-01-16 11:16:40 +01:00
Fedora Release Engineering
6800935a2b Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 19:01:15 +00:00
Björn Persson
47eda5202f Using GPRbuild_flags requires a very new fedora-gnat-project-common. 2023-03-13 19:51:37 +01:00
Björn Persson
5ace0f0729 formatting 2023-03-13 19:26:08 +01:00
Björn Persson
faf81443c6 wording correction
What a computer does is not done "manually".
2023-03-13 19:23:52 +01:00
Björn Persson
e2897d15b6 Simplified the install section a bit. 2023-03-13 19:17:49 +01:00
cea137f382 Move documentation back to where it was and move examples manually. 2023-03-12 13:39:17 +01:00
ab96e89347 Update to v23.0.0. 2023-03-12 13:39:17 +01:00
3b7fb20878 Use a configuration option to enable bootstrap build mode. 2023-03-12 13:39:17 +01:00
f10937164f Update comment on building in bootstrap mode. 2023-03-12 13:39:17 +01:00
51d09c109e Make the generated project files architecture-independent. 2023-03-12 13:39:17 +01:00
140894df28 Verify ALI files before installation. 2023-03-12 13:39:17 +01:00
9f12d03349 Install each component separately. 2023-03-12 13:39:17 +01:00
6ad095e706 Move documentation and examples into a separate package. 2023-03-12 13:39:17 +01:00
da3f6003c0 Only produce an xmlada-sources package when bootstrapping. 2023-03-12 13:39:17 +01:00
c0565fde4b Move libraries, fixup the symlinks for the shared libraries. 2023-03-12 13:39:17 +01:00
1b16adc0b8 Remove empty directory _libdir/static; it seems to have no purpose. 2023-03-12 13:39:17 +01:00
94b0038cae Mark the source package as architecture independent. 2023-03-12 13:39:17 +01:00
f0f6f19dc6 Fix whitespace issues. 2023-03-12 13:39:17 +01:00
ff45d19520 Improve spec file readability. 2023-03-12 13:39:17 +01:00
5bd9858602 Update package summaries and descriptions. 2023-03-12 13:39:17 +01:00
ba3cdacac9 Fix permission errors in the prep step.
Fix source packaging (like permissions) in the prep. section, before
the build. These errors are similar to the errors that would be fixed
by patches.
2023-03-12 13:39:17 +01:00
3a00b5b5e8 Build static libraries position independent (PIC).
This will allow executables that will link with these libraries to
be build position independent (PIE).
2023-03-12 13:39:15 +01:00
c3763f0252 Remove some post-install steps that are no longer required.
The `xmlada-config` script and GNATstudio plugin are no longer
installed and do not have to be removed.
2023-03-12 13:38:36 +01:00
841f543788 Remove patches that do no longer apply and/or are no longer used.
Removed:
- xmlada-2016-gprinstall.patch
2023-03-12 13:38:36 +01:00
eacca052b9 Change to SPDX license expressions, add Unicode license. 2023-03-12 13:38:36 +01:00
b3fe68424e Update to v22.0.0, update the epoch. 2023-03-12 13:38:34 +01:00
Fedora Release Engineering
829b43068b Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 07:37:16 +00:00
Björn Persson
6ea8b9a575 Rebuilt with GCC 13. 2023-01-17 16:10:21 +01:00
Fedora Release Engineering
40f5be73c8 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 13:17:04 +00:00
Fedora Release Engineering
e8387d453a - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 05:15:10 +00:00
Björn Persson
32743f612e Rebuilt with GCC 12 prerelease. 2022-01-16 19:38:19 +01:00
Fedora Release Engineering
4e49beaa56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 21:42:40 +00:00
Björn Persson
6b4e8226ae Removed the explicit check-rpaths invocation as that is done automatically now. 2021-07-10 18:47:55 +02:00
Fedora Release Engineering
453aa8e501 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-28 00:09:16 +00:00
Tom Stellard
4ba9dd15ad Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-12 01:51:50 +00:00
Pavel Zhukov
0ec7b71033 Rebuild. Ali invalidated by gcc update 2020-12-21 08:55:22 +01:00
Pavel Zhukov
57f3e0d6e3 Disable gprbuild's bootstrapping 2020-12-08 08:51:59 +01:00
Pavel Zhukov
fbe6082387 Update to 2020. Rebuild with new gprbuild 2020-12-08 08:19:06 +01:00
Jeff Law
2598b3670f - Gcc 11 bootstrap 2020-12-07 11:56:16 -07:00
Fedora Release Engineering
6d0219d448 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 09:45:38 +00:00
Fedora Release Engineering
4373ed3b71 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 14:49:53 +00:00
Björn Persson
316680df6a A macro must have a value. 2020-02-03 13:04:56 +01:00
Björn Persson
2c8c30bb06 Upgraded to the 2019 release.
Other than the year number, the only change is an adaptation to an incompatible
API change in GNAT.Sockets.
2020-02-03 12:59:38 +01:00
Pavel Zhukov
e3c5e6efde rebuild with new gprbuild 2020-02-03 11:46:50 +01:00
Pavel Zhukov
05dfe226ed gcc 10 bootstrap 2020-02-03 11:19:25 +01:00
Fedora Release Engineering
0ff9658004 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 04:35:39 +00:00
Fedora Release Engineering
e38d8b336e - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 04:19:58 +00:00
5 changed files with 382 additions and 167 deletions

7
.gitignore vendored
View file

@ -6,3 +6,10 @@
/xmlada-gpl-2016-src.tar.gz
/xmlada-gpl-2017-src.tar.gz
/xmlada-gpl-2018-20180524-src.tar.gz
/xmlada-2019-20190429-19B9D-src.tar.gz
/xmlada-2020-20200429-19A99-src.tar.gz
/xmlada-22.0.0.tar.gz
/xmlada-23.0.0.tar.gz
/xmlada-24.0.0.tar.gz
/xmlada-25.0.0.tar.gz
/xmlada-26.0.0.tar.gz

View file

@ -1 +1 @@
SHA512 (xmlada-gpl-2018-20180524-src.tar.gz) = 8970c4e68defad66625c1110554dadfc485fbbe42e832987593cf727e98f13dd87c90b84461187dbbe2b1051831e6e70f9f53d6a0cfc07451726d601b2856430
SHA512 (xmlada-26.0.0.tar.gz) = b97f7727df52229f8e76ab169f4b42b9b82b20c82555607d65455f6cb7836c83219017a45b832de38b348e595f5a68d0987e3c568293b45fc285ffdc3ec3aa01

View file

@ -1,63 +0,0 @@
diff --git a/unicode/xmlada_unicode.gpr b/unicode/xmlada_unicode.gpr
index 8a5a2ac..290cfe6 100644
--- a/unicode/xmlada_unicode.gpr
+++ b/unicode/xmlada_unicode.gpr
@@ -37,4 +37,8 @@ project XmlAda_Unicode is
package Binder renames Shared.Binder;
package Ide renames Shared.Ide;
+ package Install is
+ for Sources_Subdir use "./include/xmlada/" & Project'Library_Name;
+ end Install;
+
end XmlAda_Unicode;
diff --git a/dom/xmlada_dom.gpr b/dom/xmlada_dom.gpr
index 5c156ab..f6d37f6 100644
--- a/dom/xmlada_dom.gpr
+++ b/dom/xmlada_dom.gpr
@@ -39,4 +39,7 @@ project XmlAda_Dom is
package Binder renames Shared.Binder;
package Ide renames Shared.Ide;
+ package Install is
+ for Sources_Subdir use "./include/xmlada/" & Project'Library_Name;
+ end Install;
end XmlAda_Dom;
diff --git a/input_sources/xmlada_input.gpr b/input_sources/xmlada_input.gpr
index 7602590..329bdad 100644
--- a/input_sources/xmlada_input.gpr
+++ b/input_sources/xmlada_input.gpr
@@ -39,6 +39,7 @@ project XmlAda_Input is
package Ide renames Shared.Ide;
package Install is
+ for Sources_Subdir use "./include/xmlada/" & Project'Library_Name;
for Artifacts ("share/doc/xmlada")
use ("../docs/_build/html/*", "../docs/_build/latex/XMLAda.pdf");
for Artifacts ("lib/gnat") use ("../distrib/xmlada.gpr");
diff --git a/sax/xmlada_sax.gpr b/sax/xmlada_sax.gpr
index f4d74ac..c146d79 100644
--- a/sax/xmlada_sax.gpr
+++ b/sax/xmlada_sax.gpr
@@ -39,4 +39,8 @@ project XmlAda_Sax is
package Binder renames Shared.Binder;
package Ide renames Shared.Ide;
+ package Install is
+ for Sources_Subdir use "./include/xmlada/" & Project'Library_Name;
+ end Install;
+
end XmlAda_Sax;
diff --git a/schema/xmlada_schema.gpr b/schema/xmlada_schema.gpr
index 4688847..62dee2f 100644
--- a/schema/xmlada_schema.gpr
+++ b/schema/xmlada_schema.gpr
@@ -40,4 +40,8 @@ project XmlAda_Schema is
package Binder renames Shared.Binder;
package Ide renames Shared.Ide;
+ package Install is
+ for Sources_Subdir use "./include/xmlada/" & Project'Library_Name;
+ end Install;
+
end XmlAda_Schema;

9
xmlada.gpr Normal file
View file

@ -0,0 +1,9 @@
with "xmlada_unicode";
with "xmlada_sax";
with "xmlada_input";
with "xmlada_dom";
with "xmlada_schema";
project Xmlada is
for Source_Dirs use ();
end Xmlada;

View file

@ -1,53 +1,79 @@
## %global bootstrap_arch %{GPRbuild_arches}
%global bootstrap_arch NONE
## Set this variable to %{GPRbuild_arches} for bootraping of
## gprbuild on new architecture or in case of new magor verion of
## gcc-gnat package
# This package has a bootstrap build mode that can be used to create a source
# code package for bootstrapping GPRbuild. See the 'gprbuild' spec file for more
# information.
%bcond_with bootstrap
# Upstream source information.
%global upstream_owner AdaCore
%global upstream_name xmlada
%global upstream_version 26.0.0
%global upstream_commit 5e5b761eb827f458efd2043a5e9ab03e1a614720
Name: xmlada
Version: 2018
Release: 7%{?dist}
Epoch: 2
Version: %{upstream_version}
Release: 5%{?dist}
Summary: XML library for Ada
License: GPLv3+
URL: http://libre.adacore.com
## Direct download link is unavailable
## http://libre.adacore.com/libre/download/
Source0: xmlada-gpl-2018-20180524-src.tar.gz
## Fedora-specific
Patch2: %{name}-2016-gprinstall.patch
License: GPL-3.0-or-later WITH GCC-exception-3.1 AND Unicode-DFS-2016
# XML/Ada itself is licensed under GPL v3 or later with a runtime exception. The
# Unicode license is mentioned as Unicode data files were used as an input for
# generating some of XML/Ada's source code.
URL: https://github.com/%{upstream_owner}/%{upstream_name}
Source0: %{url}/archive/%{upstream_commit}.tar.gz#/%{upstream_name}-%{upstream_version}.tar.gz
%ifnarch %{bootstrap_arch}
BuildRequires: gprbuild > 2018-10
BuildRequires: gcc-gnat
BuildRequires: fedora-gnat-project-common >= 2
# XML/Ada's aggregate project file. This project file is normally generated and
# installed by GPRinstall, but as we'll install each XML/Ada component
# separately, we need to maintain and install it manually.
Source1: xmlada.gpr
BuildRequires: make
%if %{without bootstrap}
BuildRequires: gcc-gnat gprbuild sed
BuildRequires: fedora-gnat-project-common
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx-latex
BuildRequires: python3-sphinx_rtd_theme
%else
BuildRequires: findutils
%endif
# Build only on architectures where GPRbuild is available.
ExclusiveArch: %{GPRbuild_arches}
%global common_description_en \
XML/Ada includes support for parsing XML files, including DTDs, full support for \
SAX, and an almost complete support for the core part of the DOM. It includes \
support for validating XML files with XML schemas.
%description
XML/Ada includes support for parsing XML files, including DTDs,
full support for SAX,
and an almost complete support for the core part of the DOM.
It includes support for validating XML files with XML schemas.
%description %{common_description_en}
#################
## Subpackages ##
#################
%if %{without bootstrap}
%ifnarch %{bootstrap_arch}
%package devel
Summary: XML library for Ada devel package
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: fedora-gnat-project-common >= 2
Summary: Development files for the XML/Ada library
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: fedora-gnat-project-common
Recommends: %{name}-doc
%description devel
Xml library for ada devel package.
%description devel %{common_description_en}
This package contains source code and linking information for developing
applications that use the XML/Ada library.
%package static
Summary: XML library for Ada, static libraries
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Summary: Static libraries of XML/Ada
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
%description static %{common_description_en}
%description static
This package contains the XML/Ada libraries for static linking. It is needed
for linking GPRbuild statically so that GPRbuild will remain functional when
libraries are upgraded.
@ -55,113 +81,349 @@ libraries are upgraded.
Other Fedora packages shall require xmlada-devel rather than xmlada-static if
possible.
%package doc
Summary: Documentation for the XML/Ada library
BuildArch: noarch
License: AdaCore-doc AND MIT AND BSD-2-Clause
# License for the documentation is AdaCore-doc. The Javascript and CSS files
# that Sphinx includes with the documentation are BSD 2-Clause and MIT-licensed.
Requires: font(fontawesome)
Requires: font(lato)
Requires: font(robotoslab)
# Fonts are required by the Read the Docs Sphinx theme.
%description doc %{common_description_en}
This package contains the documentation in HTML and PDF, and some examples.
%else
# When bootstrapping gprbuild, only a package that contains source code is
# produced, so a debug package is not needed.
%global debug_package %{nil}
%package sources
Summary: Source of XMLada for bootstrapping
Summary: Sources of the XML/Ada library (for bootstrapping GPRbuild)
BuildArch: noarch
%description sources
On architectures without gprbuild installs sources for gprbuild's bootstrap
%description sources %{common_description_en}
This package contains source code for bootstrapping GPRbuild on architectures
on which GPRbuild is not yet available.
%endif
#############
## Prepare ##
#############
%prep
%setup -q -n xmlada-gpl-%{version}-src
%autosetup -C -p1
# Set version number.
sed --in-place --expression 's/18.0w/%{version}/' configure configure.in
###########
## Build ##
###########
%build
%ifnarch %{bootstrap_arch}
%configure --disable-rpath --enable-shared --disable-static --enable-build=distrib
make shared static GPROPTS="%{Gnatmake_optflags}" prefix=%{buildroot}/%{_prefix}
%if %{without bootstrap}
%configure --enable-build=distrib --enable-shared
# Build the libraries.
%{make_build} shared static-pic GPROPTS='%{GPRbuild_flags}'
# Make the documentation.
make -C docs html latexpdf
%else
%configure --enable-static --enable-build=distrib
%{configure} --enable-build=distrib
%endif
#############
## Install ##
#############
%install
%ifnarch %{bootstrap_arch}
###export GPRINSTALL_OPTS="--build-name=relocatable --lib-subdir=%{buildroot}/%{_libdir}/%{name} --link-lib-subdir=%{buildroot}/%{_libdir} --sources-subdir=%{buildroot}/%{_includedir}/%{name}"
export GPRINSTALL_OPTS="--lib-subdir=%{buildroot}/%{_libdir} --link-lib-subdir=%{buildroot}/%{_libdir}"
## Install the shared libraries first and then the static ones, because
## apparently the variant that gprinstall sees first becomes the default in the
## project files.
make install-relocatable install-static prefix=%{buildroot}/%{_prefix} GPROPTS="${GPRINSTALL_OPTS}" PSUB="share/gpr"
%if %{without bootstrap}
## Revoke exec permissions
find %{buildroot} -name '*.gpr' -exec chmod -x {} \;
find %{buildroot}%{_docdir} -type f -exec chmod -x {} \;
## Delete old bash script (not needed now)
rm -f %{buildroot}%{_bindir}/xmlada-config
install -d -m 0755 %{buildroot}/%{_libdir}/%{name}/static/
## There is not GNAT programming studio in Fedora
## To enable GPS plugin delete this string and create subpackage
rm -f %{buildroot}/%{_datadir}/gps/plug-ins/%{name}_gps.py*
rm -f %{buildroot}/%{_libdir}/%{name}/static/*
## These Sphinx-generated files aren't needed in the package:
rm %{buildroot}%{_pkgdocdir}/{.buildinfo,objects.inv}
# Verify that the ALI files of both builds (relocatable and static-pic) match.
# The verfication is necessary as GPRinstall will overwrite the ALI files during
# the installation of the static-pic build (which is installed after the
# relocatable build).
for component_dir in dom schema unicode sax input_sources ; do
diff --exclude "*.a" --exclude "*.so*" --exclude ".cvsignore" \
%{_builddir}/%{name}-%{version}/${component_dir}/lib/relocatable \
%{_builddir}/%{name}-%{version}/${component_dir}/lib/static-pic
done
# Install each component.
function run_gprinstall {
local libtype=$1
local component=$2
local directory=$3 # directory name in the source tree
%{GPRinstall -s xmlada/${component}} \
--build-var=LIBRARY_TYPE --build-var=XMLADA_BUILD \
--build-name=${libtype} -XLIBRARY_TYPE=${libtype} \
-P ${directory}/%{name}_${component}.gpr
}
for libtype in relocatable static-pic ; do
for component in dom schema unicode sax ; do
run_gprinstall ${libtype} ${component} ${component}
done
# The "input" component needs special treatment as its dirname in the source
# tree ("input_sources") is not reflected in its GNAT project file
# ("xmlada_input.gpr").
run_gprinstall ${libtype} input input_sources
done
# Install the aggregate project file ("xmlada.gpr").
install --mode=u=rw,go=r,a-s --preserve-timestamps \
%{SOURCE1} --target-directory=%{buildroot}%{_GNAT_project_dir}
# Fix up the symbolic links for the shared libraries.
for component in dom input_sources schema unicode sax ; do
ln --symbolic --force lib%{name}_${component}.so.%{version} \
%{buildroot}%{_libdir}/lib%{name}_${component}.so
done
# Move examples to the _pkgdocdir and remove the remaining empty directory.
mv --no-target-directory %{buildroot}%{_datadir}/examples/%{name} \
%{buildroot}%{_pkgdocdir}/examples
rmdir %{buildroot}%{_datadir}/examples
# Make the generated project files architecture-independent.
for component in dom input schema unicode sax ; do
sed --regexp-extended --in-place \
'--expression=1i with "directories";' \
'--expression=/^-- This project has been generated/d' \
'--expression=s|^( *for +Source_Dirs +use +).*;$|\1(Directories.Includedir \& "/'%{name}/${component}'");|i' \
'--expression=s|^( *for +Library_Dir +use +).*;$|\1Directories.Libdir;|i' \
'--expression=s|^( *for +Library_ALI_Dir +use +).*;$|\1Directories.Libdir \& "/'%{name}'";|i' \
%{buildroot}%{_GNAT_project_dir}/%{name}_${component}.gpr
# The Sed commands are:
# 1: Insert a with clause before the first line to import the directories
# project.
# 2: Delete a comment that mentions the architecture.
# 3: Replace the value of Source_Dirs with a pathname based on
# Directories.Includedir.
# 4: Replace the value of Library_Dir with Directories.Libdir.
# 5: Replace the value of Library_ALI_Dir with a pathname based on
# Directories.Libdir.
done
mkdir -p %{buildroot}/%{_datarootdir}/%{name}
mv %{buildroot}/%{_datarootdir}/examples %{buildroot}/%{_datarootdir}/%{name}
## GPRinstall's manifest files are architecture-specific because they contain
## what seems to be checksums of architecture-specific files, so they must not
## be under _datadir. Their function is apparently undocumented, but my crystal
## ball tells me that they're used when GPRinstall uninstalls or upgrades
## packages. The manifest file is therefore irrelevant in this RPM package, so
## delete it.
rm -rf %{buildroot}%{_GNAT_project_dir}/manifests
%else
mkdir -p %{buildroot}/%{_includedir}/%{name}/sources
cp -r . %{buildroot}/%{_includedir}/%{name}/sources
find %{buildroot}/%{_includedir}/%{name}/sources -type f ! -name "*ad[sb]" ! -name "*gpr" -delete
find %{buildroot}/%{_includedir}/%{name}/sources -type d -empty -delete
# Copy the source files.
mkdir --parents %{buildroot}%{_includedir}/%{name}/sources
cp -r . %{buildroot}%{_includedir}/%{name}/sources
find %{buildroot}%{_includedir}/%{name}/sources -type f ! -name "*ad[sb]" ! -name "*gpr" -delete
find %{buildroot}%{_includedir}/%{name}/sources -type d -empty -delete
%endif
%check
## Verify that there are no runpaths in the compiled libraries.
%{_rpmconfigdir}/check-rpaths
###########
## Files ##
###########
%if %{without bootstrap}
%files
%license COPYING*
%doc README.md TODO AUTHORS
%ifnarch %{bootstrap_arch}
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/static
%{_libdir}/lib%{name}_dom.so.*
%{_libdir}/lib%{name}_input_sources.so.*
%{_libdir}/lib%{name}_schema.so.*
%{_libdir}/lib%{name}_unicode.so.*
%{_libdir}/lib%{name}_sax.so.*
%{_libdir}/%{name}/lib%{name}*.so.*
%endif
%license COPYING3 COPYING.RUNTIME
%doc README* TODO AUTHORS
%{_libdir}/lib%{name}*.so.%{version}
%ifnarch %{bootstrap_arch}
%files devel
%{_includedir}/%{name}
%{_GNAT_project_dir}/%{name}*.gpr
%{_includedir}/%{name}
%dir %{_libdir}/%{name}
%attr(444,-,-) %{_libdir}/%{name}/*.ali
%{_libdir}/%{name}/lib%{name}*.so
%{_libdir}/lib%{name}*.so
%files static
%{_libdir}/lib%{name}*.a
%files doc
%dir %{_pkgdocdir}
%{_pkgdocdir}/*.html
%{_pkgdocdir}/searchindex.js
%{_pkgdocdir}/_sources
%{_pkgdocdir}/_static
%{_pkgdocdir}/XMLAda.pdf
%{_datarootdir}/%{name}
%files static
%{_libdir}/%{name}/*.a
%{_pkgdocdir}/examples
# Exclude Sphinx-generated files that aren't needed in the package.
%exclude %{_pkgdocdir}/.buildinfo
%exclude %{_pkgdocdir}/objects.inv
%else
%files sources
%{_includedir}/%{name}
%endif
###############
## Changelog ##
###############
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2:26.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sun May 10 2026 Björn Persson <Bjorn@Rombobjörn.se> - 2:26.0.0-4
- Rebuilt because GCC broke ALI again.
* Sat Mar 28 2026 Björn Persson <Bjorn@Rombobjörn.se> - 2:26.0.0-3
- Rebuilt because GCC 16.0.1-0.10 broke ALI.
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2:26.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Tue Dec 23 2025 Dennis van Raaij <dvraaij@fedoraproject.org> - 2:26.0.0-1
- Updated to v26.0.0.
* Fri Aug 08 2025 Björn Persson <Bjorn@Rombobjörn.se> - 2:25.0.0-7
- Rebuilt because the ALI of System.OS_Constants changed.
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2:25.0.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2:25.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Jan 15 2025 Björn Persson <Bjorn@Rombobjörn.se> - 2:25.0.0-4
- Rebuilt with another GCC 15 prerelease.
* Mon Jan 13 2025 Björn Persson <Bjorn@Rombobjörn.se> - 2:25.0.0-3
- Rebuilt with GCC 15 prerelease.
* Wed Dec 04 2024 Pavel Zhukov <landgraf@fedoraproject.org> - 2:25.0.0-2
- Disable bootstrap
* Sun Oct 27 2024 Dennis van Raaij <dvraaij@fedoraproject.org> - 2:25.0.0-1
- Updated to v25.0.0.
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2:24.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sun Jan 28 2024 Dennis van Raaij <dvraaij@fedoraproject.org> - 2:24.0.0-1
- Updated to v24.0.0.
- Generated HTML-documentation now uses the 'Read the Docs' Sphinx theme.
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2:23.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Jan 16 2024 Björn Persson <Bjorn@Rombobjörn.se> - 2:23.0.0-4
- Rebuilt with GCC 14 prerelease.
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2:23.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Mar 13 2023 Björn Persson <Bjorn@Rombobjörn.se> - 2:23.0.0-2
- Set a minimum version of fedora-gnat-project-common.
- Simplified the install section a bit.
* Tue Feb 14 2023 Dennis van Raaij <dvraaij@fedoraproject.org> - 2:23.0.0-1
- Updated to v23.0.0, using the archive available on GitHub.
- Removed backport patch for improved Unicode support.
- Removed fix for file permissions; has been fixed upstream (commit: 9e1bd23).
- Removed patch gprbuild-gprinstall-relocate-artifacts.patch; move files after
GPRinstall has run.
- Moved the documentation back to where is was until version 2:22.0.0.
* Sun Feb 12 2023 Dennis van Raaij <dvraaij@fedoraproject.org> - 2:22.0.0-1
- Updated to v22.0.0, using the archive available on GitHub.
- Changed the epoch to mark the new upstream version scheme.
- Changed the epoch to 2 instead of 1 for consistency with the GNATcoll
packages.
- Updated the license, a runtime exception has now been added.
- Added new build dependencies to build the documentation with Sphinx and LaTeX.
- Examples are now located in _pkgdocdir/examples.
- License field now contains an SPDX license expression.
- Added the Unicode license to cover all code that has been generated using
Unicode data.
- Removed some post-install steps that are no longer required.
- Static libraries are now build position independent (PIC).
- Fix permission errors in the prep step; these are source packaging errors.
- Updated some summaries and descriptions.
- Improved spec file readability.
- Marked the source package as architecture independent.
- Removed empty directory '_libdir/static'; it seems to have no purpose.
- Moved all libraries from '_libdir/xmlada' to '_libdir'.
- Fix up the symbolic links for the shared libraries.
- Moved documentation and examples into a separate package.
- Made the generated project files architecture-independent.
- Added a build dependency on sed, removed the explicit version dependency on
GPRbuild.
- Bootstrap mode can now be enabled via a configuration option.
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2020-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Jan 17 2023 Björn Persson <Bjorn@Rombobjörn.se> - 2020-9
- Rebuilt with GCC 13.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2020-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2020-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sun Jan 16 2022 Björn Persson <Bjorn@Rombobjörn.se> - 2020-6
- Rebuilt with GCC 12 prerelease.
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2020-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2020-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Dec 21 2020 Pavel Zhukov <pavel@zhukoff.net> - 2020-3
- Rebuild. Ali files invalidated by gcc update
* Tue Dec 8 2020 Pavel Zhukov <pzhukov@redhat.com> - 2020-2
- Disable gprbuild's bootstraping
* Tue Dec 8 2020 Pavel Zhukov <pzhukov@redhat.com> - 2020-1
- New version v2020
* Mon Dec 07 2020 Jeff Law <releng@fedoraproject.org> - 2019-4
- Gcc 11 bootstrap
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Feb 3 2020 Björn Persson <Bjorn@Rombobjörn.se> - 2019-1
- Upgraded to the 2019 release.
* Mon Feb 3 2020 Pavel Zhukov <pzhukov@redhat.com> - 2018-11
- rebuild with new gprbuild
* Mon Feb 3 2020 Pavel Zhukov <pzhukov@redhat.com> - 2018-10
- Gcc 10 bootstrap
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2018-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 9 2019 Pavel Zhukov <pzhukov@redhat.com> - 2018-7
- Rebuld with new gnat-rpm-macros
- Build with gprbuild 2018
@ -245,7 +507,7 @@ find %{buildroot}/%{_includedir}/%{name}/sources -type d -empty -delete
* Sun Mar 15 2015 Pavel Zhukov <landgraf@fedoraproject.org> - 2013-10
- Create unversioned symlinks
* Sat Feb 14 2015 Pavel Zhukov <landgraf@fedoraproject.org> - 2013-9
- Rebuild with new gcc 4.9
@ -262,7 +524,7 @@ find %{buildroot}/%{_includedir}/%{name}/sources -type d -empty -delete
- aarch64 now has Ada
* Sun Apr 20 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 2013-4
- Rebuild for new gcc
- Rebuild for new gcc
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild