https://bugzilla.redhat.com/show_bug.cgi?id=2525156

Artur Frenszek-Iwicki <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]



--- Comment #4 from Artur Frenszek-Iwicki <[email protected]> ---
> RUST_MIN_STACK=2147483648 cargo build --release
This won't work, as Cargo will try to download the dependencies from the
internet,
and Fedora package builders run with internet access disabled.
Check the Rust Packaging Guidelines for information on how to package Rust
applications.
https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/

> install -Dm644 "packages/hnefatafl.service" -t 
> "%{buildroot}/usr/lib/systemd/system"
> [...]
> install -Dm644 "taflzero.1.gz" -t "%{buildroot}/usr/share/man/man1"
> [...]
> install -Dm644 "packages/hnefatafl-client.desktop" -t 
> "%{buildroot}/usr/share/applications"
Don't use hard-coded paths.
* /usr/lib/systemd/system -> %{_unitdir}
* /usr/share/man -> %{_mandir}
* /usr/share -> %{_datadir}
https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/#macros_installation

> %files
> [...]
> /usr/share/applications/hnefatafl-client.desktop
The file should be validated (at end of %install or in %check).
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_desktop_file_install_usage

> %files
> [...]
> %{_metainfodir}/org.hnefatafl.hnefatafl_client.metainfo.xml
The file should be validated (at end of %install or in %check).
https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/#_app_data_validate_usage

> gzip --no-name --best taflzero.1
> gzip --no-name --best hnefatafl-server.1
> gzip --no-name --best hnefatafl-text-protocol.1
> gzip --no-name --best hnefatafl-client.1
> [...]
> /usr/share/man/man1/hnefatafl-client.1.gz
> /usr/share/man/man1/hnefatafl-server.1.gz
> /usr/share/man/man1/hnefatafl-text-protocol.1.gz
> /usr/share/man/man1/taflzero.1.gz
Don't. RPM will auto-compress man pages.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_manpages


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2525156

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202525156%23c4

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to