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