File pam-python.spec of Package pam-python

Name:           pam-python
BuildRequires:  pam-devel python-sphinx
License:        AGPL-3.0-or-later
Group:          Productivity/Security
Autoreqprov:    on
Version:        1.0.8
Release:        0 
Summary:        A PAM Module 
URL:            http://pam-python.sourceforge.net/
Source:         pam-python-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build 
BuildRequires:  python-devel
#packager:	Manfred Schmid 

%description
pam_python is a PAM module that runs the Python interpreter, and so allows PAM modules to be written in Python.

Pam-python is copyright © 2007-2012,2014,2016,2019,2020 Russell Stuart. It is licensed under the GNU Affero General Public License.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The copyright holders grant you an additional permission under Section 7 of the GNU Affero General Public License, version 3, exempting you from the requirement in Section 6 of the GNU General Public License, version 3, to accompany Corresponding Source with Installation Information for the Program or any work based on the Program. You are still required to comply with all other Section 6 requirements to provide Corresponding Source.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. 

%prep
%setup

%build
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
install --mode=755 --strip src/pam_python.so $RPM_BUILD_ROOT/%{_lib}/security


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/%{_lib}/security/pam_python.so

%changelog
* Wed Oct 21 2021 Manfred Schmid <mannischmid@gmail.com> 1.0.8
- Initial RPM release

openSUSE Build Service is sponsored by