File warsaw.spec of Package warsaw
Name: warsaw
Version: 2.21.3
Release: 0
Url: https://seg.bb.com.br/home.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Package warsaw provides the needed software to use some banking services
License: MIT
Group: Productivity/Security
ExclusiveArch: x86_64
BuildRequires: xz
BuildRequires: desktop-file-utils
BuildRequires: update-desktop-files
BuildRequires: hicolor-icon-theme
BuildRequires: -post-build-checks
BuildRequires: systemd
BuildRequires: grep
BuildRequires: dpkg
%{?systemd_requires}
Requires: gconf2
Requires: libnotify4
Requires: libappindicator1
Requires: libXtst6
Requires: libXss1
Requires: xz
Requires: procps
Requires: zenity
Requires: libdbus-1-3
Requires: python3-gpgme
Requires: gpgme
Requires: python3-gpg
%description
The package warsaw will easily add the required software to let you use some
of the internet banking services of popular financial organizations in South
America. If you are unsure if you need this package please call your service
desk and ask them for instructions.
%build
%install
mkdir -p %{buildroot}/opt/warsaw/
%post
# Download warsaw
wget --no-check-certificate -O /opt/warsaw/warsaw_setup64.deb https://cloud.gastecnologia.com.br/bb/downloads/ws/warsaw_setup64.deb
# Extract and install warsaw
cd "/opt/warsaw/"
ar -x "/opt/warsaw/warsaw_setup64.deb"
tar xf /opt/warsaw/data.tar.xz -C /
# warsaw start
ln -s /usr/lib/systemd/system/warsaw.service /etc/systemd/system/multi-user.target.wants/warsaw.service
systemctl enable warsaw.service
systemctl start warsaw.service
systemctl restart warsaw.service
%preun
if [ "$1" = 0 ]; then
systemctl stop warsaw.service || true
systemctl disable warsaw.service || true
rm -f /etc/init/warsaw.conf
rm -f /etc/init.d/warsaw
rm -f /etc/xdg/autostart/warsaw.desktop
rm -f /lib/systemd/system/warsaw.service
rm -f /etc/systemd/system/multi-user.target.wants/warsaw.service
rm -f /usr/bin/warsaw
rm -rf /usr/local/bin/warsaw/
rm -rf /usr/local/etc/warsaw/
rm -rf /usr/local/lib/warsaw/
rm -rf /opt/warsaw/
fi
%clean
%files
/opt/warsaw/
%changelog