Group :: Sistema/Base
RPM: pam_userpass
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: pam_userpass
Version: 1.0.2
Release: alt2
Summary: Pluggable authentication module for USER/PASS-style protocols
License: LGPL
Group: System/Base
Url: http://www.openwall.com/pam/
Packager: Dmitry V. Levin <ldv at altlinux.org>
# ftp://ftp.openwall.com/pub/projects/pam/modules/pam_userpass/pam_userpass-%version.tar.gz
Source: pam_userpass-%version.tar
# due to PAM policy.
BuildRequires(pre): libpam0-devel
# due to change in format of PAM modules requirements.
BuildRequires: rpm-build >= 0:4.0.4-alt55
%set_pam_name %name
%package -n %pam_name
Summary: Pluggable authentication module for USER/PASS-style protocols
License: LGPL
Group: System/Base
Provides: %name = %version-%release
Obsoletes: %name
%package devel
Summary: Library and header files for developing pam_userpass-aware applications
Group: Development/C
Requires: %name = %version-%release, libpam-devel
%package devel-static
Summary: Development static pam_userpass library
Group: Development/C
Requires: %name-devel = %version-%release
%description
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
%description -n %pam_name
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
%description devel
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
This package contains development library and header files
required for building pam_userpass-aware applications.
%description devel-static
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
This package contains development static library.
%prep
%setup -q
%build
%make_build \
CFLAGS="%optflags %optflags_shared -Iinclude -Werror" \
SECUREDIR=/%_lib/security \
LIBDIR=%_libdir \
LDFLAGS= \
#
%install
%make_install install \
DESTDIR=%buildroot \
SECUREDIR=/%_lib/security \
LIBDIR=%_libdir \
#
%define docdir %_docdir/%name-%version
rm -rf %buildroot%docdir
mkdir -p %buildroot%docdir/example
install -p -m644 LICENSE README %buildroot%docdir/
install -p -m644 example_userpass.c \
%buildroot%docdir/example/
install -p -m644 conf/example_userpass \
%buildroot%docdir/example/example_userpass.pamd
%post -n %pam_name -p %post_ldconfig
%postun -n %pam_name -p %postun_ldconfig
%files -n %pam_name
%_libdir/*.so.*
/%_lib/security/*
%dir %docdir
%docdir/[A-Z]*
%files devel
%_libdir/*.so
%_includedir/security/*
%dir %docdir
%docdir/example
%files devel-static
%_libdir/*.a
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.0.2
Release: alt2
Summary: Pluggable authentication module for USER/PASS-style protocols
License: LGPL
Group: System/Base
Url: http://www.openwall.com/pam/
Packager: Dmitry V. Levin <ldv at altlinux.org>
# ftp://ftp.openwall.com/pub/projects/pam/modules/pam_userpass/pam_userpass-%version.tar.gz
Source: pam_userpass-%version.tar
# due to PAM policy.
BuildRequires(pre): libpam0-devel
# due to change in format of PAM modules requirements.
BuildRequires: rpm-build >= 0:4.0.4-alt55
%set_pam_name %name
%package -n %pam_name
Summary: Pluggable authentication module for USER/PASS-style protocols
License: LGPL
Group: System/Base
Provides: %name = %version-%release
Obsoletes: %name
%package devel
Summary: Library and header files for developing pam_userpass-aware applications
Group: Development/C
Requires: %name = %version-%release, libpam-devel
%package devel-static
Summary: Development static pam_userpass library
Group: Development/C
Requires: %name-devel = %version-%release
%description
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
%description -n %pam_name
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
%description devel
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
This package contains development library and header files
required for building pam_userpass-aware applications.
%description devel-static
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
This package contains development static library.
%prep
%setup -q
%build
%make_build \
CFLAGS="%optflags %optflags_shared -Iinclude -Werror" \
SECUREDIR=/%_lib/security \
LIBDIR=%_libdir \
LDFLAGS= \
#
%install
%make_install install \
DESTDIR=%buildroot \
SECUREDIR=/%_lib/security \
LIBDIR=%_libdir \
#
%define docdir %_docdir/%name-%version
rm -rf %buildroot%docdir
mkdir -p %buildroot%docdir/example
install -p -m644 LICENSE README %buildroot%docdir/
install -p -m644 example_userpass.c \
%buildroot%docdir/example/
install -p -m644 conf/example_userpass \
%buildroot%docdir/example/example_userpass.pamd
%post -n %pam_name -p %post_ldconfig
%postun -n %pam_name -p %postun_ldconfig
%files -n %pam_name
%_libdir/*.so.*
/%_lib/security/*
%dir %docdir
%docdir/[A-Z]*
%files devel
%_libdir/*.so
%_includedir/security/*
%dir %docdir
%docdir/example
%files devel-static
%_libdir/*.a
%changelog
…
Todas as alterações você pod ver aqui