- Version update to 0.93: * upstream moved to github * Drop support for versions of nettle older than 2014 * Further v4 token work * fixes in README * Add --both option to print current and next token * Support for v4 token decode * Remove bashisms (Alon Bar-Lev) OBS-URL: https://build.opensuse.org/request/show/1113400 OBS-URL: https://build.opensuse.org/package/show/security/stoken?expand=0&rev=14
125 lines
3.7 KiB
RPMSpec
125 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package stoken
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define soname libstoken1
|
|
Name: stoken
|
|
Version: 0.93
|
|
Release: 0
|
|
Summary: Token code generator compatible with RSA SecurID 128-bit (AES) token
|
|
License: BSD-3-Clause AND LGPL-2.0-or-later
|
|
Group: Productivity/Security
|
|
URL: https://github.com/stoken-dev/stoken
|
|
Source: https://github.com/stoken-dev/stoken/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: libtomcrypt-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(nettle)
|
|
|
|
%description
|
|
Software Token for Linux/UNIX. It's a token code generator compatible with RSA
|
|
SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or
|
|
endorsed by RSA Security.
|
|
|
|
This package contains the command line tool for %{name}.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{soname} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Software Token for Linux/UNIX. It's a token code generator compatible with RSA
|
|
SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or
|
|
endorsed by RSA Security.
|
|
|
|
This package provides the development files for %{name}.
|
|
|
|
%package -n %{soname}
|
|
Summary: Libraries for %{name}
|
|
Group: System/Libraries
|
|
|
|
%description -n %{soname}
|
|
Software Token for Linux/UNIX. It's a token code generator compatible with RSA
|
|
SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or
|
|
endorsed by RSA Security.
|
|
|
|
This package contains %{name} libraries.
|
|
|
|
%package gui
|
|
Summary: Graphical interface program for %{name}
|
|
Group: Productivity/Security
|
|
Requires: %{soname} = %{version}-%{release}
|
|
|
|
%description gui
|
|
Software Token for Linux/UNIX. It's a token code generator compatible with RSA
|
|
SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or
|
|
endorsed by RSA Security.
|
|
|
|
This package contains the graphical interface program for %{name}.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
autoreconf -fvi
|
|
%configure \
|
|
--with-gtk \
|
|
--disable-static
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gui.desktop
|
|
|
|
# Remove stuff we don't need
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
rm -fr %{buildroot}%{_datarootdir}/doc/%{name}
|
|
|
|
%post -n %{soname} -p /sbin/ldconfig
|
|
%postun -n %{soname} -p /sbin/ldconfig
|
|
|
|
%files -n %{soname}
|
|
%license COPYING.LIB
|
|
%doc CHANGES README.md TODO
|
|
%{_libdir}/*.so.*
|
|
|
|
%files
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%files gui
|
|
%dir %{_datadir}/%{name}
|
|
%{_bindir}/%{name}-gui
|
|
%{_datadir}/applications/%{name}-gui.desktop
|
|
%{_datadir}/applications/%{name}-gui-small.desktop
|
|
%{_datadir}/%{name}/*.ui
|
|
%{_datadir}/pixmaps/%{name}-gui.png
|
|
%{_mandir}/man1/%{name}-gui.1%{?ext_man}
|
|
|
|
%files devel
|
|
%{_includedir}/%{name}.h
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%changelog
|