linuxmint / warpinator

Share files across the LAN
GNU General Public License v3.0
1.21k stars 81 forks source link

add rpm specfile #62

Closed adamthiede closed 3 years ago

adamthiede commented 4 years ago

I created an rpm specfile for Fedora packaging. This makes it simple to compile this project into an RPM package. I've also made a COPR (Fedora's PPA equivalent) for it and builds are available for Fedora 32/33/Rawhide. The package compiled from the result of this specfile installs and runs perfectly on a clean Fedora 32 installation. This will potentially help the project see wider usage and it won't hurt having it around, even if it gets stale. It's not a super clean specfile, but hopefully having one in the repo will invite more skillful packagers to perfect it. Link to COPR: https://copr.fedorainfracloud.org/coprs/adamthiede/bin/ Direct link to RPM for Fedora 32: https://download.copr.fedorainfracloud.org/results/adamthiede/bin/fedora-32-x86_64/01686865-warpinator/warpinator-1.0.8-3.x86_64.rpm

leigh123linux commented 4 years ago

Maybe change it to

Summary: Send and Receive Files across the Network
Name: warpinator
Version: 1.0.8
Release: 3%{?dist}
License: GPLv2+
URL: https://github.com/linuxmint/warpinator
Source: %url/archive/%{version}/%{name}-%{version}.tar.gz

BuildArch: noarch

BuildRequires: gcc
BuildRequires: meson
BuildRequires: gettext 
BuildRequires: libappstream-glib
BuildRequires: desktop-file-utils

Requires: python3-grpcio
Requires: python3-cryptography
Requires: python3-netifaces
Requires: python3-pynacl
Requires: python3-zeroconf
Requires: python3-google-api-core
Requires: python3-packaging
Requires: python3-xapp
Requires: python3-xapps-overrides
Requires: python3-setproctitle

%description
Warpinator allows you to easily connect multiple computers
on a local area network and share files quickly and securely.

%prep
%setup -q

%build
%meson -Dinclude-firewall-mod=false
%meson_build

%install
%meson_install
desktop-file-validate %{buildroot}%{_datadir}/applications/warpinator.desktop
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/warpinator-autostart.desktop
appstream-util validate --nonet %{buildroot}%{_metainfodir}/warpinator.appdata.xml

%find_lang %{name}

%files -f %{name}.lang
%doc README.md
%license  COPYING
%{_bindir}/warpinator
%{_datadir}/icons/hicolor/*/apps/*Warpinator*
%{_datadir}/glib-2.0/schemas/org.x.Warpinator.gschema.xml
%{_datadir}/applications/warpinator.desktop
%{_metainfodir}/warpinator.appdata.xml
%{_datadir}/warpinator/
%{_libexecdir}/warpinator/*.py
%{_sysconfdir}/xdg/autostart/warpinator-autostart.desktop

%changelog
* Mon Sep 07 2020 Elagost <me@elagost.com>
- Created spec file
adamthiede commented 4 years ago

Nice, that builds/installs/runs just fine, and looks way better. Thank you for the expertise. I've changed it to your suggestion.