[RPM SPEC] : A draft for RPM based distributions
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 340
- PR merge metrics
- No merged PRs in 30d
Description
Hello dear developpers,
I've written a smal .spec file that compiles and packs inky in a RPM. I'm not a pro of spec, and the documentation is awkward, so be carefull with my code. I can only say that it works for me (fedora 36, x86_64).
Best regards.
```
#inky.spec
Name: inky
Version: 0.13.0
Release: 1%{?dist}
Summary: A tool to write stories
License:MIT
URL:https://github.com/inkle/inky/
Source0: https://github.com/inkle/inky/archive/refs/tags/%{version}.zip
BuildRequires:zip
BuildRequires:npm
BuildRequires:nodejs-packaging
#DOC https://rpm-packaging-guide.github.io/
#AppImage doesn't require dependancies checking
AutoReqProv: 0
#FIX RPM build error: Empty %files file rpmbuild/BUILD/inky-master/debugsourcefiles.list
%global debug_package %{nil}
#FIX remove bullshit commands launched by rpmbuild, just after running the install section.
# The bullshit commands replace the executable that works by a smallest one that doesn't work
%define __os_install_post %{nil}
#FIX : rpm complains about elf, at the end of this spec file write :
#%set_verify_elf_method skip
#TODO add this thing to BuildRequires (don't know how to add a npm package to BuildRequires)
#install as root with : npm install -g electron-packager
%description
A tool to write stories. See https://www.inklestudios.com/ink and https://github.com/inkle/inky .
%prep
%setup -q
%clean
rm -rf $RPM_BUILD_ROOT
%build
echo `pwd`
./BUILD_FOR_LINUX.sh
%install
mkdir -p %{buildroot}/%{_bindir}
install -m 0755 "$PWD/ReleaseUpload/Inky.AppImage" %{buildroot}/%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%changelog
* Sat Oct 01 2022 first version.
-
%set_verify_elf_method skip
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.