kuser-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. Name: kuser
  2. Summary: User manager for KDE
  3. Summary(ja): KDE 用ユーザーマネージャー
  4. Version: 4.14.3
  5. Release: 1%{?_dist_release}
  6. License: GPLv2, GPLv3
  7. Group: Applications/Administration
  8. URL: http://www.kde.org/
  9. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  10. Source1: kuser.pam
  11. Source2: kuser.pamd
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: desktop-file-utils
  14. BuildRequires: kdelibs-devel >= %{version}
  15. BuildRequires: kdepimlibs-devel >= %{version}
  16. Requires(posttrans,postun): desktop-file-utils
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: Takemikaduchi
  20. %description
  21. Kuser allows you to manage users and groups on your system.
  22. %prep
  23. %setup -q
  24. %build
  25. mkdir -p %{_target_platform}
  26. pushd %{_target_platform}
  27. %cmake \
  28. -DCMAKE_BUILD_TYPE=release \
  29. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  30. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  31. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  32. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  33. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  34. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  35. ..
  36. popd
  37. make %{?_smp_mflags} -C %{_target_platform}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  41. # Put in some sane defaults
  42. mkdir -p $RPM_BUILD_ROOT%{_datadir}/config
  43. cat >$RPM_BUILD_ROOT%{_datadir}/config/kuserrc <<EOF
  44. [template]
  45. copySkel=true
  46. createHomeDir=true
  47. homeBase=/home
  48. shell=/bin/bash
  49. userPrivateGroup=true
  50. EOF
  51. # Run kuser through consolehelper
  52. mkdir -p $RPM_BUILD_ROOT/usr/sbin
  53. mv $RPM_BUILD_ROOT/usr/bin/kuser $RPM_BUILD_ROOT/usr/sbin
  54. ln -s consolehelper $RPM_BUILD_ROOT/usr/bin/kuser
  55. # Install PAM files
  56. mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
  57. mkdir -p $RPM_BUILD_ROOT/etc/pam.d
  58. install -c -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/security/console.apps/kuser
  59. install -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/kuser
  60. # delete files conflict with system-tools-backends
  61. rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
  62. %post
  63. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  64. %posttrans
  65. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  66. %postun
  67. if [ $1 -eq 0 ] ; then
  68. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  69. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  70. fi
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT
  73. %files
  74. %defattr(-,root,root)
  75. %doc AUTHORS COPYING.GPL-2 COPYING.GPL-3
  76. %doc COPYING.DOC ChangeLog
  77. %{_sysconfdir}/pam.d/%{name}
  78. %{_sysconfdir}/security/console.apps/%{name}
  79. %{_bindir}/%{name}
  80. %{_sbindir}/%{name}
  81. %{_datadir}/applications/kde4/%{name}.desktop
  82. %{_datadir}/config/kuserrc
  83. %{_datadir}/config.kcfg/kuser.kcfg
  84. %{_datadir}/icons/hicolor/*/*/*
  85. %{_datadir}/kde4/apps/%{name}
  86. %{_docdir}/HTML/en/%{name}
  87. %changelog
  88. * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
  89. - new upstream release
  90. * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
  91. - new upstream release
  92. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  93. - new upstream release
  94. * Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  95. - new upstream release
  96. * Mon Sep 16 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  97. - initial build