Compare commits

..

110 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
Pavel Zhukov
6d3ffd8870 Rebuild with new gprbuild 2019-02-10 15:57:16 +01:00
Pavel Zhukov
1244406cca Rebuild with new gprbuild 2019-02-09 22:03:33 +01:00
Pavel Zhukov
5e6087569e Rebuild with new gnat-srpm-macros 2019-02-09 15:09:07 +01:00
Pavel Zhukov
4541ef7816 Rebootstrap 2019-02-06 11:20:57 +01:00
Pavel Zhukov
ac8ab4dca3 Rebuild for ppc64le 2019-02-06 11:10:40 +01:00
Pavel Zhukov
b5c69d8e8a Rebuild with new gprbuild 2019-02-05 14:30:26 +01:00
Pavel Zhukov
41222ee86b Upload sources 2019-02-05 13:30:56 +01:00
Pavel Zhukov
cbb30e8d52 Produce sources only in bootstap mode 2019-02-05 13:24:42 +01:00
Fedora Release Engineering
84037ad5e7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 12:32:20 +00:00
17aa5f5ba0 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:55 +01:00
Fedora Release Engineering
3efaeed067 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 09:22:59 +00:00
Jason Tibbitts
61f1bdf790 Remove needless use of %defattr 2018-07-09 23:55:05 -05:00
Pavel Zhukov
c2d640dbad Build source package on non gprbuild-enables architectures 2018-04-03 09:43:33 +02:00
Björn Persson
7b7a4fd505 Removed buildroot deletion.
Cleaning the buildroot has been	unnecessary for	a long time.
2018-02-24 18:43:58 +01:00
Pavel Zhukov
bebf4c2e59 Rebuild with new gnat 2018-02-06 09:43:29 +01:00
Fedora Release Engineering
558ca340e2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 10:46:51 +00:00
Fedora Release Engineering
d6a4ec3f9d - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 22:12:51 +00:00
Pavel Zhukov
4ac526462d rebuild with new gprbuild 2017-07-15 12:24:14 +02:00
Pavel Zhukov
1ede0dc65f New release 2017 2017-07-07 17:11:45 +02:00
Pavel Zhukov
f8057ff0ac Rebuild for properly linking sec arches 2017-04-20 09:42:12 +02:00
Björn Persson
cb5b1b51c1 Reverted the temporary workaround. 2017-02-17 09:10:56 +01:00
Björn Persson
7b5a3901f4 Made a temporary workaround to rebuild with GCC 7 prerelease. 2017-02-12 11:54:13 +01:00
Björn Persson
2b51263147 Adapted to another silly change in the directory layout. 2017-02-12 10:49:02 +01:00
Fedora Release Engineering
a47898855d - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 17:56:55 +00:00
Pavel Zhukov
423db0e30b Bump release tag 2017-02-04 14:26:10 +01:00
Pavel Zhukov
3ce55fdf9d Rebuild with new gnat 2017-02-04 14:11:14 +01:00
Björn Persson
fe555c7a3d Upgraded to the 2016 release.
· Removed the irrelevant and FHS-violating manifest file.
· The license has changed to GPLv3+.
2016-08-08 10:05:02 +02:00
Björn Persson
beda69cefd Tagged the license file as such. 2016-05-01 23:36:24 +02:00
Fedora Release Engineering
33f7b47ac9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 03:35:30 +00:00
Björn Persson
f250d81a12 Rebuild with GCC 6 even on ARM. 2016-02-01 01:26:44 +01:00
Björn Persson
b1cbb76433 Rebuild XMLada with GCC6 on x86 and x86-64 to enable bootstrapping GPRbuild on ARM. 2016-01-31 18:47:05 +01:00
Björn Persson
1b17ffed56 Added documentation back. 2015-12-19 21:34:52 +01:00
Björn Persson
60da838948 Added a -static subpackage for linking GPRbuild statically. 2015-12-19 21:31:50 +01:00
9de504c9de Bump version 2015-06-24 21:07:16 +00:00
088eb97c3b Remove build hacks 2015-06-24 21:05:41 +00:00
b987c3c4a8 Add temporary provides tag 2015-06-24 17:41:45 +00:00
16bc4d8cdc Apply temporary fix to solve chicken-egg problem with gprbuild 2015-06-24 09:49:26 +00:00
72686aaafb Place includes into subdirectories 2015-06-24 07:31:02 +00:00
5a05f6660c Install xmlada.gpr 2015-06-23 17:51:45 +00:00
38b1fd401c New release (#2015) 2015-06-23 06:19:19 +00:00
Dennis Gilmore
469154cb33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 04:08:08 +00:00
7 changed files with 496 additions and 532 deletions

11
.gitignore vendored
View file

@ -2,3 +2,14 @@
/xmlada-gpl-4.1-src.tgz
/xmlada-gpl-4.3-src.tgz
/xmlada-gpl-2013-src.tgz
/xmlada-gpl-2015-src.tar.gz
/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 @@
46df8b0190af7e6950f824a55c00fd85 xmlada-gpl-2013-src.tgz
SHA512 (xmlada-26.0.0.tar.gz) = b97f7727df52229f8e76ab169f4b42b9b82b20c82555607d65455f6cb7836c83219017a45b832de38b348e595f5a68d0987e3c568293b45fc285ffdc3ec3aa01

View file

@ -1,261 +0,0 @@
--- a/Makefile.in 2013-07-13 10:05:59.831987250 +0200
+++ b/Makefile.in 2013-07-13 10:09:09.344981612 +0200
@@ -1,7 +1,8 @@
## The type of library we want to build. Possible values:
## relocatable
## static
-LIBRARY_TYPE=static
+LIBRARY_TYPE=relocatable
+DESTDIR ?=
# Replace with the location for the installation directory
INSTALL=@INSTALL@
@@ -110,29 +111,29 @@
cd ${xmllib}; ${CHMOD} ugo-w *.ali
install_dirs: force
- @${MKDIR} ${bindir}
- @${MKDIR} ${xmllib}
- @${MKDIR} ${prefix}/lib/gnat/xmlada
- @${MKDIR} ${libdir}
- @${MKDIR} ${datadir}/doc/xmlada
- @${MKDIR} ${includedir}/xmlada
- @${MKDIR} ${datadir}/gps/plug-ins/
+ @${MKDIR} ${DESTDIR}/${bindir}
+ @${MKDIR} ${DESTDIR}/${xmllib}
+ @${MKDIR} ${DESTDIR}/${prefix}/lib/gnat/xmlada
+ @${MKDIR} ${DESTDIR}/${libdir}
+ @${MKDIR} ${DESTDIR}/${datadir}/doc/xmlada
+ @${MKDIR} ${DESTDIR}/${includedir}/xmlada
+ @${MKDIR} ${DESTDIR}/${datadir}/gps/plug-ins/
## Do the installation for either shared or static, depending on
## $LIBRARY_TYPE
install_library_type: install_dirs ${MODULE_INSTALL}
- ${INSTALL} distrib/xmlada_shared.gpr ${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada.gpr ${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_dom.gpr ${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_sax.gpr ${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_input.gpr ${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_schema.gpr ${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_unicode.gpr ${prefix}/lib/gnat/
- ${INSTALL} xmlada-config ${bindir}
- -$(CP) -r docs/_build/html/* $(datadir)/doc/xmlada/ 2>/dev/null
- -$(CP) -r docs/_build/latex/XMLAda.pdf $(datadir)/doc/xmlada/ 2>/dev/null
- ${CHMOD} +x ${bindir}/xmlada-config
- ${INSTALL} distrib/xmlada_gps.py ${datadir}/gps/plug-ins/
+ ${INSTALL} distrib/xmlada_shared.gpr ${DESTDIR}/${prefix}/lib/gnat/
+ ${INSTALL} distrib/xmlada.gpr ${DESTDIR}/${prefix}/lib/gnat/
+ ${INSTALL} distrib/xmlada_dom.gpr ${DESTDIR}/${prefix}/lib/gnat/
+ ${INSTALL} distrib/xmlada_sax.gpr ${DESTDIR}/${prefix}/lib/gnat/
+ ${INSTALL} distrib/xmlada_input.gpr ${DESTDIR}/${prefix}/lib/gnat/
+ ${INSTALL} distrib/xmlada_schema.gpr ${DESTDIR}/${prefix}/lib/gnat/
+ ${INSTALL} distrib/xmlada_unicode.gpr ${DESTDIR}/${prefix}/lib/gnat/
+ ${INSTALL} xmlada-config ${DESTDIR}/${bindir}
+ -$(CP) -r docs/_build/html/* ${DESTDIR}/$(datadir)/doc/xmlada/ 2>/dev/null
+ -$(CP) -r docs/_build/latex/XMLAda.pdf ${DESTDIR}/$(datadir)/doc/xmlada/ 2>/dev/null
+ ${CHMOD} +x ${DESTDIR}/${bindir}/xmlada-config
+ ${INSTALL} distrib/xmlada_gps.py ${DESTDIR}/${datadir}/gps/plug-ins/
## Do the installation for an explicit target
install_static:
--- a/Makefile.314.in 2013-07-13 10:09:14.277981465 +0200
+++ b/Makefile.314.in 2013-07-13 10:11:12.683977943 +0200
@@ -1,3 +1,4 @@
+DESTDIR ?=
PREFIX=@prefix@
BUILD_SHARED=FALSE
RANLIB=@RANLIB@
@@ -15,11 +16,11 @@
cd ${PREFIX}/include/xmlada; ${CHMOD} -w *.ali
install_dirs: force
- ${MKDIR} ${PREFIX}/lib
- ${MKDIR} ${PREFIX}/include/xmlada
- ${MKDIR} ${PREFIX}/bin
- ${CP} xmlada-config ${PREFIX}/bin
- ${CHMOD} +x ${PREFIX}/bin/xmlada-config
+ ${MKDIR} ${DESTIR}/${PREFIX}/lib
+ ${MKDIR} ${DESTIR}/${PREFIX}/include/xmlada
+ ${MKDIR} ${DESTIR}/${PREFIX}/bin
+ ${CP} xmlada-config ${DESTIR}/${PREFIX}/bin
+ ${CHMOD} +x ${DESTIR}/${PREFIX}/bin/xmlada-config
${MODULES}: force
cd $@; ${MAKE} -f ../Makefile.module.314
--- a/Makefile.module.314 2013-07-13 10:11:22.609977648 +0200
+++ b/Makefile.module.314 2013-07-13 10:12:45.990975167 +0200
@@ -10,6 +10,8 @@
LN=ln -f -s
BUILD_SHARED=
+ADA_PROJECT_PATH ?=
+DESTDIR ?=
PREFIX=
MAJOR=
MINOR=
--- a/Makefile.module.314 2013-07-13 10:14:15.854972494 +0200
+++ b/Makefile.module.314 2013-07-13 10:16:24.197968676 +0200
@@ -11,6 +11,7 @@
BUILD_SHARED=
ADA_PROJECT_PATH ?=
+LIBDIR ?=
DESTDIR ?=
PREFIX=
MAJOR=
@@ -39,12 +40,11 @@
ifeq (${BUILD_SHARED}, TRUE)
cd obj; ${CC} -shared -o ${soname}.so ${OBJ}
endif
- cd obj; ${CP} *.ali ${PREFIX}/include/xmlada
- ${CP} *.ad[bs] ${PREFIX}/include/xmlada
- cd obj; ${CP} ${libname}.a ${PREFIX}/lib
+ cd obj; ${CP} *.ali ${DESTDIR}/${LIBDIR}/xmlada/
+ ${CP} *.ad[bs] ${DESTDIR}/${PREFIX}/include/xmlada
ifeq (${BUILD_SHARED}, TRUE)
- cd obj; ${CP} ${soname}.so ${PREFIX}/lib
- cd ${PREFIX}/lib; ${LN} ${soname}.so ${libname}.so
+ cd obj; ${CP} ${soname}.so ${DESTDIR}/${LIBDIR}
+ cd ${DESTDIR}/${LIBDIR}; ${LN} ${soname}.so ${libname}.so
endif
force:
--- a/Makefile.314.in 2013-07-13 10:19:56.234962369 +0200
+++ b/Makefile.314.in 2013-07-13 10:20:40.494961052 +0200
@@ -24,7 +24,7 @@
${MODULES}: force
cd $@; ${MAKE} -f ../Makefile.module.314
- cd $@; ${MAKE} -f ../Makefile.module.314 MAJOR=${MAJOR} MINOR=${MINOR} PREFIX="${PREFIX}" BUILD_SHARED=${BUILD_SHARED} RANLIB="${RANLIB}" MODULE=$@ lib
+ cd $@; ${MAKE} -f ../Makefile.module.314 MAJOR=${MAJOR} MINOR=${MINOR} DESTDIR="${DESTDIR}" LIBDIR="${LIBDIR}" PREFIX="${PREFIX}" BUILD_SHARED=${BUILD_SHARED} RANLIB="${RANLIB}" MODULE=$@ lib
clean: force
${RM} ${MODULES:%=%/obj/*} 2>/dev/null
--- a/Makefile.in 2013-07-13 10:21:58.902958720 +0200
+++ b/Makefile.in 2013-07-13 10:24:54.798953487 +0200
@@ -88,27 +88,27 @@
# Rule for installing the modules
%_inst: force
- ${CP} $*/*.ad[bs] ${includedir}/xmlada
- cd $*; ls *.ad[bs] > ${prefix}/lib/gnat/xmlada/xmlada_$*.lgpr
- -cd ${xmllib}; ${CHMOD} ugo+w *.ali
- -${CP} $*/lib/${LIBRARY_TYPE}/*.ali ${xmllib}
+ ${CP} $*/*.ad[bs] $(DESTDIR)/${includedir}/xmlada
+ cd $*; ls *.ad[bs] > $(DESTDIR)/${prefix}/lib/gnat/xmlada/xmlada_$*.lgpr
+ -cd $(DESTDIR)/${xmllib}; ${CHMOD} ugo+w *.ali
+ -${CP} $*/lib/${LIBRARY_TYPE}/*.ali $(DESTDIR)/${xmllib}
${RM} ${libdir}/libxmlada_$**
${RM} ${xmllib}libxmlada_$**
ifeq (${LIBRARY_TYPE},static)
- ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.a ${xmllib}
+ ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.a $(DESTDIR)/${xmllib}
else
ifeq (${LIBEXT},.dll)
- ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT} ${xmllib}
- cd ${bindir}; ${CP} ${libdir}/xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT} libxmlada_$*${LIBEXT}
+ ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT} $(DESTDIR)/${xmllib}
+ cd $(DESTDIR)/${bindir}; ${CP} ${libdir}/xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT} libxmlada_$*${LIBEXT}
else
- ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} ${xmllib}
+ ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} $(DESTDIR)/${xmllib}
cd ${xmllib}; ${LN_S} libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}
-cd ${xmllib}; ${LN_S} libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${basename ${VERSION}}
cd ${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${VERSION}
-cd ${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${basename ${VERSION}}
endif
endif
- cd ${xmllib}; ${CHMOD} ugo-w *.ali
+ cd $(DESTDIR)/${xmllib}; ${CHMOD} ugo-w *.ali
install_dirs: force
@${MKDIR} ${DESTDIR}/${bindir}
--- a/Makefile.in 2013-07-13 10:30:22.334943744 +0200
+++ b/Makefile.in 2013-07-13 10:30:49.698942930 +0200
@@ -92,8 +92,8 @@
cd $*; ls *.ad[bs] > $(DESTDIR)/${prefix}/lib/gnat/xmlada/xmlada_$*.lgpr
-cd $(DESTDIR)/${xmllib}; ${CHMOD} ugo+w *.ali
-${CP} $*/lib/${LIBRARY_TYPE}/*.ali $(DESTDIR)/${xmllib}
- ${RM} ${libdir}/libxmlada_$**
- ${RM} ${xmllib}libxmlada_$**
+ ${RM} $(DESTDIR)/${libdir}/libxmlada_$**
+ ${RM} $(DESTDIR)/${xmllib}libxmlada_$**
ifeq (${LIBRARY_TYPE},static)
${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.a $(DESTDIR)/${xmllib}
else
--- a/Makefile.in 2013-07-13 10:34:51.431935739 +0200
+++ b/Makefile.in 2013-07-13 10:35:09.178935211 +0200
@@ -102,10 +102,10 @@
cd $(DESTDIR)/${bindir}; ${CP} ${libdir}/xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT} libxmlada_$*${LIBEXT}
else
${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} $(DESTDIR)/${xmllib}
- cd ${xmllib}; ${LN_S} libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}
- -cd ${xmllib}; ${LN_S} libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${basename ${VERSION}}
- cd ${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${VERSION}
- -cd ${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${basename ${VERSION}}
+ cd $(DESTDIR)/${xmllib}; ${LN_S} libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}
+ -cd $(DESTDIR)/${xmllib}; ${LN_S} libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${basename ${VERSION}}
+ cd $(DESTDIR)/${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${VERSION}
+ -cd $(DESTDIR)/${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${basename ${VERSION}}
endif
endif
cd $(DESTDIR)/${xmllib}; ${CHMOD} ugo-w *.ali
--- a/Makefile.in 2013-07-13 10:37:32.484930948 +0200
+++ b/Makefile.in 2013-07-13 10:38:30.873929211 +0200
@@ -113,7 +113,7 @@
install_dirs: force
@${MKDIR} ${DESTDIR}/${bindir}
@${MKDIR} ${DESTDIR}/${xmllib}
- @${MKDIR} ${DESTDIR}/${prefix}/lib/gnat/xmlada
+ @${MKDIR} ${DESTDIR}/${ADA_PROJECT_PATH}/xmlada
@${MKDIR} ${DESTDIR}/${libdir}
@${MKDIR} ${DESTDIR}/${datadir}/doc/xmlada
@${MKDIR} ${DESTDIR}/${includedir}/xmlada
--- a/Makefile.in 2013-07-13 10:41:58.644923031 +0200
+++ b/Makefile.in 2013-07-13 10:42:44.785921658 +0200
@@ -89,7 +89,7 @@
# Rule for installing the modules
%_inst: force
${CP} $*/*.ad[bs] $(DESTDIR)/${includedir}/xmlada
- cd $*; ls *.ad[bs] > $(DESTDIR)/${prefix}/lib/gnat/xmlada/xmlada_$*.lgpr
+ cd $*; ls *.ad[bs] > $(DESTDIR)/${ADA_PROJECT_PATH}/xmlada/xmlada_$*.lgpr
-cd $(DESTDIR)/${xmllib}; ${CHMOD} ugo+w *.ali
-${CP} $*/lib/${LIBRARY_TYPE}/*.ali $(DESTDIR)/${xmllib}
${RM} $(DESTDIR)/${libdir}/libxmlada_$**
--- a/Makefile.in 2013-07-13 10:45:14.995917190 +0200
+++ b/Makefile.in 2013-07-13 10:45:43.935916329 +0200
@@ -122,13 +122,13 @@
## Do the installation for either shared or static, depending on
## $LIBRARY_TYPE
install_library_type: install_dirs ${MODULE_INSTALL}
- ${INSTALL} distrib/xmlada_shared.gpr ${DESTDIR}/${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada.gpr ${DESTDIR}/${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_dom.gpr ${DESTDIR}/${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_sax.gpr ${DESTDIR}/${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_input.gpr ${DESTDIR}/${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_schema.gpr ${DESTDIR}/${prefix}/lib/gnat/
- ${INSTALL} distrib/xmlada_unicode.gpr ${DESTDIR}/${prefix}/lib/gnat/
+ ${INSTALL} distrib/xmlada_shared.gpr ${DESTDIR}/${ADA_PROJECT_PATH}/
+ ${INSTALL} distrib/xmlada.gpr ${DESTDIR}/${ADA_PROJECT_PATH}/
+ ${INSTALL} distrib/xmlada_dom.gpr ${DESTDIR}/${ADA_PROJECT_PATH}/
+ ${INSTALL} distrib/xmlada_sax.gpr ${DESTDIR}/${ADA_PROJECT_PATH}/
+ ${INSTALL} distrib/xmlada_input.gpr ${DESTDIR}/${ADA_PROJECT_PATH}/
+ ${INSTALL} distrib/xmlada_schema.gpr ${DESTDIR}/${ADA_PROJECT_PATH}/
+ ${INSTALL} distrib/xmlada_unicode.gpr ${DESTDIR}/${ADA_PROJECT_PATH}/
${INSTALL} xmlada-config ${DESTDIR}/${bindir}
-$(CP) -r docs/_build/html/* ${DESTDIR}/$(datadir)/doc/xmlada/ 2>/dev/null
-$(CP) -r docs/_build/latex/XMLAda.pdf ${DESTDIR}/$(datadir)/doc/xmlada/ 2>/dev/null
diff --git a/Makefile.in b/Makefile.in
index 97a9b46..85cc3fc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -106,7 +106,7 @@ else
cd $(DESTDIR)/${xmllib}; ${LN_S} libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}
-cd $(DESTDIR)/${xmllib}; ${LN_S} libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${basename ${VERSION}}
cd $(DESTDIR)/${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${VERSION}
- -cd $(DESTDIR)/${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}.${basename ${VERSION}}
+ -cd $(DESTDIR)/${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*${LIBEXT}.${VERSION} libxmlada_$*${LIBEXT}
endif
endif
cd $(DESTDIR)/${xmllib}; ${CHMOD} ugo-w *.ali

View file

@ -1,12 +0,0 @@
--- a/Makefile.in 2013-07-13 11:02:24.357886569 +0200
+++ b/Makefile.in 2013-07-13 11:03:02.057885447 +0200
@@ -21,7 +21,8 @@
# Set a default value (ignored if set in the environment)
PROCESSORS?=1
-GNATMAKE=@gnatmake@ -j${PROCESSORS}
+GNATFLAGS ?=
+GNATMAKE=@gnatmake@ ${GNATFLAGS}
# Compiler mode: one of "distrib", "debug", "optimize", "profile", "coverage"
MODE=distrib

View file

@ -1,116 +0,0 @@
--- a/distrib/xmlada_dom.gpr 2013-07-13 11:07:24.831877631 +0200
+++ b/distrib/xmlada_dom.gpr 2013-07-13 11:08:02.467876511 +0200
@@ -1,12 +1,13 @@
with "xmlada_shared";
+with "directories";
with "xmlada_sax";
project XmlAda_Dom is
for Library_Name use "xmlada_dom";
for Library_Kind use Xmlada_Shared.Xmlada_Kind;
- for Source_Dirs use ("../../include/xmlada");
+ for Source_Dirs use (Directories.Includedir & "/xmlada");
for Source_List_File use "xmlada/" & Project'Library_Name & ".lgpr";
- for Library_Dir use Xmlada_Shared.Libdir;
+ for Library_Dir use Directories.Libdir & "/xmlada/" & Project'Library_Kind;
for Library_Version use
"lib" & Project'Library_Name
& Xmlada_Shared.So_Ext & "." & Xmlada_Shared.Version;
--- a/distrib/xmlada_sax.gpr 2013-07-13 11:08:23.201875894 +0200
+++ b/distrib/xmlada_sax.gpr 2013-07-13 11:08:58.541874843 +0200
@@ -1,13 +1,14 @@
with "xmlada_shared";
+with "directories";
with "xmlada_input";
with "xmlada_unicode";
project XmlAda_Sax is
for Library_Name use "xmlada_sax";
for Library_Kind use Xmlada_Shared.Xmlada_Kind;
- for Source_Dirs use ("../../include/xmlada");
+ for Source_Dirs use (Directories.Includedir & "/xmlada");
for Source_List_File use "xmlada/" & Project'Library_Name & ".lgpr";
- for Library_Dir use Xmlada_Shared.Libdir;
+ for Library_Dir use Directories.Libdir & "/xmlada/" & Project'Library_Kind;
for Library_Version use
"lib" & Project'Library_Name
& Xmlada_Shared.So_Ext & "." & Xmlada_Shared.Version;
--- a/distrib/xmlada_input.gpr 2013-07-13 11:11:33.783870225 +0200
+++ b/distrib/xmlada_input.gpr 2013-07-13 11:12:25.203868695 +0200
@@ -1,12 +1,14 @@
with "xmlada_shared";
with "xmlada_unicode";
+with "directories";
+
project XmlAda_Input is
for Library_Name use "xmlada_input_sources";
for Library_Kind use Xmlada_Shared.Xmlada_Kind;
- for Source_Dirs use ("../../include/xmlada");
+ for Source_Dirs use (Directories.Includedir & "/xmlada");
for Source_List_File use "xmlada/" & Project'Library_Name & ".lgpr";
- for Library_Dir use Xmlada_Shared.Libdir;
+ for Library_Dir use Directories.Libdir & "/xmlada/" & Project'Library_Kind;
for Library_Version use
"lib" & Project'Library_Name & Xmlada_Shared.So_Ext
& "." & Xmlada_Shared.Version;
--- a/distrib/xmlada_shared.gpr.in 2013-07-13 11:12:44.145868132 +0200
+++ b/distrib/xmlada_shared.gpr.in 2013-07-13 11:13:10.165867358 +0200
@@ -1,3 +1,5 @@
+with "directories";
+
project Xmlada_Shared is
for Source_Dirs use ();
Version := "@PACKAGE_VERSION@";
@@ -6,7 +8,7 @@
Xmlada_Kind : Xmlada_Kind_Type := external ("LIBRARY_TYPE", "@DEFAULT_LIBRARY_TYPE@");
-- Location for the dynamic library and ALI files
- Libdir := "../../@LIB@/xmlada/" & Xmlada_Kind;
+ Libdir := Directories.Libdir & "/xmlada/" & Xmlada_Kind;
So_Ext := "@SO_EXT@";
end Xmlada_Shared;
--- a/distrib/xmlada_schema.gpr 2013-07-13 11:13:18.011867124 +0200
+++ b/distrib/xmlada_schema.gpr 2013-07-13 11:13:34.310866640 +0200
@@ -1,10 +1,11 @@
with "xmlada_shared";
+with "directories";
with "xmlada_dom";
project XmlAda_Schema is
for Library_Name use "xmlada_schema";
for Library_Kind use Xmlada_Shared.Xmlada_Kind;
- for Source_Dirs use ("../../include/xmlada");
+ for Source_Dirs use (Directories.Includedir & "/xmlada");
for Source_List_File use "xmlada/" & Project'Library_Name & ".lgpr";
for Library_Dir use Xmlada_Shared.Libdir;
for Library_Version use
--- a/distrib/xmlada_unicode.gpr 2013-07-13 11:13:44.059866350 +0200
+++ b/distrib/xmlada_unicode.gpr 2013-07-13 11:14:04.463865743 +0200
@@ -1,10 +1,12 @@
with "xmlada_shared";
+with "directories";
+
project XmlAda_Unicode is
for Library_Name use "xmlada_unicode";
for Library_Kind use Xmlada_Shared.Xmlada_Kind;
for Source_Dirs use ("../../include/xmlada");
- for Source_List_File use "xmlada/" & Project'Library_Name & ".lgpr";
+ for Source_Dirs use (Directories.Includedir & "/xmlada");
for Library_Dir use Xmlada_Shared.Libdir;
for Library_Version use
"lib" & Project'Library_Name
--- a/distrib/xmlada_unicode.gpr 2013-07-13 11:46:19.044808194 +0200
+++ b/distrib/xmlada_unicode.gpr 2013-07-13 11:46:47.855807337 +0200
@@ -5,8 +5,8 @@
for Library_Name use "xmlada_unicode";
for Library_Kind use Xmlada_Shared.Xmlada_Kind;
- for Source_Dirs use ("../../include/xmlada");
for Source_Dirs use (Directories.Includedir & "/xmlada");
+ for Source_List_File use "xmlada/" & Project'Library_Name & ".lgpr";
for Library_Dir use Xmlada_Shared.Libdir;
for Library_Version use
"lib" & Project'Library_Name

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,50 +1,79 @@
# 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: 2013
Release: 11.1%{?dist}
Epoch: 2
Version: %{upstream_version}
Release: 5%{?dist}
Summary: XML library for Ada
Group: System Environment/Libraries
License: GPLv2+
URL: http://libre.adacore.com
## Direct download link is unavailable
## http://libre.adacore.com/libre/download/
Source0: xmlada-gpl-2013-src.tgz
#Source0: xmlada-gpl-%{version}-src.tgz
## Fedora-specific
Patch2: %{name}-%{version}-gpr.patch
Patch1: %{name}-%{version}-gnatflags.patch
## Patch for use relocatable libs instead static
## and add DESTDIR option for make install
Patch0: %{name}-%{version}-destdir.patch
BuildRequires: chrpath
BuildRequires: gcc-gnat
BuildRequires: fedora-gnat-project-common >= 2
# xmlada and gcc-gnat only available on these:
ExclusiveArch: %{GNAT_arches}
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
# 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 %{common_description_en}
%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.
#################
## Subpackages ##
#################
%package devel
Summary: XML library for Ada devel package
Group: Development/Libraries
License: GPLv2+
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: fedora-gnat-project-common >= 2
%if %{without bootstrap}
%description devel
Xml library for ada devel package.
%package devel
Summary: Development files for the XML/Ada library
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: fedora-gnat-project-common
Recommends: %{name}-doc
%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
Group: Development/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.
@ -53,86 +82,432 @@ 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: Sources of the XML/Ada library (for bootstrapping GPRbuild)
BuildArch: noarch
%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
%patch0 -p1
%patch1 -p1
%patch2 -p1
%autosetup -C -p1
# Set version number.
sed --in-place --expression 's/18.0w/%{version}/' configure configure.in
###########
## Build ##
###########
%build
%configure --disable-rpath --enable-shared --enable-static
make %{?_smp_mflags} GNATFLAGS="%{GNAT_optflags}" ADA_PROJECT_PATH=%_GNAT_project_dir BUILDS_SHARED=yes
%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-build=distrib
%endif
#############
## Install ##
#############
%install
rm -rf %{buildroot}
export BUILDS_SHARED=yes
make install DESTDIR=%{buildroot} ADA_PROJECT_PATH=%_GNAT_project_dir BUILDS_SHARED=yes LIBDIR=%{_libdir}
## 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
## delete rpath manually (#674793)
chrpath --delete %{buildroot}%{_libdir}/%{name}/relocatable/libxmlada*
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*
## only-non-binary-in-usr-lib
%if %{without bootstrap}
%files
%defattr(-,root,root,-)
%doc README TODO AUTHORS COPYING*
%dir %{_libdir}/%{name}
%{_docdir}/%{name}
%dir %{_libdir}/%{name}/relocatable
%{_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}/relocatable/lib%{name}*.so.*
# 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
%else
# 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
###########
## Files ##
###########
%if %{without bootstrap}
%files
%license COPYING3 COPYING.RUNTIME
%doc README* TODO AUTHORS
%{_libdir}/lib%{name}*.so.%{version}
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/%{name}
%dir %{_GNAT_project_dir}/%{name}
%{_GNAT_project_dir}/%{name}.gpr
%{_GNAT_project_dir}/xmlada_shared.gpr
%{_GNAT_project_dir}/%{name}/xmlada_dom.lgpr
%{_GNAT_project_dir}/%{name}/xmlada_input_sources.lgpr
%{_GNAT_project_dir}/%{name}/xmlada_sax.lgpr
%{_GNAT_project_dir}/%{name}/xmlada_schema.lgpr
%{_GNAT_project_dir}/%{name}/xmlada_unicode.lgpr
%{_GNAT_project_dir}/%{name}_dom.gpr
%{_GNAT_project_dir}/%{name}_input.gpr
%{_GNAT_project_dir}/%{name}_sax.gpr
%{_GNAT_project_dir}/%{name}_schema.gpr
%{_GNAT_project_dir}/%{name}_unicode.gpr
%{_includedir}/%{name}/*.adb
%{_includedir}/%{name}/*.ads
%{_libdir}/%{name}/relocatable/*.ali
%{_libdir}/%{name}/relocatable/lib%{name}*.so
%{_GNAT_project_dir}/%{name}*.gpr
%{_includedir}/%{name}
%dir %{_libdir}/%{name}
%attr(444,-,-) %{_libdir}/%{name}/*.ali
%{_libdir}/lib%{name}*.so
%files static
%{_libdir}/%{name}/static
%{_libdir}/lib%{name}*.a
%files doc
%dir %{_pkgdocdir}
%{_pkgdocdir}/*.html
%{_pkgdocdir}/searchindex.js
%{_pkgdocdir}/_sources
%{_pkgdocdir}/_static
%{_pkgdocdir}/XMLAda.pdf
%{_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
* Sun Mar 27 2016 Björn Persson <Bjorn@Rombobjörn.se> - 2013-11.1
* 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
* Tue Feb 5 2019 Pavel Zhukov <pzhukov@redhat.com> - 2018-4
- Rebuild with new gprbuild
* Tue Feb 5 2019 Pavel Zhukov <pzhukov@redhat.com> - 2018-2
- Produce source only package in bootstrap mode
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2017-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Apr 3 2018 Pavel Zhukov <pzhukov@redhat.com> - 2017-6
- Build source packages on non gprbuild enabled arches for bootstraping
* Tue Feb 6 2018 Pavel Zhukov <pzhukov@redhat.com> - 2017-5
- Rebuild with new gnat
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Jul 15 2017 Pavel Zhukov <pzhukov@redhat.com> - 2017-2
- rebuild with new gprbuild
* Fri Jul 7 2017 Pavel Zhukov <pzhukov@redhat.com> - 2017-1
- New version (2017)
* Wed Apr 20 2017 Pavel Zhukov <<landgraf@fedoraproject.org>> - 2016-5
- Rebuild to fix non x86 arches ali versions
* Fri Feb 17 2017 Björn Persson <Bjorn@Rombobjörn.se> - 2016-4
- Reverted the temporary workaround.
* Sun Feb 12 2017 Björn Persson <Bjorn@Rombobjörn.se> - 2016-3
- Made a temporary workaround to rebuild with GCC 7 prerelease.
* Sat Feb 4 2017 Pavel Zhukov <pavel@zhukoff.net> - 2016-1
- Rebuild with new gnat
* Mon Aug 08 2016 Björn Persson <Bjorn@Rombobjörn.se> - 2016-1
- Upgraded to the 2016 release.
- Removed the irrelevant and FHS-violating manifest file.
- The license has changed to GPLv3+.
* Sun May 01 2016 Björn Persson <Bjorn@Rombobjörn.se> - 2015-12
- Tagged the license file as such.
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2015-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sun Jan 31 2016 Björn Persson <Bjorn@Rombobjörn.se> - 2015-10
- Rebuilt with GCC 6 prerelease.
* Sat Dec 19 2015 Björn Persson <Bjorn@Rombobjörn.se> - 2015-8
- Added a -static subpackage for linking GPRbuild statically.
* Wed Jun 24 2015 Pavel Zhukov <<landgraf@fedoraproject.org>> - 2015-7
- Remove temporary links
* Wed Jun 24 2015 Pavel Zhukov <<landgraf@fedoraproject.org>> - 2015-6
- Move sources to separate directories
- Add temporary symlinks to allow gprbuiild bootstraping
- Fix temporary (upgrade) links pattern
- Provide previous version to upgrade gprbuild
* Tue Jun 23 2015 Pavel Zhukov <<landgraf@fedoraproject.org>> - 2015-2
- Install xmlada.gpr
* Wed Jun 17 2015 Pavel Zhukov <<landgraf@fedoraproject.org>> - 2015-1
- New release (#2015)
* Wed Apr 29 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2013-11
- rebuild (gcc / gnat 5)
* 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
@ -149,7 +524,7 @@ rm -f %{buildroot}/%{_datadir}/gps/plug-ins/%{name}_gps.py*
- 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
@ -173,45 +548,3 @@ rm -f %{buildroot}/%{_datadir}/gps/plug-ins/%{name}_gps.py*
* Mon Dec 17 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 4.3-1
- New release
* Tue Jan 10 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 4.1-3
- Rebuild for new GCC-4.7
* Sat Jul 15 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 4.1-2
- Update to new release GNAT-GPL-2011
- Fix permissions
* Wed Mar 30 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 3.2.1-11
- Fix library type (add configure options)
* Tue Mar 01 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 3.2.1-10
- fix path for fedora-gnat-project-common
* Tue Mar 01 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 3.2.1-9
- use macros _GNAT_project_di
- fix hardcode includedir
- fix BuildRequires
- fix owned dir
- fix ?_isa
* Sun Feb 20 2011 Pavel Zhukov <landgraf@fedoraproject.com> - 3.2.1-8
- fix spec errors
- fix directories for rawhide
- fix gcc-4.6 issues
- fix libdir
* Fri Feb 11 2011 Pavel Zhukov <landgraf@fedoraproject.com> - 3.2.1-6
- move gpr to /usr/share/gpr(/xmlada)
* Mon Feb 7 2011 Pavel Zhukov <landgraf@fedoraproject.com> - 3.2.1-5
- move so to -devel package fix spec errors
* Sun Feb 6 2011 Pavel Zhukov <landgraf@fedoraproject.com> - 3.2.1-4
- fix dir owner
* Sat Feb 5 2011 Pavel Zhukov <landgraf@fedoraproject.com> - 3.2.1-3
- fix errors in Makefile
- fix files list
* Fri Feb 4 2011 Pavel Zhukov <landgraf@fedoraproject.com> - 3.2.1-1
- Initial spec