Hi Zbyszek,
Thank you for your response! I have read the article and have done what
is written there, the merge request to add the license file to the
.crate tarball has just been accepted by the upstream. I'm more
interested in knowing if my way of fetching the license and installing
is idiomatic while waiting for a new upstream release:
...
Source0:%{crates_source}
Source1:https://gitlab.gnome.org/World/Rust/libadwaita-rs/-/raw/v0.1/LICE...
...
%files devel
%license %{crate_instdir}/LICENCE
...
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
cp -pr %{_sourcedir}/%{crate}-%{version_no_tilde}-LICENCE LICENCE
...
I'm mainly not sure about the line of `cp` as I haven't found any
example elsewhere with similar situation.
Thank you!
Zhangyuan
On Sun, 2022-03-20 at 09:42 +0100, Zbigniew Jędrzejewski-Szmek wrote:
On Sun, Mar 20, 2022 at 04:00:08AM -0400, Zhangyuan Nie wrote:
> Dear Rust packagers,
>
> I am recently working on a desktop application
> (
https://github.com/zhangyuannie/butter) for Btrfs snapshot
> management
> using Rust, GTK4 and libadwaita.
Nice!
> However, while trying to package my app on Copr, I noticed that
> rust-
> libadwaita has not been packaged yet.
>
> I decided to try to package them myself, the results are:
>
https://copr.fedorainfracloud.org/coprs/zhangyuannie/rust-libadwaita-sys/
>
https://copr.fedorainfracloud.org/coprs/zhangyuannie/rust-libadwaita/
>
> And I have opened a review for rust-libadwaita-sys:
>
https://bugzilla.redhat.com/show_bug.cgi?id=2066040
>
> I have a few questions regarding their packaging:
>
> 1. Upstream did not include the LICENSE file inside the .crate
> tarball,
> but has it in the root directory of the repository.
> I have already sent a MR upstream to fix this issue:
>
>
https://gitlab.gnome.org/World/Rust/libadwaita-rs/merge_requests/36
> In the mean time, I fetched the license file from the tagged
> branch
> of upstream, and cp-ed it into the build directory during %prep.
> Is this the correct, idiomatic way of doing this?
For this, see
https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidel...
Zbyszek
_______________________________________________
Rust mailing list -- rust(a)lists.fedoraproject.org
To unsubscribe send an email to rust-leave(a)lists.fedoraproject.org
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/rust@lists.fedoraproject.org
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure