kppp-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. Name: kppp
  2. Summary: Modem dialer and ppp frontend for KDE
  3. Summary(ja): KDE 用 ダイアルアップアプリケーション
  4. Version: 4.14.3
  5. Release: 2%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Internet
  8. URL: http://www.kde.org/
  9. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  10. Source1: kppp.console
  11. Source2: kppp.pamd
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: desktop-file-utils
  14. BuildRequires: kdelibs-devel >= %{version}
  15. Requires(posttrans,postun): desktop-file-utils
  16. # consolehelper
  17. Requires: usermode-gtk
  18. Obsoletes: kppp4 < %{version}-%{release}
  19. Provides: kppp4 = %{version}-%{release}
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: Takemikaduchi
  23. %description
  24. KPPP is a dialer and front end for pppd. It allows for interactive
  25. script generation and network setup. It will automate the dialing in
  26. process to your ISP while letting you conveniently monitor the
  27. entire process.
  28. Once connected KPPP will provide a rich set of statistics and keep
  29. track of the time spent online for you.
  30. %prep
  31. %setup -q
  32. %build
  33. mkdir -p %{_target_platform}
  34. pushd %{_target_platform}
  35. %cmake \
  36. -DCMAKE_BUILD_TYPE=release \
  37. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  38. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  39. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  40. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  41. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  42. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  43. ..
  44. popd
  45. #make -C %{_target_platform}/doc
  46. #make %{?_smp_mflags} -C %{_target_platform}
  47. make -C %{_target_platform}
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  51. # Run kppp through consolehelper
  52. mkdir -p $RPM_BUILD_ROOT%{_sbindir} \
  53. $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps \
  54. $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
  55. chmod 0755 $RPM_BUILD_ROOT%{_bindir}/kppp
  56. mv $RPM_BUILD_ROOT%{_bindir}/kppp $RPM_BUILD_ROOT%{_sbindir}
  57. ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/kppp
  58. install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/kppp
  59. install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/kppp
  60. %clean
  61. rm -rf $RPM_BUILD_ROOT
  62. %post
  63. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  64. %posttrans
  65. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  66. update-desktop-database -q &> /dev/null ||:
  67. %postun
  68. if [ $1 -eq 0 ] ; then
  69. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  70. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  71. update-desktop-database -q &> /dev/null ||:
  72. fi
  73. %files
  74. %defattr(-,root,root,-)
  75. %doc AUTHORS COPYING COPYING.DOC COPYING.LIB ChangeLog
  76. %doc README README.ModemDB
  77. %config /etc/security/console.apps/kppp
  78. %config /etc/pam.d/kppp
  79. %{_bindir}/kppp
  80. %{_bindir}/kppplogview
  81. %{_sbindir}/kppp
  82. %{_datadir}/applications/kde4/Kppp.desktop
  83. %{_datadir}/applications/kde4/kppplogview.desktop
  84. %{_datadir}/dbus-1/interfaces/org.kde.kppp.xml
  85. %{_datadir}/kde4/apps/kppp
  86. %{_datadir}/icons/hicolor/*/*/*
  87. %{_docdir}/HTML/en/kppp
  88. %changelog
  89. * Fri Jul 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2
  90. - rebuild with gcc-5.4.0
  91. * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
  92. - new upstream release
  93. * Tue May 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
  94. - new upstream release
  95. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  96. - new upstream release
  97. * Mon Dec 16 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  98. - new upstream release
  99. * Sun Sep 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  100. - initial build