119 lines
3.5 KiB
RPMSpec
119 lines
3.5 KiB
RPMSpec
|
Name: signal-desktop
|
||
|
Version: 5.40.1
|
||
|
Release: 3mamba
|
||
|
Summary: Signal Desktop links with Signal on Android or iOS and lets you message from your computers
|
||
|
Group: Graphical Desktop/Applications/Internet
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://signal.org/
|
||
|
Source: https://github.com/signalapp/Signal-Desktop.git/v%{version}/Signal-Desktop-%{version}.tar.bz2
|
||
|
Source2: signal-desktop.desktop
|
||
|
Patch0: signal-desktop-5.40.1-expire-from-source-date-epoch.patch
|
||
|
Patch1: signal-desktop-5.40.1-fix-better-sqlite-ssl-error.patch
|
||
|
License: Affero GNU Public License
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libX11-devel
|
||
|
BuildRequires: libXcomposite-devel
|
||
|
BuildRequires: libXdamage-devel
|
||
|
BuildRequires: libXext-devel
|
||
|
BuildRequires: libXfixes-devel
|
||
|
BuildRequires: libXrandr-devel
|
||
|
BuildRequires: libalsa-devel
|
||
|
BuildRequires: libat-spi2-atk-devel
|
||
|
BuildRequires: libat-spi2-core-devel
|
||
|
BuildRequires: libatk-devel
|
||
|
BuildRequires: libcairo-devel
|
||
|
BuildRequires: libcups-devel
|
||
|
BuildRequires: libdbus-devel
|
||
|
BuildRequires: libdrm-devel
|
||
|
BuildRequires: libexpat-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libgdk-pixbuf-devel
|
||
|
BuildRequires: libglib-devel
|
||
|
BuildRequires: libgtk3-devel
|
||
|
BuildRequires: libmesa-devel
|
||
|
BuildRequires: libnspr-devel
|
||
|
BuildRequires: libnss-devel
|
||
|
BuildRequires: libpango-devel
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
BuildRequires: libvips-devel
|
||
|
BuildRequires: libxcb-devel
|
||
|
BuildRequires: libxkbcommon-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: git-lfs
|
||
|
|
||
|
%description
|
||
|
Signal Desktop links with Signal on Android or iOS and lets you message from your computers.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Signal-Desktop-%{version}
|
||
|
#-D -T
|
||
|
#:<< _EOF
|
||
|
|
||
|
# Requires Nodejs 16.13.0
|
||
|
export PROFILE=/dev/null
|
||
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
|
||
|
export NVM_DIR="$HOME/.nvm"
|
||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||
|
|
||
|
# git-lfs hook needs to be installed for one of the dependencies
|
||
|
git lfs install
|
||
|
|
||
|
# Allow higher Node versions
|
||
|
#sed 's#"node": "#&>=#' -i package.json
|
||
|
|
||
|
%patch0 -p1 -b .expire-from-source-date-epoch
|
||
|
#%patch1 -p1
|
||
|
|
||
|
yarn install
|
||
|
#--ignore-engines
|
||
|
|
||
|
%build
|
||
|
#:<< _EOF
|
||
|
export NVM_DIR="$HOME/.nvm"
|
||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||
|
|
||
|
export SOURCE_DATE_EPOCH=`date +%s`
|
||
|
|
||
|
yarn generate
|
||
|
yarn build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
install -d -m0755 %{buildroot}{%{_libdir},%{_bindir}}
|
||
|
cp -a release/linux-unpacked %{buildroot}%{_libdir}/signal-desktop
|
||
|
ln -s ../%{_lib}/signal-desktop/signal-desktop %{buildroot}%{_bindir}
|
||
|
|
||
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/signal-desktop.desktop
|
||
|
|
||
|
for i in 16 24 32 48 64 128 256 512 1024; do
|
||
|
install -D -m0644 build/icons/png/${i}x${i}.png \
|
||
|
%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/signal-desktop.png
|
||
|
done
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/signal-desktop
|
||
|
%{_datadir}/applications/signal-desktop.desktop
|
||
|
%dir %{_libdir}/signal-desktop
|
||
|
%{_libdir}/signal-desktop/*
|
||
|
%{_datadir}/icons/hicolor/*/apps/signal-desktop.png
|
||
|
%doc LICENSE
|
||
|
|
||
|
%changelog
|
||
|
* Wed Apr 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.40.1-3mamba
|
||
|
- rebuilt with nvm to install compatible nodejs versione (16.13.0)
|
||
|
|
||
|
* Tue Apr 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.40.1-2mamba
|
||
|
- rebuilt
|
||
|
|
||
|
* Sat Apr 23 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.40.1-1mamba
|
||
|
- package created using the webbuild interface
|