Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
36cd01ab6e | ||
|
|
8f5e17e0f0 | ||
|
|
f5fb2c678d | ||
|
|
294ed11123 | ||
|
|
b13b308b0d | ||
|
|
f068d9d0b3 |
6 changed files with 422 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -0,0 +1,2 @@
|
||||||
|
/xmlada-gpl-3.2.1-src.tgz
|
||||||
|
/xmlada-gpl-4.1-src.tgz
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
c17ac563b8375bd652a0eb8e141cda59 xmlada-gpl-4.1-src.tgz
|
||||||
157
xmlada-4.1-destdir.patch
Normal file
157
xmlada-4.1-destdir.patch
Normal file
|
|
@ -0,0 +1,157 @@
|
||||||
|
--- a/Makefile.in 2011-07-16 11:17:09.335569486 +0400
|
||||||
|
+++ b/Makefile.in 2011-07-16 11:19:13.406569528 +0400
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
## relocatable
|
||||||
|
## static
|
||||||
|
LIBRARY_TYPE=static
|
||||||
|
-
|
||||||
|
+DESTDIR ?=
|
||||||
|
# Replace with the location for the installation directory
|
||||||
|
INSTALL=@INSTALL@
|
||||||
|
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
||||||
|
@@ -114,30 +114,30 @@
|
||||||
|
cd ${xmllib}; ${CHMOD} ugo-w *.ali
|
||||||
|
|
||||||
|
install_dirs: force
|
||||||
|
- @${MKDIR} ${bindir}
|
||||||
|
- @${MKDIR} ${xmllib}
|
||||||
|
- @${MKDIR} ${libdir}/gnat/xmlada
|
||||||
|
- @${MKDIR} ${datadir}/doc/xmlada
|
||||||
|
- @${MKDIR} ${includedir}/xmlada
|
||||||
|
- @${MKDIR} ${datadir}/gps/plug-ins/
|
||||||
|
+ @${MKDIR} ${DESTDIR}/${bindir}
|
||||||
|
+ @${MKDIR} ${DESTDIR}/${xmllib}
|
||||||
|
+ @${MKDIR} ${DESTDIR}/${libdir}/gnat/xmlada
|
||||||
|
+ @${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 ${libdir}/gnat
|
||||||
|
- ${INSTALL} distrib/xmlada.gpr ${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_dom.gpr ${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_sax.gpr ${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_input.gpr ${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_schema.gpr ${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_unicode.gpr ${libdir}/gnat/
|
||||||
|
- ${INSTALL} xmlada-config ${bindir}
|
||||||
|
- -${INSTALL} docs/xml.ps ${datadir}/doc/xmlada 2>/dev/null
|
||||||
|
- -${INSTALL} docs/xml.pdf ${datadir}/doc/xmlada
|
||||||
|
- -${INSTALL} docs/xml.html ${datadir}/doc/xmlada
|
||||||
|
- -${INSTALL} docs/xml.info ${datadir}/doc/xmlada
|
||||||
|
- ${CHMOD} +x ${bindir}/xmlada-config
|
||||||
|
- ${INSTALL} distrib/xmlada_gps.py ${datadir}/gps/plug-ins/
|
||||||
|
+ ${INSTALL} distrib/xmlada_shared.gpr ${DESTDIR}/${libdir}/gnat
|
||||||
|
+ ${INSTALL} distrib/xmlada.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
+ ${INSTALL} distrib/xmlada_dom.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
+ ${INSTALL} distrib/xmlada_sax.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
+ ${INSTALL} distrib/xmlada_input.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
+ ${INSTALL} distrib/xmlada_schema.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
+ ${INSTALL} distrib/xmlada_unicode.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
+ ${INSTALL} xmlada-config ${DESTDIR}/${bindir}
|
||||||
|
+ -${INSTALL} docs/xml.ps ${DESTDIR}/${datadir}/doc/xmlada 2>/dev/null
|
||||||
|
+ -${INSTALL} docs/xml.pdf ${DESTDIR}/${datadir}/doc/xmlada
|
||||||
|
+ -${INSTALL} docs/xml.html ${DESTDIR}/${datadir}/doc/xmlada
|
||||||
|
+ -${INSTALL} docs/xml.info ${DESTDIR}/${datadir}/doc/xmlada
|
||||||
|
+ ${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.in 2011-07-16 11:21:57.232569582 +0400
|
||||||
|
+++ b/Makefile.in 2011-07-16 11:22:12.952569588 +0400
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
## 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@
|
||||||
|
--- a/Makefile.in 2011-07-16 11:27:57.295569704 +0400
|
||||||
|
+++ b/Makefile.in 2011-07-16 11:30:25.628569754 +0400
|
||||||
|
@@ -91,27 +91,27 @@
|
||||||
|
|
||||||
|
# Rule for installing the modules
|
||||||
|
%_inst: force
|
||||||
|
- ${CP} $*/*.ad[bs] ${includedir}/xmlada
|
||||||
|
- cd $*; ls *.ad[bs] > ${libdir}/gnat/xmlada/xmlada_$*.lgpr
|
||||||
|
- -cd ${xmllib}; ${CHMOD} ugo+w *.ali
|
||||||
|
- -${CP} $*/lib/${LIBRARY_TYPE}/*.ali ${xmllib}
|
||||||
|
- ${RM} ${libdir}/libxmlada_$**
|
||||||
|
- ${RM} ${xmllib}libxmlada_$**
|
||||||
|
+ ${CP} $*/*.ad[bs] ${DESTDIR}/${includedir}/xmlada
|
||||||
|
+ cd $*; ls *.ad[bs] > ${DESTDIR}/${libdir}/gnat/xmlada/xmlada_$*.lgpr
|
||||||
|
+ -cd ${DESTDIR}/${xmllib}; ${CHMOD} ugo+w *.ali
|
||||||
|
+ -${CP} $*/lib/${LIBRARY_TYPE}/*.ali ${DESTDIR}/${xmllib}
|
||||||
|
+ ${RM} ${DESTDIR}/${libdir}/libxmlada_$**
|
||||||
|
+ ${RM} ${DESTDIR}/${xmllib}libxmlada_$**
|
||||||
|
ifeq (${LIBRARY_TYPE},static)
|
||||||
|
- ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.a ${xmllib}
|
||||||
|
+ ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.a ${DESTDIR}/${xmllib}
|
||||||
|
else
|
||||||
|
ifeq (${OS},Windows_NT)
|
||||||
|
${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT} ${xmllib}
|
||||||
|
cd ${bindir}; ${CP} ${libdir}/xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT} libxmlada_$*.${LIBEXT}
|
||||||
|
else
|
||||||
|
- ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} ${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}.${basename ${VERSION}}
|
||||||
|
- cd ${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}.${VERSION}
|
||||||
|
+ ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} ${DESTDIR}/${xmllib}
|
||||||
|
+ 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}.${basename ${VERSION}}
|
||||||
|
+ cd ${DESTDIR}/${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}.${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 2011-07-16 11:47:49.580570102 +0400
|
||||||
|
+++ b/Makefile.in 2011-07-16 11:49:47.465570142 +0400
|
||||||
|
@@ -92,7 +92,7 @@
|
||||||
|
# Rule for installing the modules
|
||||||
|
%_inst: force
|
||||||
|
${CP} $*/*.ad[bs] ${DESTDIR}/${includedir}/xmlada
|
||||||
|
- cd $*; ls *.ad[bs] > ${DESTDIR}/${libdir}/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_$**
|
||||||
|
@@ -116,7 +116,7 @@
|
||||||
|
install_dirs: force
|
||||||
|
@${MKDIR} ${DESTDIR}/${bindir}
|
||||||
|
@${MKDIR} ${DESTDIR}/${xmllib}
|
||||||
|
- @${MKDIR} ${DESTDIR}/${libdir}/gnat/xmlada
|
||||||
|
+ @${MKDIR} ${DESTDIR}/${ADA_PROJECT_PATH}/xmlada
|
||||||
|
@${MKDIR} ${DESTDIR}/${datadir}/doc/xmlada
|
||||||
|
@${MKDIR} ${DESTDIR}/${includedir}/xmlada
|
||||||
|
@${MKDIR} ${DESTDIR}/${datadir}/gps/plug-ins/
|
||||||
|
@@ -124,13 +124,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}/${libdir}/gnat
|
||||||
|
- ${INSTALL} distrib/xmlada.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_dom.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_sax.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_input.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_schema.gpr ${DESTDIR}/${libdir}/gnat/
|
||||||
|
- ${INSTALL} distrib/xmlada_unicode.gpr ${DESTDIR}/${libdir}/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}
|
||||||
|
-${INSTALL} docs/xml.ps ${DESTDIR}/${datadir}/doc/xmlada 2>/dev/null
|
||||||
|
-${INSTALL} docs/xml.pdf ${DESTDIR}/${datadir}/doc/xmlada
|
||||||
19
xmlada-4.1-gnatflags.patch
Normal file
19
xmlada-4.1-gnatflags.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
--- a/Makefile.in 2011-07-16 12:05:27.728570456 +0400
|
||||||
|
+++ b/Makefile.in 2011-07-16 12:06:24.945570476 +0400
|
||||||
|
@@ -3,6 +3,7 @@
|
||||||
|
## static
|
||||||
|
LIBRARY_TYPE=relocatable
|
||||||
|
DESTDIR ?=
|
||||||
|
+GNATFLAGS ?=
|
||||||
|
# Replace with the location for the installation directory
|
||||||
|
INSTALL=@INSTALL@
|
||||||
|
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
||||||
|
@@ -20,7 +21,7 @@
|
||||||
|
|
||||||
|
# Set a default value (ignored if set in the environment)
|
||||||
|
PROCESSORS?=1
|
||||||
|
-GNATMAKE=@gnatmake@ -j${PROCESSORS}
|
||||||
|
+GNATMAKE=@gnatmake@ ${GNATFLAGS}
|
||||||
|
|
||||||
|
# Compiler mode: one of "distrib", "debug", "optimize", "profile"
|
||||||
|
MODE=distrib
|
||||||
97
xmlada-gpr.patch
Normal file
97
xmlada-gpr.patch
Normal file
|
|
@ -0,0 +1,97 @@
|
||||||
|
--- a/distrib/xmlada_dom.gpr 2011-03-01 12:18:26.928536602 +0300
|
||||||
|
+++ b/distrib/xmlada_dom.gpr 2011-03-01 12:17:54.631541017 +0300
|
||||||
|
@@ -1,12 +1,13 @@
|
||||||
|
+with "directories";
|
||||||
|
with "xmlada_shared";
|
||||||
|
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/" & Project'Library_Kind;
|
||||||
|
+ for Library_Dir use Directories.Libdir & "/xmlada/" & Project'Library_Kind;
|
||||||
|
for Library_Version use
|
||||||
|
"lib" & Project'Library_Name & ".so." & Xmlada_Shared.Version;
|
||||||
|
for Externally_Built use "true";
|
||||||
|
--- a/distrib/xmlada_sax.gpr 2011-03-01 12:18:26.928536602 +0300
|
||||||
|
+++ b/distrib/xmlada_sax.gpr 2011-03-01 12:17:54.633540891 +0300
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+with "directories";
|
||||||
|
with "xmlada_shared";
|
||||||
|
with "xmlada_input";
|
||||||
|
with "xmlada_unicode";
|
||||||
|
@@ -5,9 +6,9 @@
|
||||||
|
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/" & Project'Library_Kind;
|
||||||
|
+ for Library_Dir use Directories.Libdir & "/xmlada/" & Project'Library_Kind;
|
||||||
|
for Library_Version use
|
||||||
|
"lib" & Project'Library_Name & ".so." & Xmlada_Shared.Version;
|
||||||
|
for Externally_Built use "true";
|
||||||
|
--- a/distrib/xmlada_input.gpr 2011-03-01 12:18:26.928536602 +0300
|
||||||
|
+++ b/distrib/xmlada_input.gpr 2011-03-01 12:17:54.632540953 +0300
|
||||||
|
@@ -1,12 +1,13 @@
|
||||||
|
+with "directories";
|
||||||
|
with "xmlada_shared";
|
||||||
|
with "xmlada_unicode";
|
||||||
|
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/" & Project'Library_Kind;
|
||||||
|
+ for Library_Dir use Directories.Libdir & "/xmlada/" & Project'Library_Kind;
|
||||||
|
for Library_Version use
|
||||||
|
"lib" & Project'Library_Name & ".so." & Xmlada_Shared.Version;
|
||||||
|
for Externally_Built use "true";
|
||||||
|
--- a/distrib/xmlada.gpr 2011-03-01 12:18:26.928536602 +0300
|
||||||
|
+++ b/distrib/xmlada.gpr 2011-03-01 12:17:54.632540953 +0300
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+with "directories";
|
||||||
|
-- Project file for use of XML/Ada.
|
||||||
|
-- Put the directory that contains xmlada.gpr in your ADA_PROJECT_PATH
|
||||||
|
-- variable. Then, in our own project file, add a "with" dependency on
|
||||||
|
--- a/distrib/xmlada_schema.gpr 2011-03-01 12:18:26.928536602 +0300
|
||||||
|
+++ b/distrib/xmlada_schema.gpr 2011-03-01 12:17:54.633540891 +0300
|
||||||
|
@@ -1,12 +1,13 @@
|
||||||
|
+with "directories";
|
||||||
|
with "xmlada_shared";
|
||||||
|
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/" & Project'Library_Kind;
|
||||||
|
+ for Library_Dir use Directories.Libdir & "/xmlada/" & Project'Library_Kind;
|
||||||
|
for Library_Version use
|
||||||
|
"lib" & Project'Library_Name & ".so." & Xmlada_Shared.Version;
|
||||||
|
for Externally_Built use "true";
|
||||||
|
--- a/distrib/xmlada_unicode.gpr 2011-03-01 12:18:26.928536602 +0300
|
||||||
|
+++ b/distrib/xmlada_unicode.gpr 2011-03-01 12:17:54.633540891 +0300
|
||||||
|
@@ -1,11 +1,12 @@
|
||||||
|
+with "directories";
|
||||||
|
with "xmlada_shared";
|
||||||
|
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_Dirs use (Directories.Includedir & "/xmlada");
|
||||||
|
for Source_List_File use "xmlada/" & Project'Library_Name & ".lgpr";
|
||||||
|
- for Library_Dir use "../xmlada/" & Project'Library_Kind;
|
||||||
|
+ for Library_Dir use Directories.Libdir & "/xmlada/" & Project'Library_Kind;
|
||||||
|
for Library_Version use
|
||||||
|
"lib" & Project'Library_Name & ".so." & Xmlada_Shared.Version;
|
||||||
|
for Externally_Built use "true";
|
||||||
146
xmlada.spec
Normal file
146
xmlada.spec
Normal file
|
|
@ -0,0 +1,146 @@
|
||||||
|
Name: xmlada
|
||||||
|
Version: 4.1
|
||||||
|
Release: 2%{?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-%{version}-src.tgz
|
||||||
|
## Patch for use relocatable libs instead static
|
||||||
|
## and add DESTDIR option for make install
|
||||||
|
Patch0: %{name}-%{version}-destdir.patch
|
||||||
|
## Fedora-specific
|
||||||
|
Patch1: %{name}-gpr.patch
|
||||||
|
Patch2: %{name}-%{version}-gnatflags.patch
|
||||||
|
BuildRequires: chrpath
|
||||||
|
BuildRequires: gcc-gnat
|
||||||
|
BuildRequires: fedora-gnat-project-common >= 2
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Xml library for ada devel package.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n xmlada-4.1-src
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-rpath --enable-shared --disable-static
|
||||||
|
make %{?_smp_mflags} GNATFLAGS="%{GNAT_optflags}" ADA_PROJECT_PATH=%_GNAT_project_dir
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
export BUILDS_SHARED=yes
|
||||||
|
make install DESTDIR=%{buildroot} ADA_PROJECT_PATH=%_GNAT_project_dir BUILDS_SHARED=yes
|
||||||
|
## 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*
|
||||||
|
rm -f %{buildroot}/%{_libdir}/%{name}/static/*
|
||||||
|
## only-non-binary-in-usr-lib
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc README TODO AUTHORS COPYING
|
||||||
|
%dir %{_libdir}/%{name}
|
||||||
|
%dir %{_docdir}/%{name}
|
||||||
|
%dir %{_libdir}/%{name}/relocatable
|
||||||
|
%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}/relocatable/lib%{name}*.so.*
|
||||||
|
%{_docdir}/%{name}/xml.html
|
||||||
|
%{_docdir}/%{name}/xml.info
|
||||||
|
%{_docdir}/%{name}/xml.pdf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue