Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 0f6596994e95aaaac4fdbc7d8522d35c > files > 2

lshell-0.9.14-1.fc13.src.rpm

%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif


Name:           lshell
Version:        0.9.14
Release:        1%{?dist}
Summary:        Python-based limited Shell

Group:          Applications/System
License:        GPLv3+
URL:            http://ghantoos.org/limited-shell-lshell
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  python-devel


%description
lshell provides a limited shell configured per user. The configuration
is done quite simply using a configuration file.


%prep
%setup -q
#Fix permission
chmod -x CHANGES
#Remove shebang
sed -i -e '/^#!\//, 1d' lshellmodule/lshell.py


%build
%{__python} setup.py build


%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
#doc files at the wrong place
rm %{buildroot}%{_defaultdocdir}/lshell/{CHANGES,COPYING,README}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc CHANGES COPYING README
%{_mandir}/man*/*.*
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{python_sitelib}/lshell.py*
%{python_sitelib}/%{name}*.egg-info


%changelog
* Wed Nov 10 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.14-1
- Updated to new upstream version 0.9.14

* Sun Oct 17 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.13-1
- Updated to new upstream version 0.9.13

* Fri Jul 30 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9.12-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Sat Jul 03 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.12-2
- Removed setuptools
- Marked log file as config

* Sun Jun 06 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.12-1
- Added logging support
- Updated macros
- Updated to new upstream version 0.9.12

* Mon Mar 15 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.10-1
- Updated to new upstream version 0.9.10

* Sun Mar 07 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.9-1
- Removed compression format from man page
- Updated to new upstream version 0.9.9

* Sun Dec 20 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9.8-1
- Updated to new upstream version 0.9.8

* Thu Nov 26 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9.7-1
- Updated to new upstream version 0.9.7

* Fri Aug 14 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9.5-1
- Updated to new upstream version

* Sun Jul 07 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9.4-1
- Updated to new upstream version 0.9.4

* Wed Apr 15 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9.3-1
- Initial package for Fedora