mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-26 21:17:20 -08:00
146f383aae
* enhance: ensure LF line endings used with package manifests * enhance: depend on shared object instead of package Back in211c263
, I changed the dependencies to depend on package instead of shared object. This worked well, but introduced some problems for distros other than Fedora (81f76f0
). I did this because of problems with the arm64 package, but now I think `__isa_bits` is a reasonable workaround. * refactor: remove pointless variable checks `set -u` was introduced in6461765
36 lines
1 KiB
RPMSpec
36 lines
1 KiB
RPMSpec
Name: sourcegit
|
|
Version: %_version
|
|
Release: 1
|
|
Summary: Open-source & Free Git Gui Client
|
|
License: MIT
|
|
URL: https://sourcegit-scm.github.io/
|
|
Source: https://github.com/sourcegit-scm/sourcegit/archive/refs/tags/v%_version.tar.gz
|
|
Requires: libX11.so.6()(%{__isa_bits}bit)
|
|
Requires: libSM.so.6()(%{__isa_bits}bit)
|
|
|
|
%define _build_id_links none
|
|
|
|
%description
|
|
Open-source & Free Git Gui Client
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/opt/sourcegit
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
mkdir -p %{buildroot}/usr/share/applications
|
|
mkdir -p %{buildroot}/usr/share/icons
|
|
cp -f ../../../SourceGit/* %{buildroot}/opt/sourcegit/
|
|
ln -rsf %{buildroot}/opt/sourcegit/sourcegit %{buildroot}/%{_bindir}
|
|
cp -r ../../_common/applications %{buildroot}/%{_datadir}
|
|
cp -r ../../_common/icons %{buildroot}/%{_datadir}
|
|
chmod 755 -R %{buildroot}/opt/sourcegit
|
|
chmod 755 %{buildroot}/%{_datadir}/applications/sourcegit.desktop
|
|
|
|
%files
|
|
%dir /opt/sourcegit/
|
|
/opt/sourcegit/*
|
|
/usr/share/applications/sourcegit.desktop
|
|
/usr/share/icons/*
|
|
%{_bindir}/sourcegit
|
|
|
|
%changelog
|
|
# skip
|