Compare commits
34 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14daa18d17 | ||
|
|
770ed5d4e5 | ||
|
|
a9a7a88140 | ||
| 0cce2495c3 | |||
| 765d0c1647 | |||
| 58bf2a3af4 | |||
| 5967ddb0cd | |||
| 8bc5aca6dd | |||
| 89e51fa9eb | |||
| 7d4a2efc84 | |||
| 188d8acb55 | |||
| 11bf7e690c | |||
| 1729460926 | |||
| 21cad67a8d | |||
| 42040bac4a | |||
| 24275de9b9 | |||
| 982f6dd3e4 | |||
|
|
2d047f5e45 | ||
|
|
219a9b4634 | ||
|
|
cb4a0c1f79 | ||
|
|
b2f1308092 | ||
|
|
e42b569b05 | ||
| f405eb69f7 | |||
|
|
68fbd14d68 | ||
|
|
00a4cf4457 | ||
|
|
7963c621d3 | ||
|
|
c7792bc671 | ||
|
|
a1fc9350c8 | ||
|
|
409038b5bb | ||
|
|
b476be4414 | ||
|
|
4957293174 | ||
|
|
8a793aa2ee | ||
|
|
62cd5a8920 | ||
|
|
f672eb728e |
11 changed files with 372 additions and 178 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,5 @@
|
|||
/zeromq-ada-4.24032011git.tar.gz
|
||||
/zeromq-ada-24032011git.tar.gz
|
||||
/zeromq-ada.tar.gz
|
||||
/zeromq-ada-4.1.5.tar.gz
|
||||
/zeromq-ada-c9a0e98.tar.gz
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
8639a6c26094b7e2b6389c93b9263be0 zeromq-ada-24032011git.tar.gz
|
||||
SHA512 (zeromq-ada-c9a0e98.tar.gz) = 6b86be70c39ed30d4862374cee15fc7ba946ff4b9a773d0157cfcde1dadf255008b31bc9dfcc586b7f27e2c0f8fd3e3783c41aa40759648286f1d85f4be93a9a
|
||||
|
|
|
|||
18
zeromq-ada-add-gnatcoll-core-dependency-to-zmq-example.patch
Normal file
18
zeromq-ada-add-gnatcoll-core-dependency-to-zmq-example.patch
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
--- a/examples/zmq-examples.gpr.inst
|
||||
+++ b/examples/zmq-examples.gpr.inst
|
||||
@@ -1,4 +1,6 @@
|
||||
with "zmq.gpr";
|
||||
+with "gnatcoll_core.gpr";
|
||||
+
|
||||
project ZMQ.Examples is
|
||||
|
||||
for Main use ("zmq-examples-client.adb",
|
||||
@@ -10,7 +12,7 @@
|
||||
for Exec_Dir use ".";
|
||||
|
||||
package Compiler is
|
||||
- for Default_Switches ("ada") use ("-g", "-O2", "-gnatf", "-gnat05");
|
||||
+ for Default_Switches ("ada") use ("-g", "-O2", "-gnatf");
|
||||
end Compiler;
|
||||
|
||||
package Binder is
|
||||
28
zeromq-ada-adjust-zmq-tests-project.patch
Normal file
28
zeromq-ada-adjust-zmq-tests-project.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
--- a/tests/zmq-tests.gpr
|
||||
+++ b/tests/zmq-tests.gpr
|
||||
@@ -1,7 +1,7 @@
|
||||
with "zmq.gpr";
|
||||
with "aunit.gpr";
|
||||
-with "helpers/zmq-helpers.gpr";
|
||||
-with "examples/zmq-examples.gpr";
|
||||
+with "gnatcoll_core.gpr";
|
||||
+with "../examples/zmq-examples.gpr";
|
||||
|
||||
project ZMQ.Tests is
|
||||
|
||||
@@ -19,15 +19,8 @@
|
||||
for Default_Switches ("ada") use ("-k", "-j0");
|
||||
end Builder;
|
||||
|
||||
- package Compiler is
|
||||
- for Default_Switches ("ada") use Zmq.Compiler'Default_Switches ("ada") & ("-gnaty-s", "-gnata");
|
||||
- end Compiler;
|
||||
-
|
||||
package Binder is
|
||||
for Default_Switches ("ada") use ("-E");
|
||||
end Binder;
|
||||
|
||||
- package Ide renames Zmq.Ide;
|
||||
-
|
||||
end ZMQ.Tests;
|
||||
-
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
diff --git a/zmq.gpr.inst b/zmq.gpr.inst
|
||||
index 3988421..61e3c44 100644
|
||||
--- a/zmq.gpr.inst
|
||||
+++ b/zmq.gpr.inst
|
||||
@@ -12,6 +12,15 @@ project Zmq is
|
||||
case ZMQ_Kind is
|
||||
when "relocatable" =>
|
||||
for Library_Kind use "dynamic";
|
||||
+ for Library_Auto_Init use "True";
|
||||
+ for Library_Interface use ("ZMQ",
|
||||
+ "ZMQ.contexts",
|
||||
+ "ZMQ.devices",
|
||||
+ "ZMQ.messages",
|
||||
+ "ZMQ.sockets",
|
||||
+ "ZMQ.low_level",
|
||||
+ "ZMQ.Utilities",
|
||||
+ "ZMQ.Utilities.Memory_Streams");
|
||||
end case;
|
||||
|
||||
end Zmq;
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
--- a/zmq.gpr.inst 2011-03-24 11:32:40.517715004 +0300
|
||||
+++ b/zmq.gpr.inst 2011-03-24 11:34:56.185715007 +0300
|
||||
@@ -1,16 +1,15 @@
|
||||
+with "directories";
|
||||
project Zmq is
|
||||
for Languages use ("Ada");
|
||||
|
||||
- type ZMQ_Kind_Type is ("static", "relocatable");
|
||||
- ZMQ_Kind : ZMQ_Kind_Type := external ("LIBRARY_TYPE", "static");
|
||||
+ type ZMQ_Kind_Type is ("relocatable");
|
||||
+ ZMQ_Kind : ZMQ_Kind_Type := external ("LIBRARY_TYPE", "relocatable");
|
||||
|
||||
for Library_Name use "zmqAda";
|
||||
- for Library_Dir use "../zmq/" & ZMQ_Kind;
|
||||
- for Source_Dirs use ("../../include/zmq");
|
||||
+ for Library_Dir use Directories.Libdir & "/zmq/" & ZMQ_Kind;
|
||||
+ for Source_Dirs use (Directories.Includedir & "/zmq");
|
||||
for Externally_Built use "True";
|
||||
case ZMQ_Kind is
|
||||
- when "static" =>
|
||||
- for Library_Kind use "static";
|
||||
when "relocatable" =>
|
||||
for Library_Kind use "dynamic";
|
||||
end case;
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
--- a/Makefile 2011-02-26 19:34:31.335034992 +0300
|
||||
+++ b/Makefile 2011-02-26 19:34:39.443035001 +0300
|
||||
@@ -8,7 +8,6 @@
|
||||
ADA_PROJECT_DIR ?= ${PREFIX}/lib/gnat
|
||||
GNATMAKE = gnatmake ${GNATFLAGS} -p -f -R
|
||||
compile:
|
||||
- ${GNATMAKE} -P zmq.gpr -XLIBRARY_TYPE=static
|
||||
${GNATMAKE} -P zmq.gpr -XLIBRARY_TYPE=relocatable
|
||||
|
||||
uninstall:
|
||||
--- a/Makefile 2011-04-29 10:13:33.387320003 +0400
|
||||
+++ b/Makefile 2011-04-29 10:16:21.389320017 +0400
|
||||
@@ -29,6 +29,7 @@
|
||||
mkdir -p ${DESTDIR}/${PREFIX}/share/zmq/examples/Ada
|
||||
cp examples/zmq-examples*.ad* ${DESTDIR}/${PREFIX}/share/zmq/examples/Ada
|
||||
cp examples/zmq-examples.gpr.inst ${DESTDIR}/${PREFIX}/share/zmq/examples/Ada/zmq-examples.gpr
|
||||
+ cd ${DESTDIR}/${LIBDIR}/ && ln -s zmq/relocatable/libzmqAda.so* .
|
||||
all: compile install
|
||||
|
||||
samples:
|
||||
|
||||
|
||||
## Usr move
|
||||
--- a/Makefile 2012-09-23 20:15:19.594222947 +0400
|
||||
+++ b/Makefile 2012-09-23 20:15:33.392222537 +0400
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
ifndef PREFIX
|
||||
- PREFIX=$(dir $(shell dirname `which gnatls`))
|
||||
+ PREFIX=/usr
|
||||
endif
|
||||
LIBDIR ?= ${PREFIX}/lib
|
||||
DESTDIR ?=
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
diff --git a/zmq.gpr b/zmq.gpr
|
||||
index 4c4eebd..9337f21 100644
|
||||
--- a/zmq.gpr
|
||||
+++ b/zmq.gpr
|
||||
@@ -59,12 +59,7 @@ project ZMQ is
|
||||
|
||||
"zmq-utilities.ads",
|
||||
"zmq-utilities-memory_streams.adb",
|
||||
- "zmq-utilities-memory_streams.ads",
|
||||
-
|
||||
- -- "Makefile",
|
||||
- -- "README",
|
||||
- -- "zmq.gpr.inst",
|
||||
- "zmq.gpr"
|
||||
+ "zmq-utilities-memory_streams.ads"
|
||||
);
|
||||
case ZMQ_Kind is
|
||||
when "static" =>
|
||||
|
||||
diff --git a/zmq.gpr b/zmq.gpr
|
||||
index 9337f21..a3d92d4 100644
|
||||
--- a/zmq.gpr
|
||||
+++ b/zmq.gpr
|
||||
@@ -85,17 +85,10 @@ project ZMQ is
|
||||
Compiler'Default_Switches ("ada") & ("-gnaty-M"); -- Since this file is autogenerated.
|
||||
end Compiler;
|
||||
|
||||
- package Naming is
|
||||
- for Body_Suffix("Project File") use ".gpr";
|
||||
- end naming;
|
||||
package Make is
|
||||
for Makefile use project'Project_dir & "Makefile";
|
||||
end Make;
|
||||
|
||||
--- package Check is
|
||||
--- for Default_Switches ("ada") use ("-rules", "-from=" & Project'Project_Dir & "/zmq.rules");
|
||||
--- end Check;
|
||||
-
|
||||
package Ide is
|
||||
for Vcs_Kind use "git";
|
||||
end Ide;
|
||||
11
zeromq-ada-remove-unnecessary-languages.patch
Normal file
11
zeromq-ada-remove-unnecessary-languages.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/zmq.gpr
|
||||
+++ b/zmq.gpr
|
||||
@@ -31,7 +31,7 @@
|
||||
------------------------------------------------------------------------------
|
||||
with "libzmq.gpr";
|
||||
project ZMQ is
|
||||
- for Languages use ("Ada", "Makefile", "Python");
|
||||
+ for Languages use ("Ada");
|
||||
|
||||
type ZMQ_Kind_Type is ("static", "relocatable");
|
||||
ZMQ_Kind : ZMQ_Kind_Type := external ("LIBRARY_TYPE", "static");
|
||||
25
zeromq-ada-skip-gnatpp-during-generate.patch
Normal file
25
zeromq-ada-skip-gnatpp-during-generate.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -64,7 +64,6 @@
|
||||
(cd .temp;g++ -c -fdump-ada-spec -C x.c)
|
||||
python rename.py .temp/zmq_h.ads
|
||||
cp .temp/zmq_h.ads src/gen/zmq-low_level.ads
|
||||
- gnatpp -rf -M128 --comments-special src/gen/*.ads
|
||||
sed "s-Zmq.Low_Level-ZMQ.Low_Level-" -i src/gen/zmq-low_level.ads
|
||||
chmod -w src/gen/*.ads
|
||||
clean:
|
||||
@@ -85,7 +84,7 @@
|
||||
|
||||
helpers/getinfo:$(wildcard src/*.ads)
|
||||
cd helpers;gprbuild -p
|
||||
-
|
||||
+
|
||||
tag:helpers/getinfo
|
||||
@if [ -n "`git status --porcelain`" ] ; then \
|
||||
echo "Folder is not clean";\
|
||||
@@ -94,5 +93,3 @@
|
||||
fi
|
||||
@(VERSION=`helpers/getinfo --binding-version`-`date +%Y%m%d`;\
|
||||
git tag $${VERSION})
|
||||
-
|
||||
-
|
||||
341
zeromq-ada.spec
341
zeromq-ada.spec
|
|
@ -1,80 +1,307 @@
|
|||
%define debug_package %{nil}
|
||||
# The test suite is normally run. It can be disabled with "--without=check".
|
||||
%bcond_without check
|
||||
|
||||
Name: zeromq-ada
|
||||
Version: 2.1.0
|
||||
Release: 30.24032011git%{?dist}
|
||||
Summary: Ada binding for zeromq
|
||||
License: GPLv2+
|
||||
URL: http://zeromq.org
|
||||
## Source from github. for get source use
|
||||
## git clone https://landgraf@github.com/landgraf/zeromq-Ada.git
|
||||
## tar -czvf zeromq-ada-2.24032011.tar.gz zeromq-Ada
|
||||
Source0: %{name}-24032011git.tar.gz
|
||||
## Use shared libs instead static
|
||||
Patch0: %{name}-libdir.patch
|
||||
## Use directories.gpr
|
||||
Patch1: %{name}-fedora.patch
|
||||
## https://github.com/persan/zeromq-Ada/issues/10
|
||||
Patch2: %{name}-autoinit_fix.patch
|
||||
Patch3: %{name}-nogpr.patch
|
||||
BuildRequires: fedora-gnat-project-common >= 2 zeromq-devel >= 2.1
|
||||
BuildRequires: chrpath gcc-gnat gprbuild
|
||||
Requires: zeromq >= 2.1
|
||||
# gcc-gnat only available on these:
|
||||
ExclusiveArch: %{GPRbuild_arches}
|
||||
# The low-level bindings are normally regenerated. Regeneration can be disabled
|
||||
# with "--without=generate".
|
||||
%bcond_without generate
|
||||
|
||||
%description
|
||||
Ada bindings for zeromq
|
||||
# Upstream source information.
|
||||
%global upstream_owner persan
|
||||
%global upstream_name zeromq-Ada
|
||||
%global upstream_version 4.1.5
|
||||
%global upstream_commit_date 20251117
|
||||
%global upstream_commit c9a0e984b673ee61cbf86819c300d7d54f563fea
|
||||
%global upstream_shortcommit %(c=%{upstream_commit}; echo ${c:0:7})
|
||||
|
||||
Name: zeromq-ada
|
||||
Version: %{upstream_version}^git%{upstream_commit_date}.%{upstream_shortcommit}
|
||||
Release: 4%{?dist}
|
||||
Summary: Ada binding for ZeroMQ
|
||||
|
||||
License: MIT
|
||||
# According to the upstream commit history, the license of this library was
|
||||
# changed to MIT on Apr 8, 2021 (upstream commit 651ca44).
|
||||
|
||||
URL: https://zeromq.org
|
||||
Source0: https://github.com/%{upstream_owner}/%{upstream_name}/archive/%{upstream_commit}.tar.gz#/%{name}-%{upstream_shortcommit}.tar.gz
|
||||
|
||||
# [Fedora-specific] Remove Python and Makefile languages from the ZMQ
|
||||
# GPRbuild-file. Both languages are used only during the development of the
|
||||
# bindings/library and are of no relevance to the user of the bindings.
|
||||
Patch: %{name}-remove-unnecessary-languages.patch
|
||||
|
||||
# [Fedora-specific] Indicate that the examples depend on GNATcoll Core.
|
||||
Patch: %{name}-add-gnatcoll-core-dependency-to-zmq-example.patch
|
||||
|
||||
# [Fedora-specific] The gnatpp tool, a source code formatter tool which is part
|
||||
# of the now obsolete ASIS-toolset, is not available in Fedora.
|
||||
Patch: %{name}-skip-gnatpp-during-generate.patch
|
||||
|
||||
# [Fedora-specific] Update the GPRbuild project for building the test suite.
|
||||
# Note that we want to run the test suite against the Ada bindings installed
|
||||
# in the buildroot and must therefore remove any reference to packages that
|
||||
# are only defined in the ZMQ project in the source tree.
|
||||
#
|
||||
# - Remove the `helpers' project; the dependency isn't used by any test.
|
||||
# - Update the dependency from GNATcoll to GNATcoll Core.
|
||||
# - Remove the compiler switches. They're inherited from the ZMQ project in
|
||||
# the source tree. When building the testsuite, we'll use the switches of
|
||||
# Fedora instead.
|
||||
# - Remove the `Ide' package. The package is inherited from the the ZMQ
|
||||
# project in the source tree and isn't needed when packaging the library.
|
||||
#
|
||||
Patch: %{name}-adjust-zmq-tests-project.patch
|
||||
|
||||
BuildRequires: gcc-gnat gprbuild
|
||||
BuildRequires: fedora-gnat-project-common
|
||||
BuildRequires: zeromq-devel
|
||||
%if %{with generate}
|
||||
BuildRequires: make gcc-g++ sed
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python-unversioned-command
|
||||
%endif
|
||||
%if %{with check}
|
||||
BuildRequires: aunit-devel
|
||||
BuildRequires: gnatcoll-core-devel
|
||||
BuildRequires: xmlada-devel
|
||||
%endif
|
||||
|
||||
Requires: zeromq
|
||||
|
||||
# Build only on architectures where GPRbuild is available:
|
||||
ExclusiveArch: %{GPRbuild_arches}
|
||||
|
||||
%global common_description_en \
|
||||
The ZeroMQ lightweight messaging kernel is a library which extends the \
|
||||
standard socket interfaces with features traditionally provided by specialized \
|
||||
messaging middleware products. ZeroMQ sockets provide an abstraction of \
|
||||
asynchronous message queues, multiple messaging patterns, message filtering \
|
||||
(subscriptions), seamless access to multiple transport protocols and more.
|
||||
|
||||
%description %{common_description_en}
|
||||
|
||||
This package provides an Ada binding to the ZeroMQ library.
|
||||
|
||||
#################
|
||||
## Subpackages ##
|
||||
#################
|
||||
|
||||
%package devel
|
||||
Summary: Devel package for Ada binding for zeromq
|
||||
License: GPLv2+
|
||||
Requires: fedora-gnat-project-common >= 2
|
||||
Summary: Development package for the Ada binding for ZeroMQ
|
||||
License: MIT AND GPL-2.0-or-later WITH GNAT-exception
|
||||
# The license is MIT except for:
|
||||
# - libzmq.gpr.in : GPLv2+ with GNAT runtime exception
|
||||
# - zmq.gpr.inst : GPLv2+ with GNAT runtime exception
|
||||
# - zmq.gpr : GPLv2+ with GNAT runtime exception
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: zeromq >= 2.1
|
||||
Requires: fedora-gnat-project-common
|
||||
Requires: zeromq-devel
|
||||
|
||||
%description devel %{common_description_en}
|
||||
|
||||
This package contains source code and linking information for developing
|
||||
applications that use the Ada binding for ZeroMQ. It also contains some
|
||||
code examples.
|
||||
|
||||
|
||||
#############
|
||||
## Prepare ##
|
||||
#############
|
||||
|
||||
%description devel
|
||||
%{summary}
|
||||
%prep
|
||||
%setup -q -n zeromq-Ada
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%autosetup -C -p1
|
||||
|
||||
# Work with the GPRbuild-project to be used by users of the Ada bindings.
|
||||
rm examples/zmq-examples.gpr
|
||||
cp --preserve=timestamp examples/zmq-examples.gpr.inst \
|
||||
examples/zmq-examples.gpr
|
||||
|
||||
# libzmq.gpr is needed by zmq.gpr.
|
||||
cp libzmq.gpr.in libzmq.gpr
|
||||
|
||||
# Regenerate the low-level bindings.
|
||||
%if %{with generate}
|
||||
make generate
|
||||
%endif
|
||||
|
||||
|
||||
###########
|
||||
## Build ##
|
||||
###########
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} GNATFLAGS="%{GNAT_optflags}" GNATMAKE="gprbuild -p -R %{GNAT_optflags}"
|
||||
## for tests aunit needed
|
||||
|
||||
# Build the library.
|
||||
gprbuild %{GPRbuild_flags} -XLIBRARY_TYPE=relocatable -P zmq.gpr
|
||||
|
||||
|
||||
#############
|
||||
## Install ##
|
||||
#############
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} ADA_PROJECT_DIR=%{_GNAT_project_dir} GNATFLAGS="%{GNAT_optflags}"
|
||||
rm -f %{buildroot}/%{_libdir}/zmq/static/libzmqAda.a
|
||||
rm -rf %{buildroot}/%{_libdir}/zmq/static
|
||||
chrpath --delete %{buildroot}%{_libdir}/zmq/relocatable/libzmqAda.so.%{version}
|
||||
|
||||
%ldconfig_scriptlets
|
||||
# Install the library.
|
||||
%{GPRinstall} -XLIBRARY_TYPE=relocatable -P zmq.gpr
|
||||
|
||||
# Fix up the symlink.
|
||||
ln --symbolic --force libzmqAda.so.%{upstream_version} \
|
||||
%{buildroot}%{_libdir}/libzmqAda.so
|
||||
|
||||
# Copy the examples.
|
||||
mkdir --parents %{buildroot}%{_pkgdocdir}/examples
|
||||
cp --preserve=timestamps examples/zmq-examples*.ad* \
|
||||
%{buildroot}%{_pkgdocdir}/examples
|
||||
cp --preserve=timestamps examples/zmq-examples.gpr \
|
||||
%{buildroot}%{_pkgdocdir}/examples
|
||||
|
||||
# Before making the project files architecture-independent, copy the buildroot
|
||||
# into a separate directory for later testing. The testsuite fails if applied to
|
||||
# the buildroot after making the project files architecture-independent because
|
||||
# of the hardcoded paths in `directories.gpr`.
|
||||
%if %{with check}
|
||||
%global checkroot %{_builddir}/%{name}-%{version}/checkroot
|
||||
mkdir %{checkroot} # without --parents to not clobber any upstream directory
|
||||
cp --recursive %{buildroot}/* %{checkroot}/
|
||||
%endif
|
||||
|
||||
# Make the generated usage project file architecture-independent.
|
||||
sed --regexp-extended --in-place \
|
||||
'--expression=1i with "directories";' \
|
||||
'--expression=/^-- This project has been generated/d' \
|
||||
'--expression=/package Linker is/,/end Linker/d' \
|
||||
'--expression=s|^( *for +Source_Dirs +use +).*;$|\1(Directories.Includedir \& "/'%{name}'");|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}/zmq.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: Delete the package Linker, which contains linker parameters that a
|
||||
# shared library normally doesn't need, and can contain architecture-
|
||||
# specific pathnames.
|
||||
# 4: Replace the value of Source_Dirs with a pathname based on
|
||||
# Directories.Includedir.
|
||||
# 5: Replace the value of Library_Dir with Directories.Libdir.
|
||||
# 6: Replace the value of Library_ALI_Dir with a pathname based on
|
||||
# Directories.Libdir.
|
||||
|
||||
|
||||
###########
|
||||
## Check ##
|
||||
###########
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
|
||||
# Make the files of this packages visible to the test runner.
|
||||
export PATH=%{checkroot}%{_bindir}:$PATH
|
||||
export LD_LIBRARY_PATH=%{checkroot}%{_libdir}:$LD_LIBRARY_PATH
|
||||
export GPR_PROJECT_PATH=%{checkroot}%{_GNAT_project_dir}:$GPR_PROJECT_PATH
|
||||
|
||||
cd tests
|
||||
|
||||
# Build the test suite.
|
||||
gprbuild %{GPRbuild_flags} -P zmq-tests.gpr -cargs -fPIE
|
||||
|
||||
# Run the test suite.
|
||||
bin/test_all
|
||||
|
||||
%endif
|
||||
|
||||
|
||||
###########
|
||||
## Files ##
|
||||
###########
|
||||
|
||||
%files
|
||||
%doc README COPYING
|
||||
%dir %{_libdir}/zmq
|
||||
%dir %{_libdir}/zmq/relocatable
|
||||
%{_libdir}/zmq/relocatable/libzmqAda.so.%{version}
|
||||
%{_libdir}/libzmqAda.so.*
|
||||
%license COPYING
|
||||
%{_libdir}/libzmqAda.so.%{upstream_version}
|
||||
|
||||
|
||||
%files devel
|
||||
%{_libdir}/zmq/relocatable/libzmqAda.so
|
||||
%{_libdir}/libzmqAda.so
|
||||
%dir %{_includedir}/zmq/
|
||||
%{_includedir}/zmq/*.adb
|
||||
%{_includedir}/zmq/*.ads
|
||||
%{_GNAT_project_dir}/zmq.gpr
|
||||
%{_libdir}/zmq/relocatable/*.ali
|
||||
%{_datadir}/zmq/*
|
||||
%{_includedir}/%{name}
|
||||
%dir %{_libdir}/%{name}
|
||||
%attr(444,-,-) %{_libdir}/%{name}/*.ali
|
||||
%{_libdir}/libzmqAda.so
|
||||
%{_pkgdocdir}/examples
|
||||
|
||||
|
||||
###############
|
||||
## Changelog ##
|
||||
###############
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5^git20251117.c9a0e98-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Mar 28 2026 Björn Persson <Bjorn@Rombobjörn.se> - 4.1.5^git20251117.c9a0e98-3
|
||||
- Rebuilt because GCC 16.0.1-0.10 broke ALI.
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5^git20251117.c9a0e98-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jan 09 2026 Dennis van Raaij <dvraaij@fedoraproject.org> - 4.1.5^git20251117.c9a0e98-1
|
||||
- Removed debug package creation opt-out.
|
||||
- Updated to Git revision c9a0e98 (Nov 17, 2025).
|
||||
- Updated the SPDX license expression.
|
||||
- The examples can now be found in the package documentation directory.
|
||||
- All package summaries and descriptions have been updated.
|
||||
- The README-file has been removed from the package as it doesn't contain any
|
||||
useful information for Fedora users.
|
||||
- The license file can now be found in the package license directory.
|
||||
- Made the generated project file architecture-independent.
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-16.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-15.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 4.1.5-14.git
|
||||
- convert license to SPDX
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-13.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-12.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Oct 05 2023 Remi Collet <remi@remirepo.net> - 4.1.5-11.git
|
||||
- rebuild for new libsodium
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-10.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-9.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-8.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-7.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-6.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri May 21 2021 Max Reznik <reznikmm@gmail.com> - 4.1.5-5.git
|
||||
- rebuilt with gcc-11.1.1-1
|
||||
|
||||
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-4.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Dec 9 2020 Pavel Zhukov <pzhukov@redhat.com> - 4.1.5-3.git
|
||||
- Rebuild with new libgnat
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-2.git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jun 17 2020 Max Reznik <reznikmm@gmail.com> - 4.1.5-1.git
|
||||
- Update to 4.1.5
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-30.24032011git
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
|
@ -122,7 +349,7 @@ chrpath --delete %{buildroot}%{_libdir}/zmq/relocatable/libzmqAda.so.%{version}
|
|||
- Use GNAT_arches rather than an explicit list
|
||||
|
||||
* Sun Apr 20 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 2.1.0-13.24032011git
|
||||
- Rebuild with new GCC
|
||||
- Rebuild with new GCC
|
||||
|
||||
* Sun Mar 02 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 2.1.0-12.24032011git
|
||||
- Fix library finalization. https://github.com/persan/zeromq-Ada/issues/10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue