[packages/lshell] Up to 0.11.1

arekm arekm at pld-linux.org
Fri May 8 19:13:49 CEST 2026


commit 64bc02f9d6a1154d1271d4ecdd675e57f8811496
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri May 8 19:13:39 2026 +0200

    Up to 0.11.1

 lshell.spec | 58 +++++++++++++++++++++++++++++++---------------------------
 1 file changed, 31 insertions(+), 27 deletions(-)
---
diff --git a/lshell.spec b/lshell.spec
index e931906..6df1e91 100644
--- a/lshell.spec
+++ b/lshell.spec
@@ -1,17 +1,21 @@
 Summary:	Limited Shell (lshell)
 Summary(pl.UTF-8):	Limitowana Powłoka (lshell)
 Name:		lshell
-Version:	0.9.14
+Version:	0.11.1
 Release:	1
-License:	GPL v3
+License:	GPL v3+
 Group:		Applications/Shells
-Source0:	http://downloads.sourceforge.net/lshell/%{name}-%{version}.tar.gz
-# Source0-md5:	0b8e104524a1c8ffd0777a58c1f7d8b4
-URL:		http://lshell.ghantoos.org
-BuildRequires:	python-devel
+Source0:	https://github.com/ghantoos/lshell/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
+# Source0-md5:	a109ed46c3a1931407f8dc57623ea56f
+URL:		https://github.com/ghantoos/lshell
+BuildRequires:	python3 >= 1:3.6
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.462
-Requires:	python-modules
+BuildRequires:	rpmbuild(macros) >= 2.025
+Requires:	python3-modules >= 1:3.6
+Requires:	python3-pyparsing >= 3.0.0
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -20,47 +24,47 @@ restrict users to limited sets of commands, choose to enable/disable
 any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's
 commands, implement timing restriction, and more.
 
+%description -l pl.UTF-8
+lshell jest konfigurowalną limitowaną powłoką napisaną w Pythonie,
+pozwalającą na ograniczanie użytkownikom dostępu do wybranego zestawu
+poleceń, włączanie/wyłączanie dowolnego polecenia poprzez SSH (np.
+SCP, SFTP, rsync itp.), logowanie poleceń użytkownika, ograniczenia
+czasowe i więcej.
+
 %prep
 %setup -q
 
 %build
-%{__python} setup.py build
+%py3_build_pyproject
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
-
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}
-%py_postclean
+%py3_install_pyproject
 
-rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+# move config files from %{_prefix}/etc to %{_sysconfdir}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
+mv $RPM_BUILD_ROOT%{_prefix}/etc/lshell.conf $RPM_BUILD_ROOT%{_sysconfdir}/lshell.conf
+mv $RPM_BUILD_ROOT%{_prefix}/etc/logrotate.d/lshell $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/lshell
+rmdir $RPM_BUILD_ROOT%{_prefix}/etc/logrotate.d $RPM_BUILD_ROOT%{_prefix}/etc
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post	-p <lua>
 %lua_add_etc_shells %{_bindir}/lshell
-os.execute("/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1")
 
 %preun	-p <lua>
 if arg[2] == 0 then
 	%lua_remove_etc_shells %{_bindir}/lshell
 end
 
-%postun	-p	/sbin/postshell
--/usr/sbin/fix-info-dir -c %{_infodir}
-
 %files
 %defattr(644,root,root,755)
-%doc CHANGES README
+%doc CHANGELOG.md README.md
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lshell.conf
-%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/lshell
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/logrotate.d/lshell
 %attr(755,root,root) %{_bindir}/lshell
+%{_datadir}/bash-completion/completions/lshell
 %{_mandir}/man1/lshell.1*
-%{py_sitescriptdir}/lshell.py[co]
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/%{name}-*.egg-info
-%endif
+%{py3_sitescriptdir}/lshell
+%{py3_sitescriptdir}/limited_shell-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lshell.git/commitdiff/64bc02f9d6a1154d1271d4ecdd675e57f8811496



More information about the pld-cvs-commit mailing list