Blame rust-diesel.spec

8470afe
# Generated by rust2rpm 13
8470afe
# * dev-deps are outdated, https://github.com/diesel-rs/diesel/issues/2393
8470afe
%bcond_with check
8470afe
%global debug_package %{nil}
8470afe
8470afe
%global crate diesel
8470afe
8470afe
Name:           rust-%{crate}
8470afe
Version:        1.4.4
659f5ce
Release:        2%{?dist}
8470afe
Summary:        Safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL
8470afe
8470afe
# Upstream license specification: MIT OR Apache-2.0
8470afe
# https://github.com/diesel-rs/diesel/pull/2395
8470afe
License:        MIT or ASL 2.0
8470afe
URL:            https://crates.io/crates/diesel
8470afe
Source:         %{crates_source}
659f5ce
# Initial patched metadata
659f5ce
# * Update libsqlite3-sys to 0.18, https://github.com/diesel-rs/diesel/pull/2398
659f5ce
Patch0:         diesel-fix-metadata.diff
8470afe
8470afe
ExclusiveArch:  %{rust_arches}
8470afe
%if %{__cargo_skip_build}
8470afe
BuildArch:      noarch
8470afe
%endif
8470afe
8470afe
BuildRequires:  rust-packaging
8470afe
8470afe
%global _description %{expand:
8470afe
Safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL.}
8470afe
8470afe
%description %{_description}
8470afe
8470afe
%package        devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description    devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "%{crate}" crate.
8470afe
8470afe
%files          devel
8470afe
%doc README.md
8470afe
%{cargo_registry}/%{crate}-%{version_no_tilde}/
8470afe
8470afe
%package     -n %{name}+default-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+default-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "default" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+default-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+128-column-tables-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+128-column-tables-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "128-column-tables" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+128-column-tables-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+32-column-tables-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+32-column-tables-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "32-column-tables" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+32-column-tables-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+64-column-tables-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+64-column-tables-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "64-column-tables" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+64-column-tables-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+bigdecimal-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+bigdecimal-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "bigdecimal" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+bigdecimal-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+bitflags-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+bitflags-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "bitflags" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+bitflags-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+chrono-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+chrono-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "chrono" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+chrono-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+deprecated-time-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+deprecated-time-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "deprecated-time" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+deprecated-time-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+extras-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+extras-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "extras" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+extras-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+huge-tables-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+huge-tables-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "huge-tables" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+huge-tables-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+ipnetwork-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+ipnetwork-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "ipnetwork" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+ipnetwork-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+large-tables-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+large-tables-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "large-tables" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+large-tables-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+libc-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+libc-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "libc" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+libc-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+libsqlite3-sys-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+libsqlite3-sys-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "libsqlite3-sys" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+libsqlite3-sys-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+mysql-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+mysql-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "mysql" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+mysql-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+mysqlclient-sys-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+mysqlclient-sys-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "mysqlclient-sys" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+mysqlclient-sys-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+network-address-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+network-address-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "network-address" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+network-address-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+num-bigint-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+num-bigint-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "num-bigint" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+num-bigint-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+num-integer-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+num-integer-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "num-integer" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+num-integer-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+num-traits-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+num-traits-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "num-traits" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+num-traits-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+numeric-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+numeric-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "numeric" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+numeric-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+percent-encoding-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+percent-encoding-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "percent-encoding" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+percent-encoding-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+postgres-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+postgres-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "postgres" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+postgres-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+pq-sys-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+pq-sys-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "pq-sys" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+pq-sys-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+quickcheck-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+quickcheck-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "quickcheck" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+quickcheck-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+r2d2-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+r2d2-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "r2d2" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+r2d2-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+serde_json-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+serde_json-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "serde_json" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+serde_json-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+sqlite-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+sqlite-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "sqlite" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+sqlite-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+time-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+time-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "time" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+time-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+unstable-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+unstable-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "unstable" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+unstable-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+url-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+url-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "url" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+url-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+uuid-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+uuid-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "uuid" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+uuid-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+uuidv07-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+uuidv07-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "uuidv07" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+uuidv07-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+with-deprecated-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+with-deprecated-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "with-deprecated" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+with-deprecated-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+x128-column-tables-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+x128-column-tables-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "x128-column-tables" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+x128-column-tables-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+x32-column-tables-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+x32-column-tables-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "x32-column-tables" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+x32-column-tables-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%package     -n %{name}+x64-column-tables-devel
8470afe
Summary:        %{summary}
8470afe
BuildArch:      noarch
8470afe
8470afe
%description -n %{name}+x64-column-tables-devel %{_description}
8470afe
8470afe
This package contains library source intended for building other packages
8470afe
which use "x64-column-tables" feature of "%{crate}" crate.
8470afe
8470afe
%files       -n %{name}+x64-column-tables-devel
8470afe
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
8470afe
8470afe
%prep
8470afe
%autosetup -n %{crate}-%{version_no_tilde} -p1
8470afe
%cargo_prep
8470afe
8470afe
%generate_buildrequires
8470afe
%cargo_generate_buildrequires
8470afe
8470afe
%build
8470afe
%cargo_build
8470afe
8470afe
%install
8470afe
%cargo_install
8470afe
8470afe
%if %{with check}
8470afe
%check
8470afe
%cargo_test
8470afe
%endif
8470afe
8470afe
%changelog
659f5ce
* Sat May 16 13:18:15 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.4.4-2
659f5ce
- Update libsqlite3-sys to 0.18
659f5ce
8470afe
* Thu May 14 10:03:42 CEST 2020 Igor Raits <i.gnatenko.brain@gmail.com> - 1.4.4-1
8470afe
- Initial package