kuser-vl.spec 3.3 KB

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