Репозитории ALT
5.1: | 20050616-alt3 |
4.1: | 20050616-alt3 |
4.0: | 20050616-alt3 |
3.0: | 20050201-alt1 |
Группа :: Система/Основа
Пакет: openpam
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: openpam
Version: 20050201
Release: alt1
Summary: Pluggable Authentication Modules Library
License: BSD
Group: System/Base
Url: http://openpam.sourceforge.net/
# OpenPAM library soname suffix.
%define _pam_name_suffix 2
# OpenPAM library package name, used for tracking package dependencies.
%define libpam libpam%{_pam_name_suffix}
%def_disable static
Source: %name-%version.tar.bz2
Source1: %name.macros
Source2: _pam_macros.h
Source3: pam_misc.h
Source4: PAM-Policy.ALT
Patch1: openpam-20030601-alt-openpam_dynamic.patch
Patch2: openpam-20040210-alt-format.patch
Patch3: openpam-20030609-alt-openpam_module_log.patch
Patch4: openpam-20030609-alt-ENTERP.patch
Patch5: openpam-20030609-alt-openpam_dispatch-debug.patch
Patch6: openpam-20040210-alt-su-fix-warnings.patch
Patch7: openpam-20050201-alt-pam_types.patch
Requires: %libpam = %version-%release
%package -n %libpam
Summary: Shared libraries for running OpenPAM-based software
Group: System/Libraries
PreReq: pam-common >= 1.1
Provides: libpam = %version-%release
Provides: libpam(include)
%package -n %libpam-devel
Summary: Libraries and header files for developing OpenPAM-aware software
Group: Development/C
Provides: libpam-devel = %version-%release
Requires: %libpam = %version-%release
Conflicts: libpam0-devel, libpam-devel < 0:0.75-alt21
%package -n %libpam-devel-static
Summary: Static libraries for developing OpenPAM-aware software
Group: Development/C
Provides: libpam-devel-static = %version-%release
Requires: %libpam-devel = %version-%release
Conflicts: libpam0-devel-static, libpam-devel-static < 0:0.75-alt21
%description
The Pluggable Authentication Modules (PAM) library abstracts a number of
common authentication-related operations and provides a framework for
dynamically loaded modules that implement these operations in various
ways.
%description -n %libpam
The Pluggable Authentication Modules (PAM) library abstracts a number of
common authentication-related operations and provides a framework for
dynamically loaded modules that implement these operations in various
ways.
This package contains shared libraries required for running both
OpenPAM-aware applications and modules for use with OpenPAM.
%description -n %libpam-devel
The Pluggable Authentication Modules (PAM) library abstracts a number of
common authentication-related operations and provides a framework for
dynamically loaded modules that implement these operations in various
ways.
This package contains header files and development libraries used for
building both OpenPAM-aware applications and modules for use with OpenPAM.
%description -n %libpam-devel-static
The Pluggable Authentication Modules (PAM) library abstracts a number of
common authentication-related operations and provides a framework for
dynamically loaded modules that implement these operations in various
ways.
This package contains static libraries used for building statically
linked OpenPAM-aware applications for use with OpenPAM.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
%if_enabled debug
%add_optflags -DDEBUG
%endif
sh -ex ./autogen.sh
%configure \
--libdir=/%_lib \
%{subst_enable static} \
--with-modules-dir=/%_lib/security \
--disable-unversioned-modules \
#
%make_build
%install
%make_install install DESTDIR=$RPM_BUILD_ROOT
# Install _pam_macros.h and pam_misc.h
for n in _pam_macros.h pam_misc.h; do
[ ! -f "$RPM_BUILD_ROOT%_includedir/security/$n" ]
%__install -p -m644 "$RPM_SOURCE_DIR/$n" $RPM_BUILD_ROOT%_includedir/security/
done
# Relocate development libraries from /%_lib/ to %_libdir/.
%__mkdir_p $RPM_BUILD_ROOT%_libdir
%__mv $RPM_BUILD_ROOT/%_lib/*.*a $RPM_BUILD_ROOT%_libdir/
for f in $RPM_BUILD_ROOT/%_lib/libpam*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__ln_s ../../%_lib/"$t" "$RPM_BUILD_ROOT%_libdir/${f##*/}"
%__rm -f "$f"
done
%__chmod a-x $RPM_BUILD_ROOT/%_lib{,/security}/*.so.*
%add_findprov_lib_path /%_lib/security
# OpenPAM-specific rpm macros.
%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/rpm/macros.d/pam
# Documentation
%define docdir %_docdir/OpenPAM-%version
%__rm -rf $RPM_BUILD_ROOT%docdir
%__mkdir_p $RPM_BUILD_ROOT%docdir
%__install -p -m644 %SOURCE4 CREDITS LICENSE README RELNOTES HISTORY \
$RPM_BUILD_ROOT%docdir/
bzip2 -9 $RPM_BUILD_ROOT%docdir/HISTORY
%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d
for n in libpam{,-devel{,-static}}; do
echo $n >"$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%libpam${n#libpam}"
done
%post -n %libpam -p %post_ldconfig
%postun -n %libpam -p %postun_ldconfig
%files -n %libpam
%config %_sysconfdir/buildreqs/packages/substitute.d/%libpam
/%_lib/lib*.so.*
/%_lib/security/pam_deny.so.*
/%_lib/security/pam_permit.so.*
%docdir
%files -n %libpam-devel
%config %_sysconfdir/buildreqs/packages/substitute.d/%libpam-devel
%config %_sysconfdir/rpm/macros.d/pam
%_libdir/lib*.so
%_includedir/*
%_man3dir/*
%if_enabled static
%files -n %libpam-devel-static
%config %_sysconfdir/buildreqs/packages/substitute.d/%libpam-devel-static
%_libdir/lib*.a
%endif # enabled static
%changelog
…
Полный changelog можно просмотреть здесь
Version: 20050201
Release: alt1
Summary: Pluggable Authentication Modules Library
License: BSD
Group: System/Base
Url: http://openpam.sourceforge.net/
# OpenPAM library soname suffix.
%define _pam_name_suffix 2
# OpenPAM library package name, used for tracking package dependencies.
%define libpam libpam%{_pam_name_suffix}
%def_disable static
Source: %name-%version.tar.bz2
Source1: %name.macros
Source2: _pam_macros.h
Source3: pam_misc.h
Source4: PAM-Policy.ALT
Patch1: openpam-20030601-alt-openpam_dynamic.patch
Patch2: openpam-20040210-alt-format.patch
Patch3: openpam-20030609-alt-openpam_module_log.patch
Patch4: openpam-20030609-alt-ENTERP.patch
Patch5: openpam-20030609-alt-openpam_dispatch-debug.patch
Patch6: openpam-20040210-alt-su-fix-warnings.patch
Patch7: openpam-20050201-alt-pam_types.patch
Requires: %libpam = %version-%release
%package -n %libpam
Summary: Shared libraries for running OpenPAM-based software
Group: System/Libraries
PreReq: pam-common >= 1.1
Provides: libpam = %version-%release
Provides: libpam(include)
%package -n %libpam-devel
Summary: Libraries and header files for developing OpenPAM-aware software
Group: Development/C
Provides: libpam-devel = %version-%release
Requires: %libpam = %version-%release
Conflicts: libpam0-devel, libpam-devel < 0:0.75-alt21
%package -n %libpam-devel-static
Summary: Static libraries for developing OpenPAM-aware software
Group: Development/C
Provides: libpam-devel-static = %version-%release
Requires: %libpam-devel = %version-%release
Conflicts: libpam0-devel-static, libpam-devel-static < 0:0.75-alt21
%description
The Pluggable Authentication Modules (PAM) library abstracts a number of
common authentication-related operations and provides a framework for
dynamically loaded modules that implement these operations in various
ways.
%description -n %libpam
The Pluggable Authentication Modules (PAM) library abstracts a number of
common authentication-related operations and provides a framework for
dynamically loaded modules that implement these operations in various
ways.
This package contains shared libraries required for running both
OpenPAM-aware applications and modules for use with OpenPAM.
%description -n %libpam-devel
The Pluggable Authentication Modules (PAM) library abstracts a number of
common authentication-related operations and provides a framework for
dynamically loaded modules that implement these operations in various
ways.
This package contains header files and development libraries used for
building both OpenPAM-aware applications and modules for use with OpenPAM.
%description -n %libpam-devel-static
The Pluggable Authentication Modules (PAM) library abstracts a number of
common authentication-related operations and provides a framework for
dynamically loaded modules that implement these operations in various
ways.
This package contains static libraries used for building statically
linked OpenPAM-aware applications for use with OpenPAM.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
%if_enabled debug
%add_optflags -DDEBUG
%endif
sh -ex ./autogen.sh
%configure \
--libdir=/%_lib \
%{subst_enable static} \
--with-modules-dir=/%_lib/security \
--disable-unversioned-modules \
#
%make_build
%install
%make_install install DESTDIR=$RPM_BUILD_ROOT
# Install _pam_macros.h and pam_misc.h
for n in _pam_macros.h pam_misc.h; do
[ ! -f "$RPM_BUILD_ROOT%_includedir/security/$n" ]
%__install -p -m644 "$RPM_SOURCE_DIR/$n" $RPM_BUILD_ROOT%_includedir/security/
done
# Relocate development libraries from /%_lib/ to %_libdir/.
%__mkdir_p $RPM_BUILD_ROOT%_libdir
%__mv $RPM_BUILD_ROOT/%_lib/*.*a $RPM_BUILD_ROOT%_libdir/
for f in $RPM_BUILD_ROOT/%_lib/libpam*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__ln_s ../../%_lib/"$t" "$RPM_BUILD_ROOT%_libdir/${f##*/}"
%__rm -f "$f"
done
%__chmod a-x $RPM_BUILD_ROOT/%_lib{,/security}/*.so.*
%add_findprov_lib_path /%_lib/security
# OpenPAM-specific rpm macros.
%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/rpm/macros.d/pam
# Documentation
%define docdir %_docdir/OpenPAM-%version
%__rm -rf $RPM_BUILD_ROOT%docdir
%__mkdir_p $RPM_BUILD_ROOT%docdir
%__install -p -m644 %SOURCE4 CREDITS LICENSE README RELNOTES HISTORY \
$RPM_BUILD_ROOT%docdir/
bzip2 -9 $RPM_BUILD_ROOT%docdir/HISTORY
%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d
for n in libpam{,-devel{,-static}}; do
echo $n >"$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%libpam${n#libpam}"
done
%post -n %libpam -p %post_ldconfig
%postun -n %libpam -p %postun_ldconfig
%files -n %libpam
%config %_sysconfdir/buildreqs/packages/substitute.d/%libpam
/%_lib/lib*.so.*
/%_lib/security/pam_deny.so.*
/%_lib/security/pam_permit.so.*
%docdir
%files -n %libpam-devel
%config %_sysconfdir/buildreqs/packages/substitute.d/%libpam-devel
%config %_sysconfdir/rpm/macros.d/pam
%_libdir/lib*.so
%_includedir/*
%_man3dir/*
%if_enabled static
%files -n %libpam-devel-static
%config %_sysconfdir/buildreqs/packages/substitute.d/%libpam-devel-static
%_libdir/lib*.a
%endif # enabled static
%changelog
…
Полный changelog можно просмотреть здесь