%global rust_flags -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro,-z,now --cap-lints warn #### %global debug_package %{nil} #### Name: girouette Summary: A command line tool that displays the current weather in the terminal. Version: 0.6.7 Release: 1%{?dist} License: MIT or ASL 2.0 Source0: https://github.com/gourlaysama/girouette/archive/v%{version}.tar.gz URL: https://github.com/gourlaysama/girouette BuildRequires: rust >= 1.53.0 BuildRequires: cargo BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(openssl) %description %{summary} %prep %setup -q %build RUSTFLAGS="%{rust_flags}" BUILD_ID="%{release}" cargo build --release %install install -Dpsm755 target/release/%{name} %{buildroot}%{_bindir}/%{name} install -Dpm0644 -T target/release/build/%{name}-*/out/girouette.bash \ %{buildroot}%{_datadir}/bash-completion/completions/girouette %if 0%{?rhel} mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d mkdir -p %{buildroot}%{_datadir}/zsh/site-functions %endif install -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_completions.d \ target/release/build/%{name}-*/out/girouette.fish install -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \ target/release/build/%{name}-*/out/_girouette %files %{_bindir}/%{name} %license LICENSE-APACHE LICENSE-MIT %doc README.md CHANGELOG.md %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/girouette %dir %{_datadir}/fish %dir %{_datadir}/fish/vendor_completions.d %{_datadir}/fish/vendor_completions.d/girouette.fish %dir %{_datadir}/zsh %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/_girouette %changelog * Thu Dec 30 2021 Antoine Gourlay - 0.6.7-1 - girouette 0.6.7 * Wed Dec 15 2021 Antoine Gourlay - 0.6.6-1 - girouette 0.6.6 * Fri Nov 26 2021 Antoine Gourlay - 0.6.5-1 - girouette 0.6.5 * Wed Nov 17 2021 Antoine Gourlay - 0.6.4-1 - girouette 0.6.4 * Mon Oct 25 2021 Antoine Gourlay - 0.6.3-1 - girouette 0.6.3 * Fri Sep 10 2021 Antoine Gourlay - 0.6.2-1 - girouette 0.6.2 * Fri Sep 10 2021 Antoine Gourlay - 0.6.1-1 - girouette 0.6.1 * Fri Sep 03 2021 Antoine Gourlay - 0.6.0-2 - build for epel/centos-stream * Fri Sep 03 2021 Antoine Gourlay - 0.6.0-1 - girouette 0.6.0 * Fri Jul 23 2021 Antoine Gourlay - 0.5.2-1 - girouette 0.5.2 * Thu May 20 2021 Antoine Gourlay - 0.5.1-1 - girouette 0.5.1 * Mon Mar 29 2021 Antoine Gourlay - 0.5.0-1 - girouette 0.5.0 * Wed Feb 10 2021 Antoine Gourlay - 0.4.3-1 - girouette 0.4.3 * Tue Feb 09 2021 Antoine Gourlay - 0.4.2-1 - girouette 0.4.2 * Wed Feb 03 2021 Antoine Gourlay - 0.4.1-3 - fix bash completion path * Wed Feb 03 2021 Antoine Gourlay - 0.4.1-2 - fix epel build: fix typo * Wed Feb 03 2021 Antoine Gourlay - 0.4.1-1 - girouette 0.4.1 * Tue Feb 02 2021 Antoine Gourlay - 0.4.0-2 - fix rust MSRV: 1.48.0 * Tue Feb 02 2021 Antoine Gourlay - 0.4.0-1 - girouette 0.4.0 * Fri Jan 22 2021 Antoine Gourlay - 0.4.0-0.1 - Initial package