Compare commits
19 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24acbc28cf | ||
|
|
a4f7c1ac3f | ||
|
|
392e0e66b4 | ||
|
|
80e2faaa12 | ||
|
|
9219f3ad7e | ||
|
|
adcafebb8f | ||
|
|
ef92468fc1 | ||
|
|
eef3e12e9d | ||
|
|
6b2d2c2d10 | ||
|
|
7dc16a1aaa | ||
|
|
4d45c0906c | ||
|
|
bc2d956d68 | ||
|
|
870e9717a5 | ||
|
|
60eef64a7f | ||
|
|
61babea985 | ||
|
|
cb1841d465 | ||
|
|
44812c99e5 | ||
|
|
5c0ed0a9c4 | ||
|
|
e3a99b5eb2 |
3 changed files with 101 additions and 22 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -3,3 +3,9 @@
|
|||
/libanet-0.4.0.tar.bz2.sig
|
||||
/libanet-0.4.1.tar.bz2
|
||||
/libanet-0.4.1.tar.bz2.sig
|
||||
/BB793815-extended.key
|
||||
/0xDBF6D7E1095FD0D9.asc
|
||||
/libanet-0.5.0.tar.bz2
|
||||
/libanet-0.5.0.tar.bz2.sig
|
||||
/libanet-0.5.1.tar.bz2
|
||||
/libanet-0.5.1.tar.bz2.sig
|
||||
|
|
|
|||
109
anet.spec
109
anet.spec
|
|
@ -1,23 +1,21 @@
|
|||
Name: anet
|
||||
Version: 0.4.1
|
||||
Release: 11%{?dist}
|
||||
Version: 0.5.1
|
||||
Release: 7%{?dist}
|
||||
Summary: Ada Networking Library
|
||||
|
||||
License: GPLv2+ with exceptions
|
||||
License: GPL-2.0-or-later WITH GNAT-exception
|
||||
URL: https://www.codelabs.ch/anet/
|
||||
Source: https://www.codelabs.ch/download/libanet-%{version}.tar.bz2
|
||||
Source2: https://www.codelabs.ch/download/libanet-%{version}.tar.bz2.sig
|
||||
Source3: https://www.codelabs.ch/keys/0xBB793815pub.asc
|
||||
# Fedora-specific patch to use the directories project:
|
||||
Patch1: anet-0.4.1-directories_gpr.patch
|
||||
Source5: https://www.codelabs.ch/keys/0xDBF6D7E1095FD0D9.asc
|
||||
# Disable one test that doesn't work in Koji:
|
||||
Patch2: anet-0.3.3-no_IPv6_multicast_test.patch
|
||||
Patch: anet-0.3.3-no_IPv6_multicast_test.patch
|
||||
|
||||
BuildRequires: gcc-gnat fedora-gnat-project-common make asciidoc ahven-devel
|
||||
BuildRequires: gcc-gnat fedora-gnat-project-common make ahven-devel
|
||||
BuildRequires: gprbuild
|
||||
BuildRequires: gnupg2
|
||||
# gpgverify was introduced in redhat-rpm-config 129.
|
||||
BuildRequires: redhat-rpm-config >= 129
|
||||
BuildRequires: gpgverify
|
||||
BuildRequires: asciidoctor
|
||||
BuildRequires: sed
|
||||
# Build only on architectures where GPRbuild is available:
|
||||
ExclusiveArch: %{GPRbuild_arches}
|
||||
|
||||
|
|
@ -39,6 +37,8 @@ länklagersocketar och Netlink.
|
|||
%package devel
|
||||
Summary: Development files for Anet
|
||||
Summary(sv): Filer för programmering med Anet
|
||||
License: GPL-2.0-or-later WITH GNAT-exception AND MIT
|
||||
# Asciidoctor inserts an MIT-licensed stylesheet in the manual.
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: fedora-gnat-project-common
|
||||
|
||||
|
|
@ -54,24 +54,47 @@ för att utveckla program som använder Anet.
|
|||
|
||||
|
||||
%prep
|
||||
%{gpgverify} --keyring='%{SOURCE3}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
|
||||
%setup -q -n libanet-%{version}
|
||||
%patch1 -p 1
|
||||
%patch2
|
||||
%{gpgverify} --keyring='%{SOURCE5}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
|
||||
%autosetup -n libanet-%{version} -p0
|
||||
|
||||
|
||||
%define all_the_flags "GNAT_BUILDER_FLAGS=%{GNAT_builder_flags}" "ADAFLAGS=%{build_adaflags}" "LDFLAGS=%{build_ldflags}"
|
||||
# Override the upstream usage of control-flow checking with Fedora's arch-
|
||||
# dependent choice because GCC doesn't offer control-flow checking for all
|
||||
# arches.
|
||||
%global fix_cf_protection %([[ '%{build_adaflags}' = *-fcf-protection* ]] || echo -fcf-protection=none)
|
||||
# This expands to an empty string if "-fcf-protection" is found among Fedora's
|
||||
# compiler flags, and to "-fcf-protection=none" if it's not found.
|
||||
|
||||
%define all_the_flags "GNAT_BUILDER_FLAGS=%{GNAT_builder_flags}" "ADAFLAGS=%{build_adaflags} %{fix_cf_protection}" "LDFLAGS=%{build_ldflags}"
|
||||
# define makes the macro lazily expanded, unlike global.
|
||||
|
||||
|
||||
%build
|
||||
make %{all_the_flags}
|
||||
make doc
|
||||
make build-doc
|
||||
|
||||
|
||||
%install
|
||||
# Pass all_the_flags here too to ensure that GPRbuild won't recompile anything.
|
||||
%{make_install} %{all_the_flags} prefix=%{_prefix} libdir=%{_libdir} gprdir=%{_GNAT_project_dir}
|
||||
%{make_install} %{all_the_flags} GPRINSTALLFLAGS='%{GPRinstall_flags}'
|
||||
|
||||
# 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=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}/*.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.
|
||||
|
||||
|
||||
%check
|
||||
|
|
@ -92,10 +115,58 @@ make tests %{all_the_flags}
|
|||
%{_libdir}/*.so
|
||||
%{_libdir}/%{name}
|
||||
%{_GNAT_project_dir}/*
|
||||
%doc README TODO doc/html examples
|
||||
%doc README TODO obj/html examples
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Wed Jan 07 2026 Björn Persson <Bjorn@Rombobjörn.se> - 0.5.1-6
|
||||
- Rebuilt with GCC 16 prerelease.
|
||||
|
||||
* Sun Aug 10 2025 Björn Persson <Bjorn@Rombobjörn.se> - 0.5.1-5
|
||||
- Rebuilt because the ALI of System.OS_Constants changed.
|
||||
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Tue Jan 14 2025 Björn Persson <Bjorn@Rombobjörn.se> - 0.5.1-2
|
||||
- Rebuilt with GCC 15 prerelease.
|
||||
|
||||
* Mon Nov 04 2024 Björn Persson <Bjorn@Rombobjörn.se> - 0.5.1-1
|
||||
- Upgraded to version 0.5.1.
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sun Feb 25 2024 Björn Persson <Bjorn@Rombobjörn.se> - 0.5.0-1
|
||||
- Upgraded to version 0.5.0.
|
||||
|
||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Tue Jan 16 2024 Björn Persson <Bjorn@Rombobjörn.se> - 0.4.1-16
|
||||
- Rebuilt with GCC 14 prerelease.
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Tue Jan 17 2023 Björn Persson <Bjorn@Rombobjörn.se> - 0.4.1-13
|
||||
- Rebuilt with GCC 13.
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
8
sources
8
sources
|
|
@ -1,3 +1,5 @@
|
|||
SHA512 (0xBB793815pub.asc) = 8f69764f8ac52e09df45caf937bce47867de43ec2df033988d9d6210b1452386650ece06f91dd5a4de8ad1f935362d64e63a84186519363291bb3cd196fe8d35
|
||||
SHA512 (libanet-0.4.1.tar.bz2) = e5acdc46c2965299a47b93bdea097490f4a94d953fd3420ed30f4fc37775d41734b34dcd5a3adcc8f516ffe003e6208083a68b07d57827f090f92f2f0f1f5541
|
||||
SHA512 (libanet-0.4.1.tar.bz2.sig) = a3b00f0b169959d869263d4e4d2d7852b589e0880a881a8f75bb8468964da3aa991407c00ffe05c3f36da8a4edf38ac44d3a094f8efaa666ae82daa7d1fbc16d
|
||||
SHA512 (0xDBF6D7E1095FD0D9.asc) = 58d80b4de7fac4e95554c913ba60738ef7f8c55424f7b5a88a6d8c65dd482dcf4ec859f3928ed232d1bae4032c42c58183156099ee96d87a51125d28efd18149
|
||||
SHA512 (libanet-0.5.0.tar.bz2) = cb61f5b3231c56d8e0521a0693fb093d4203ec6a66bc592316c0f8a677d2d995feea65b46d72ba5cca4dc46a8c41ae4027ce3387c0f7dde6ba326cbde6b12c4d
|
||||
SHA512 (libanet-0.5.0.tar.bz2.sig) = 46bb94fda693da3af6207ee06661e7d0104f1954bcef2a86874bb5f3bb24a36b1488432724e3fa49786aa65c33df1fca6608da62d05182da4a2c51eda2c2d6e2
|
||||
SHA512 (libanet-0.5.1.tar.bz2) = bb9e8f8d040c30c036b11cb5923a06c1a230f4a70c674d8c8a1c816fc7901b1355e878d62f37e4f3e6caa43d0e3dc8e5b29a5ba2d32380110e0c3d4310777ecf
|
||||
SHA512 (libanet-0.5.1.tar.bz2.sig) = 5e3da5a2af7f746b49547a1dae64102ccfb08666a0a525cb7c7876bb575a9f2dad44a844923cf71289902455c5dc5bd8f8af2acacc844350ef7e115ec4656061
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue