-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packages for Fedora #93
Comments
I managed to cobble together two spec files: one for building stable releases, and one for building from Git %global debug_package %{nil}
Name: neovim-gtk
Version: 1.0.4
Release: 1%{dist}
Summary: A GTK4 UI for NeoVim, written in Rust
License: GPLv3
URL: https://github.com/Lyude/neovim-gtk
Source: https://github.com/Lyude/neovim-gtk/archive/refs/tags/v%{version}.tar.gz
BuildRequires: rust cargo pkgconfig(gtk4)
Requires: neovim glib2 gtk4 pango
Conflicts: neovim-gtk-git
%description
A GTK4 UI for NeoVim, written in Rust. Originally this project started as a fork
of daa84's neovim-gtk project. There are a very large number of improvements
from daa84's version, including lots of bugfixes, using GTK4, smooth resizing,
and more.
%files -n %{name}
%{_bindir}/nvim-gtk
%{_datadir}/*
%prep
%autosetup -n %{name}-%{version_no_tilde} -p0
%build
cargo build --release
%install
%make_install PREFIX=/usr
%{__install} -D -m644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
rm -f %{buildroot}/%{_prefix}/.crates.toml %{buildroot}/%{_prefix}/.crates2.json
%changelog
%autochangelog The Git %global debug_package %{nil}
Name: neovim-gtk-git
Version: {{{ git_dir_version }}}
Release: 1%{dist}
Summary: A GTK4 UI for NeoVim, written in Rust
License: GPLv3
URL: https://github.com/Lyude/neovim-gtk
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
BuildRequires: rust cargo pkgconfig(gtk4)
Requires: neovim glib2 gtk4 pango
Conflicts: neovim-gtk
%description
A GTK4 UI for NeoVim, written in Rust. Originally this project started as a fork
of daa84's neovim-gtk project. There are a very large number of improvements
from daa84's version, including lots of bugfixes, using GTK4, smooth resizing,
and more.
%files -n %{name}
%{_bindir}/nvim-gtk
%{_datadir}/*
%prep
{{{ git_dir_setup_macro }}}
%build
cargo build --release
%install
%make_install PREFIX=/usr
%{__install} -D -m644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
rm -f %{buildroot}/%{_prefix}/.crates.toml %{buildroot}/%{_prefix}/.crates2.json
%changelog
{{{ git_dir_changelog }}} The regular spec can be built using @Lyude Is this something you'd want in this repository, or track it elsewhere? If the former I'd happily set up a pull request to add the files. |
Note for the above spec files: IIRC |
In the mean time I've set up a copr repository at https://copr.fedorainfracloud.org/coprs/yorickpeterse/neovim-gtk/. I don't think I can automate building from |
Thank you so much for doing this! JFYI: I was hoping to get to this at some point but never really found the motivation myself haha (it was probably obvious, but I am also a Fedora user myself :). I think the main/stable split you envisioned here is exactly what we'd want as well. Anyway yes - I'd be fine with having this as part of the repository for the time being. Fun fact though, I am also a Fedora package maintainer :), so I'd also be happy to work with you to get this into Fedora's actual package repo if you'd be interested in that (presumably we could both handle maintaining that as time permits us). |
Yeah, I think using these macros would be a good idea for this |
BTW, I assume this has something to do with the limitations of the automation scripts for building off Github? I can't remember if copr has scripts for this specifically… it's been a while since I've played around with that. |
@Lyude I don't know shit just yet about the process of maintaining a package in the Fedora repositories themselves, but I'd be happy to help out/co-maintain. In that case the stable |
I'm currently in the process of switching my computers over to Fedora Silverblue. Unfortunately there are no up-to-date packages for neovim-gtk for Fedora. I did find this copr repository, but it's not active.
Having an up-to-date copr repository for both stable releases and the main branch would be nice. 😄 I started creating a few of my own packages (https://copr.fedorainfracloud.org/coprs/yorickpeterse/) so I'd be happy to help where necessary. Creating a package for stable releases should be pretty easy, though I'm not sure how to best do this for every Git commit; from what I gather you'd have to use rpkg-util and put the
.spec
file in the source repository, as it derives data from the current repository.The text was updated successfully, but these errors were encountered: