gnunet-rpm

GNUnet RPM package rules
Log | Files | Refs | README

rust-quiche.spec (5427B)


      1 # Generated by rust2rpm 24
      2 %bcond_without check
      3 %global debug_package %{nil}
      4 %global crate quiche
      5 
      6 Name:           rust-quiche
      7 Version:        0.17.2
      8 Release:        %autorelease
      9 Summary:        🥧 Savoury implementation of the QUIC transport protocol and HTTP/3
     10 
     11 License:        BSD-2-Clause
     12 URL:            https://crates.io/crates/quiche
     13 Source0:         %{crates_source}
     14 Source1:        https://git.gnunet.org/gnunet-rpm.git/plain/rpmbuild/SOURCES/quiche-fix-metadata-auto.diff
     15 # Automatically generated patch to strip foreign dependencies
     16 Patch:          quiche-fix-metadata-auto.diff
     17 
     18 BuildRequires:  rust-packaging >= 21
     19 
     20 %global _description %{expand:
     21 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3.}
     22 
     23 %description %{_description}
     24 
     25 %package     -n %{crate}
     26 Summary:        %{summary}
     27 
     28 %description -n %{crate} %{_description}
     29 
     30 %files       -n %{crate}
     31 %license COPYING
     32 %license deps/boringssl/LICENSE
     33 %doc README.md
     34 
     35 %package        devel
     36 Summary:        %{summary}
     37 BuildArch:      noarch
     38 
     39 %description    devel %{_description}
     40 
     41 This package contains library source intended for building other packages which
     42 use the "%{crate}" crate.
     43 
     44 %files          devel
     45 %license %{crate_instdir}/COPYING
     46 %license %{crate_instdir}/deps/boringssl/LICENSE
     47 %doc %{crate_instdir}/README.md
     48 %{crate_instdir}/
     49 
     50 %package     -n %{name}+default-devel
     51 Summary:        %{summary}
     52 BuildArch:      noarch
     53 
     54 %description -n %{name}+default-devel %{_description}
     55 
     56 This package contains library source intended for building other packages which
     57 use the "default" feature of the "%{crate}" crate.
     58 
     59 %files       -n %{name}+default-devel
     60 %ghost %{crate_instdir}/Cargo.toml
     61 
     62 %package     -n %{name}+boring-devel
     63 Summary:        %{summary}
     64 BuildArch:      noarch
     65 
     66 %description -n %{name}+boring-devel %{_description}
     67 
     68 This package contains library source intended for building other packages which
     69 use the "boring" feature of the "%{crate}" crate.
     70 
     71 %files       -n %{name}+boring-devel
     72 %ghost %{crate_instdir}/Cargo.toml
     73 
     74 %package     -n %{name}+boringssl-boring-crate-devel
     75 Summary:        %{summary}
     76 BuildArch:      noarch
     77 
     78 %description -n %{name}+boringssl-boring-crate-devel %{_description}
     79 
     80 This package contains library source intended for building other packages which
     81 use the "boringssl-boring-crate" feature of the "%{crate}" crate.
     82 
     83 %files       -n %{name}+boringssl-boring-crate-devel
     84 %ghost %{crate_instdir}/Cargo.toml
     85 
     86 %package     -n %{name}+boringssl-vendored-devel
     87 Summary:        %{summary}
     88 BuildArch:      noarch
     89 
     90 %description -n %{name}+boringssl-vendored-devel %{_description}
     91 
     92 This package contains library source intended for building other packages which
     93 use the "boringssl-vendored" feature of the "%{crate}" crate.
     94 
     95 %files       -n %{name}+boringssl-vendored-devel
     96 %ghost %{crate_instdir}/Cargo.toml
     97 
     98 %package     -n %{name}+ffi-devel
     99 Summary:        %{summary}
    100 BuildArch:      noarch
    101 
    102 %description -n %{name}+ffi-devel %{_description}
    103 
    104 This package contains library source intended for building other packages which
    105 use the "ffi" feature of the "%{crate}" crate.
    106 
    107 %files       -n %{name}+ffi-devel
    108 %ghost %{crate_instdir}/Cargo.toml
    109 %{_includedir}/quiche.h
    110 %{_libdir}/libquiche.so
    111 
    112 %package     -n %{name}+foreign-types-shared-devel
    113 Summary:        %{summary}
    114 BuildArch:      noarch
    115 
    116 %description -n %{name}+foreign-types-shared-devel %{_description}
    117 
    118 This package contains library source intended for building other packages which
    119 use the "foreign-types-shared" feature of the "%{crate}" crate.
    120 
    121 %files       -n %{name}+foreign-types-shared-devel
    122 %ghost %{crate_instdir}/Cargo.toml
    123 
    124 %package     -n %{name}+fuzzing-devel
    125 Summary:        %{summary}
    126 BuildArch:      noarch
    127 
    128 %description -n %{name}+fuzzing-devel %{_description}
    129 
    130 This package contains library source intended for building other packages which
    131 use the "fuzzing" feature of the "%{crate}" crate.
    132 
    133 %files       -n %{name}+fuzzing-devel
    134 %ghost %{crate_instdir}/Cargo.toml
    135 
    136 %package     -n %{name}+pkg-config-meta-devel
    137 Summary:        %{summary}
    138 BuildArch:      noarch
    139 
    140 %description -n %{name}+pkg-config-meta-devel %{_description}
    141 
    142 This package contains library source intended for building other packages which
    143 use the "pkg-config-meta" feature of the "%{crate}" crate.
    144 
    145 %files       -n %{name}+pkg-config-meta-devel
    146 %ghost %{crate_instdir}/Cargo.toml
    147 
    148 %package     -n %{name}+qlog-devel
    149 Summary:        %{summary}
    150 BuildArch:      noarch
    151 
    152 %description -n %{name}+qlog-devel %{_description}
    153 
    154 This package contains library source intended for building other packages which
    155 use the "qlog" feature of the "%{crate}" crate.
    156 
    157 %files       -n %{name}+qlog-devel
    158 %ghost %{crate_instdir}/Cargo.toml
    159 
    160 %package     -n %{name}+sfv-devel
    161 Summary:        %{summary}
    162 BuildArch:      noarch
    163 
    164 %description -n %{name}+sfv-devel %{_description}
    165 
    166 This package contains library source intended for building other packages which
    167 use the "sfv" feature of the "%{crate}" crate.
    168 
    169 %files       -n %{name}+sfv-devel
    170 %ghost %{crate_instdir}/Cargo.toml
    171 
    172 %prep
    173 %autosetup -n %{crate}-%{version_no_tilde} -p1
    174 %cargo_prep
    175 
    176 %generate_buildrequires
    177 %cargo_generate_buildrequires
    178 
    179 %build
    180 %cargo_build -f ffi
    181 
    182 %install
    183 %cargo_install
    184 install -Dpm0644 -t %{buildroot}%{_libdir}/ target/release/libquiche.so
    185 install -Dpm0644 -t %{buildroot}%{_includedir}/ include/quiche.h
    186 # FIXME: install shared library
    187 
    188 %if %{with check}
    189 %check
    190 %cargo_test
    191 %endif
    192 
    193 %changelog
    194 %autochangelog