mirror of
https://abf.rosa.ru/djam/token-manager.git
synced 2025-02-23 14:32:51 +00:00
59 lines
2 KiB
RPMSpec
59 lines
2 KiB
RPMSpec
%define gitrev 2b748d7c5f8928d355a3f0e9d376c1c383ffaa4b
|
|
%define debug %nil
|
|
%define debug_package %nil
|
|
|
|
Name: token-manager
|
|
Version: 0.12
|
|
Release: 1
|
|
License: MIT
|
|
Group: System/Configuration/Other
|
|
Summary: Certificate manager for CryptoPro CSP
|
|
URL: https://github.com/bmakarenko/token-manager
|
|
Source0: %{name}-%{gitrev}.zip
|
|
BuildArch: noarch
|
|
Requires: python-qt4
|
|
Requires: usermode
|
|
Requires: opensc
|
|
|
|
%description
|
|
A PyQt front-end for Crypto Pro CSP for CentOS 6, RELS
|
|
AstraLinux, AltLinux, ROSA Linux and GosLinux by
|
|
The Federal Bailiffs' Service of Russia
|
|
|
|
%prep
|
|
%setup -qn %{name}-%{gitrev}
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
ln -sf /usr/bin/consolehelper %{buildroot}%{_bindir}/cpconfig-amd64
|
|
ln -sf /usr/bin/consolehelper %{buildroot}%{_bindir}/cpconfig-ia32
|
|
install -m 0755 token-manager.py %{buildroot}%{_bindir}/token-manager.py
|
|
mkdir -p %{buildroot}/%{_datadir}/pixmaps
|
|
mkdir -p %{buildroot}/%{_datadir}/applications
|
|
install -m 0644 token-manager.png %{buildroot}%{_datadir}/pixmaps/token-manager.png
|
|
install -m 0644 token-manager.desktop %{buildroot}%{_datadir}/applications/token-manager.desktop
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/pam.d
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/security/console.apps
|
|
install -m 0644 cpconfig-pam %{buildroot}%{_sysconfdir}/pam.d/cpconfig-amd64
|
|
install -m 0644 cpconfig-pam %{buildroot}%{_sysconfdir}/pam.d/cpconfig-ia32
|
|
install -m 0644 cpconfig-amd64 %{buildroot}%{_sysconfdir}/security/console.apps/cpconfig-amd64
|
|
install -m 0644 cpconfig-ia32 %{buildroot}%{_sysconfdir}/security/console.apps/cpconfig-ia32
|
|
|
|
%post
|
|
xdg-desktop-menu install --mode system %{_datadir}/applications/token-manager.desktop
|
|
|
|
%files
|
|
%doc README.md LICENSE.md
|
|
%{_bindir}/cpconfig-amd64
|
|
%{_bindir}/cpconfig-ia32
|
|
%{_bindir}/token-manager.py
|
|
%{_datadir}/pixmaps/token-manager.png
|
|
%{_datadir}/applications/token-manager.desktop
|
|
%{_sysconfdir}/pam.d/cpconfig-amd64
|
|
%{_sysconfdir}/pam.d/cpconfig-ia32
|
|
%{_sysconfdir}/security/console.apps/cpconfig-amd64
|
|
%{_sysconfdir}/security/console.apps/cpconfig-ia32
|
|
|
|
%changelog
|