Репозиторий Sisyphus
Последнее обновление: 18 ноября 2017 | Пакетов: 17918 | Посещений: 10395168
en ru br
Репозитории ALT

Группа :: Графические оболочки/KDE
Пакет: kf5-kwallet-pam

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define rname kwallet-pam

Name: kf5-%rname
Version: 5.11.3
Release: alt1%ubt
%K5init altplace

Group: Graphical desktop/KDE
Summary: KDE Workspace 5 PAM KWallet integration
Url: http://www.kde.org
License: GPLv2+ / LGPLv2+

Source: %rname-%version.tar
Patch1: alt-defaults.patch

# Automatically added by buildreq on Thu Aug 27 2015 (-bi)

# optimized out: cmake-modules elfutils libgpg-error libgpg-error-devel libstdc++-devel python-base python3 python3-base ruby ruby-stdlibs
#BuildRequires: cmake gcc-c++ glibc-devel-static libgcrypt-devel libpam-devel rpm-build-python3 rpm-build-ruby
BuildRequires(pre): rpm-build-kf5 rpm-build-ubt
BuildRequires: cmake gcc-c++ glibc-devel extra-cmake-modules qt5-base-devel libgcrypt-devel libpam-devel

%package -n pam0_kwallet
Summary: KDE4 PAM KWallet integration
Group: System/Base
Requires: /usr/bin/socat
%description -n pam0_kwallet
KDE4 PAM KWallet integration

%package -n pam0_kwallet5
Summary: KDE5 PAM KWallet integration
Group: System/Base
Requires: /usr/bin/socat
%description -n pam0_kwallet5
KDE5 PAM KWallet integration



%description
%summary.

%prep
%setup -n %rname-%version
%patch1 -p1

mkdir kde4
mv c* C* p* kde4
cp -ar kde4 kde5

%build
pushd kde4
%K5build -DKWALLET4=1 -DCMAKE_INSTALL_LIBDIR=/%_lib
popd
pushd kde5
%K5build -DKWALLET5=1 -DCMAKE_INSTALL_LIBDIR=/%_lib
popd

%install
for d in kde4 kde5; do
pushd $d
%K5install
popd
done

# fix libs path

if [  -d %buildroot/%_libdir/security ] ; then
   mkdir -p %buildroot/%_lib/security
   mv %buildroot/%_libdir/security/* %buildroot/%_lib/security/
fi

# install pam_kwallet_init

mkdir -p %buildroot/%_K5libexecdir
cat >%buildroot/%_K5libexecdir/pam_kwallet_init <<__EOF__
#!/bin/sh
if test -n "\$PAM_KWALLET_LOGIN" ; then
   env | socat STDIN UNIX-CONNECT:\$PAM_KWALLET_LOGIN
fi
__EOF__
chmod 0755 %buildroot/%_K5libexecdir/pam_kwallet_init

cat >%buildroot/%_K5libexecdir/pam_kwallet5_init <<__EOF__
#!/bin/sh
if test -n "\$PAM_KWALLET5_LOGIN" ; then
   env | socat STDIN UNIX-CONNECT:\$PAM_KWALLET5_LOGIN
fi
__EOF__
chmod 0755 %buildroot/%_K5libexecdir/pam_kwallet5_init

# install pam_kwallet_init.desktop

cp -ar %buildroot/%_K5start/pam_kwallet_init.desktop \
   %buildroot/%_K5start/pam_kwallet5_init.desktop
sed -i '/^Exec=/s|/pam_kwallet_init|/pam_kwallet5_init|' \
   %buildroot/%_K5start/pam_kwallet5_init.desktop

%files -n pam0_kwallet
%doc kde4/COPYING.LIB
%_pam_modules_dir/pam_kwallet.so
%_K5libexecdir/pam_kwallet_init
%_K5start/pam_kwallet_init.desktop

%files -n pam0_kwallet5
%doc kde5/COPYING.LIB
%_pam_modules_dir/pam_kwallet5.so
%_K5libexecdir/pam_kwallet5_init
%_K5start/pam_kwallet5_init.desktop

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin