## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 %global debug_package %{nil} %global crate tower-http Name: rust-tower-http Version: 0.6.6 Release: %autorelease Summary: Tower middleware and utilities for HTTP clients and servers License: MIT URL: https://crates.io/crates/tower-http Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Allow brotli 8 (“Update to brotli 8”, # https://github.com/tower-rs/tower-http/pull/603) Patch: tower-http-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Tower middleware and utilities for HTTP clients and servers.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+add-extension-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+add-extension-devel %{_description} This package contains library source intended for building other packages which use the "add-extension" feature of the "%{crate}" crate. %files -n %{name}+add-extension-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-compression-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-compression-devel %{_description} This package contains library source intended for building other packages which use the "async-compression" feature of the "%{crate}" crate. %files -n %{name}+async-compression-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+auth-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+auth-devel %{_description} This package contains library source intended for building other packages which use the "auth" feature of the "%{crate}" crate. %files -n %{name}+auth-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+base64-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+base64-devel %{_description} This package contains library source intended for building other packages which use the "base64" feature of the "%{crate}" crate. %files -n %{name}+base64-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+catch-panic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+catch-panic-devel %{_description} This package contains library source intended for building other packages which use the "catch-panic" feature of the "%{crate}" crate. %files -n %{name}+catch-panic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compression-br-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compression-br-devel %{_description} This package contains library source intended for building other packages which use the "compression-br" feature of the "%{crate}" crate. %files -n %{name}+compression-br-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compression-deflate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compression-deflate-devel %{_description} This package contains library source intended for building other packages which use the "compression-deflate" feature of the "%{crate}" crate. %files -n %{name}+compression-deflate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compression-full-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compression-full-devel %{_description} This package contains library source intended for building other packages which use the "compression-full" feature of the "%{crate}" crate. %files -n %{name}+compression-full-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compression-gzip-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compression-gzip-devel %{_description} This package contains library source intended for building other packages which use the "compression-gzip" feature of the "%{crate}" crate. %files -n %{name}+compression-gzip-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compression-zstd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compression-zstd-devel %{_description} This package contains library source intended for building other packages which use the "compression-zstd" feature of the "%{crate}" crate. %files -n %{name}+compression-zstd-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cors-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cors-devel %{_description} This package contains library source intended for building other packages which use the "cors" feature of the "%{crate}" crate. %files -n %{name}+cors-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+decompression-br-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+decompression-br-devel %{_description} This package contains library source intended for building other packages which use the "decompression-br" feature of the "%{crate}" crate. %files -n %{name}+decompression-br-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+decompression-deflate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+decompression-deflate-devel %{_description} This package contains library source intended for building other packages which use the "decompression-deflate" feature of the "%{crate}" crate. %files -n %{name}+decompression-deflate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+decompression-full-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+decompression-full-devel %{_description} This package contains library source intended for building other packages which use the "decompression-full" feature of the "%{crate}" crate. %files -n %{name}+decompression-full-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+decompression-gzip-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+decompression-gzip-devel %{_description} This package contains library source intended for building other packages which use the "decompression-gzip" feature of the "%{crate}" crate. %files -n %{name}+decompression-gzip-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+decompression-zstd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+decompression-zstd-devel %{_description} This package contains library source intended for building other packages which use the "decompression-zstd" feature of the "%{crate}" crate. %files -n %{name}+decompression-zstd-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+follow-redirect-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+follow-redirect-devel %{_description} This package contains library source intended for building other packages which use the "follow-redirect" feature of the "%{crate}" crate. %files -n %{name}+follow-redirect-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fs-devel %{_description} This package contains library source intended for building other packages which use the "fs" feature of the "%{crate}" crate. %files -n %{name}+fs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+full-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+full-devel %{_description} This package contains library source intended for building other packages which use the "full" feature of the "%{crate}" crate. %files -n %{name}+full-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-core-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-core-devel %{_description} This package contains library source intended for building other packages which use the "futures-core" feature of the "%{crate}" crate. %files -n %{name}+futures-core-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-util-devel %{_description} This package contains library source intended for building other packages which use the "futures-util" feature of the "%{crate}" crate. %files -n %{name}+futures-util-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+httpdate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+httpdate-devel %{_description} This package contains library source intended for building other packages which use the "httpdate" feature of the "%{crate}" crate. %files -n %{name}+httpdate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+iri-string-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+iri-string-devel %{_description} This package contains library source intended for building other packages which use the "iri-string" feature of the "%{crate}" crate. %files -n %{name}+iri-string-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+limit-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+limit-devel %{_description} This package contains library source intended for building other packages which use the "limit" feature of the "%{crate}" crate. %files -n %{name}+limit-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+map-request-body-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+map-request-body-devel %{_description} This package contains library source intended for building other packages which use the "map-request-body" feature of the "%{crate}" crate. %files -n %{name}+map-request-body-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+map-response-body-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+map-response-body-devel %{_description} This package contains library source intended for building other packages which use the "map-response-body" feature of the "%{crate}" crate. %files -n %{name}+map-response-body-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+metrics-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+metrics-devel %{_description} This package contains library source intended for building other packages which use the "metrics" feature of the "%{crate}" crate. %files -n %{name}+metrics-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mime-devel %{_description} This package contains library source intended for building other packages which use the "mime" feature of the "%{crate}" crate. %files -n %{name}+mime-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mime_guess-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mime_guess-devel %{_description} This package contains library source intended for building other packages which use the "mime_guess" feature of the "%{crate}" crate. %files -n %{name}+mime_guess-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+normalize-path-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+normalize-path-devel %{_description} This package contains library source intended for building other packages which use the "normalize-path" feature of the "%{crate}" crate. %files -n %{name}+normalize-path-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+percent-encoding-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+percent-encoding-devel %{_description} This package contains library source intended for building other packages which use the "percent-encoding" feature of the "%{crate}" crate. %files -n %{name}+percent-encoding-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+propagate-header-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+propagate-header-devel %{_description} This package contains library source intended for building other packages which use the "propagate-header" feature of the "%{crate}" crate. %files -n %{name}+propagate-header-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+redirect-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+redirect-devel %{_description} This package contains library source intended for building other packages which use the "redirect" feature of the "%{crate}" crate. %files -n %{name}+redirect-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+request-id-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+request-id-devel %{_description} This package contains library source intended for building other packages which use the "request-id" feature of the "%{crate}" crate. %files -n %{name}+request-id-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sensitive-headers-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sensitive-headers-devel %{_description} This package contains library source intended for building other packages which use the "sensitive-headers" feature of the "%{crate}" crate. %files -n %{name}+sensitive-headers-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+set-header-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+set-header-devel %{_description} This package contains library source intended for building other packages which use the "set-header" feature of the "%{crate}" crate. %files -n %{name}+set-header-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+set-status-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+set-status-devel %{_description} This package contains library source intended for building other packages which use the "set-status" feature of the "%{crate}" crate. %files -n %{name}+set-status-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+timeout-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+timeout-devel %{_description} This package contains library source intended for building other packages which use the "timeout" feature of the "%{crate}" crate. %files -n %{name}+timeout-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-devel %{_description} This package contains library source intended for building other packages which use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-util-devel %{_description} This package contains library source intended for building other packages which use the "tokio-util" feature of the "%{crate}" crate. %files -n %{name}+tokio-util-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tower-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tower-devel %{_description} This package contains library source intended for building other packages which use the "tower" feature of the "%{crate}" crate. %files -n %{name}+tower-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trace-devel %{_description} This package contains library source intended for building other packages which use the "trace" feature of the "%{crate}" crate. %files -n %{name}+trace-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tracing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tracing-devel %{_description} This package contains library source intended for building other packages which use the "tracing" feature of the "%{crate}" crate. %files -n %{name}+tracing-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+util-devel %{_description} This package contains library source intended for building other packages which use the "util" feature of the "%{crate}" crate. %files -n %{name}+util-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+uuid-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+uuid-devel %{_description} This package contains library source intended for building other packages which use the "uuid" feature of the "%{crate}" crate. %files -n %{name}+uuid-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+validate-request-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+validate-request-devel %{_description} This package contains library source intended for building other packages which use the "validate-request" feature of the "%{crate}" crate. %files -n %{name}+validate-request-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Adjust include_bytes!("../[…]/README.md") to work out of tree in tests. # (The tests in question may be disabled, but this keeps them from failing # to compile.) sed -r -i 's@(include_bytes!\(".*)\.\./(README\.md")@\1\2@' \ src/services/fs/serve_file.rs \ src/services/fs/serve_dir/tests.rs %generate_buildrequires %cargo_generate_buildrequires -f full %build %cargo_build -f full %install %cargo_install -f full %if %{with check} %check # * Many serve_dir/serve_file tests require files from test_files, which are not # included in the crate, or make path assumptions that only hold in the # workspace. %{cargo_test -f full -- -- %{shrink: --skip services::fs::serve_dir:: --skip services::fs::serve_file:: }} %endif %changelog ## START: Generated by rpmautospec * Thu Sep 11 2025 Benjamin A. Beasley - 0.6.6-4 - Allow brotli 8 * Fri Jul 25 2025 Fedora Release Engineering - 0.6.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 10 2025 Benjamin A. Beasley - 0.6.6-2 - Run most of the tests * Tue Jun 10 2025 Benjamin A. Beasley - 0.6.6-1 - Update to version 0.6.6; Fixes RHBZ#2364896 * Sun Jan 19 2025 Fedora Release Engineering - 0.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Nov 26 2024 Fabio Valentini - 0.6.2-1 - Update to version 0.6.2; Fixes RHBZ#2327118 * Tue Oct 08 2024 Fabio Valentini - 0.6.1-1 - Update to version 0.6.1; Fixes RHBZ#2313664 * Wed Oct 02 2024 Benjamin A. Beasley - 0.5.2-6 - Update rust-brotli to 7.0 * Mon Sep 30 2024 Benjamin A. Beasley - 0.5.2-5 - Upgrade base64 and brotli * Sat Jul 20 2024 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Apr 30 2024 Fabio Valentini - 0.5.2-3 - Relax sync_wrapper dev-dependency to allow building with v1 * Tue Apr 30 2024 Benjamin A. Beasley - 0.5.2-2 - Run more tests by enabling the "full" feature * Tue Apr 30 2024 Benjamin A. Beasley - 0.5.2-1 - Update to version 0.5.2; Fixes RHBZ#2250877 * Sat Jan 27 2024 Fedora Release Engineering - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Sep 19 2023 Fabio Valentini - 0.4.4-1 - Update to version 0.4.4; Fixes RHBZ#2236815 * Thu Jul 27 2023 Fabio Valentini - 0.4.3-1 - Initial import (#2214428) ## END: Generated by rpmautospec