## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 27 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 Name: mirrorlist-server Version: 3.0.8 Release: %autorelease Summary: Mirrorlist Server SourceLicense: MIT # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # ISC # MIT # MIT OR Apache-2.0 # Unicode-3.0 # Unlicense OR MIT License: %{shrink: MIT AND ISC AND Unicode-3.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown URL: https://github.com/adrianreber/mirrorlist-server Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Patch: 0001-set-license-in-crate-metadata.patch # https://github.com/adrianreber/mirrorlist-server/pull/336 Patch: 0002-Bump-console-dependency-from-0.15-to-0.16-to-match-i.patch Patch: 0003-Relax-ipnetwork-dependency-to-allow-both-v0.20-and-v.patch # https://github.com/adrianreber/mirrorlist-server/issues/362 # bumped upstream by dependabot: # https://github.com/adrianreber/mirrorlist-server/commit/9b1324a3e6a2f0cf450a239a762c1d534fe6267e Patch: 0004-Relax-dns-lookup-dependency.patch BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: The mirrorlist-server uses the data created by MirrorManager2 (https://github.com/fedora-infra/mirrormanager2) to answer client request for the "best" mirror. This implementation of the mirrorlist-server is written in Rust. The original version of the mirrorlist-server was part of the MirrorManager2 repository and it is implemented using Python. While moving from Python2 to Python3 one of the problems was that the data exchange format (Python Pickle) did not support running the MirrorManager2 backend with Python2 and the mirrorlist frontend with Python3. To have a Pickle independent data exchange format protobuf was introduced. The first try to use protobuf in the python mirrorlist implementation required a lot more memory than the Pickle based implementation (3.5GB instead of 1.1GB). That is one of the reasons a new mirrorlist-server implementation was needed. Another reason to rewrite the mirrorlist-server is its architecture. The Python based version requires the Apache HTTP server or something that can run the included wsgi. The wsgi talks over a socket to the actual mirrorlist-server. In Fedora's MirrorManager2 instance this runs in a container which runs behind HAProxy. This implementation in Rust directly uses a HTTP library to reduce the number of involved components. In addition to being simpler this implementation also requires less memory than the Python version.} %description %{_description} %prep %autosetup -n mirrorlist-server-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test -- --bin mirrorlist-server %endif %files %license LICENSE %license LICENSE.dependencies %doc README.rst %{_bindir}/generate-mirrorlist-cache %{_bindir}/mirrorlist-server %changelog ## START: Generated by rpmautospec * Tue Dec 30 2025 Michel Lind - 3.0.8-2 - Allow dns-lookup 3 * Tue Sep 30 2025 Fabio Valentini - 3.0.8-1 - Update to version 3.0.8; Fixes RHBZ#2379121 * Wed Jul 30 2025 Benjamin A. Beasley - 3.0.7-10 - Update the License expression * Sat Jul 26 2025 Benjamin A. Beasley - 3.0.7-9 - Allow console 0.16 and indicatif 0.18 * Thu Jul 24 2025 Fedora Release Engineering - 3.0.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Jun 16 2025 Fabio Valentini - 3.0.7-7 - Rebuild for idna crate >= v1.0.0 (CVE-2024-12224) * Sat Feb 15 2025 Fabio Valentini - 3.0.7-6 - Bump pretty_env_logger from 0.4 to 0.5, refresh with rust2rpm v27 * Fri Jan 17 2025 Fedora Release Engineering - 3.0.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 3.0.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 3.0.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 3.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Aug 04 2023 Fabio Valentini - 3.0.7-1 - Update to version 3.0.7; Fixes RHBZ#2128874 * Thu Jul 20 2023 Fedora Release Engineering - 3.0.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed May 03 2023 Fabio Valentini - 3.0.6-6 - Rebuild with h2 >= v0.3.18 and tokio >= v1.24.2 (RUSTSEC-2023-{0005,0034}) * Sun Feb 05 2023 Fabio Valentini - 3.0.6-5 - Rebuild for fixed frame pointer compiler flags in Rust RPM macros. * Thu Jan 19 2023 Fedora Release Engineering - 3.0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 3.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 3.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 12 2022 Fabio Valentini - 3.0.6-1 - Update to version 3.0.6. * Thu Jul 22 2021 Fedora Release Engineering - 3.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon May 31 2021 Fabio Valentini - 3.0.3-1 - Update to version 3.0.3. * Mon Feb 08 2021 Pavel Raiskup - 3.0.1-5 - rebuild for libpq ABI fix rhbz#1908268 * Tue Jan 26 2021 Fedora Release Engineering - 3.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 3.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 24 2020 Dusty Mabe - 3.0.1-2 - Respin. We updated rust-ipnetwork to 0.17.0 * Thu Jun 18 2020 Igor Raits - 3.0.1-1 - Update to 3.0.1 * Wed Jun 17 2020 Igor Raits - 3.0.0-1 - Update to 3.0.0 * Wed Jun 17 2020 Adrian Reber - 2.3.0-2 - Include patch from upstream to fix #1844087 * Mon May 11 2020 Igor Raits - 2.3.0-1 - Update to 2.3.0 * Fri Mar 27 2020 Igor Raits - 2.2.0-1 - Update to 2.2.0 * Mon Mar 23 2020 Igor Raits - 2.1.0-1 - Update to 2.1.0 * Wed Jan 29 2020 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 12 09:11:47 CET 2019 Igor Gnatenko - 2.0.0-1 - Initial package ## END: Generated by rpmautospec