| 1 | %define kdever 4.4.0 |
|---|
| 2 | |
|---|
| 3 | Name: kio_gopher |
|---|
| 4 | Summary: Gopher KIO slave for Konqueror |
|---|
| 5 | Version: 0.1.3 |
|---|
| 6 | Release: 4%{?_dist_release} |
|---|
| 7 | |
|---|
| 8 | Group: System Environment/Libraries |
|---|
| 9 | License: GPLv2+ |
|---|
| 10 | URL: http://kgopher.berlios.de/ |
|---|
| 11 | |
|---|
| 12 | Source0: ftp://ftp.kde.org/pub/kde/stable/%{kdever}/src/extragear/%{name}-%{version}-kde%{kdever}.tar.bz2 |
|---|
| 13 | |
|---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 15 | BuildRequires: kdelibs4-devel >= %{kdever} |
|---|
| 16 | BuildRequires: cmake |
|---|
| 17 | BuildRequires: gettext |
|---|
| 18 | |
|---|
| 19 | #{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} } |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | This KIO slave adds support for the Gopher protocol to Konqueror. |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | %prep |
|---|
| 26 | %setup -q -n %{name}-%{version}-kde%{kdever} |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | %build |
|---|
| 30 | mkdir -p %{_target_platform} |
|---|
| 31 | pushd %{_target_platform} |
|---|
| 32 | %{cmake} \ |
|---|
| 33 | -DCMAKE_BUILD_TYPE=release \ |
|---|
| 34 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
|---|
| 35 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
|---|
| 36 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
|---|
| 37 | .. |
|---|
| 38 | popd |
|---|
| 39 | |
|---|
| 40 | make %{?_smp_mflags} -C %{_target_platform} |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | %install |
|---|
| 44 | rm -rf %{buildroot} |
|---|
| 45 | mkdir %{buildroot} |
|---|
| 46 | make install DESTDIR=%{buildroot} -C %{_target_platform} |
|---|
| 47 | |
|---|
| 48 | %find_lang kio_gopher |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | %clean |
|---|
| 52 | rm -rf %{buildroot} |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | %files -f kio_gopher.lang |
|---|
| 56 | %defattr(-,root,root,-) |
|---|
| 57 | %doc README COPYING BUGS |
|---|
| 58 | # FAQ is only about installation problems which shouldn't affect the RPM. |
|---|
| 59 | %{_libdir}/kde4/kio_gopher.so |
|---|
| 60 | %{_datadir}/kde4/services/gopher.protocol |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | %changelog |
|---|
| 64 | * Sun Jan 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.3-4 |
|---|
| 65 | - Initial build for Vine Linux |
|---|
| 66 | |
|---|
| 67 | * Sat Feb 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.3-3 |
|---|
| 68 | - new tarball from 4.4.0 extragear, contains updates translations |
|---|
| 69 | |
|---|
| 70 | * Wed Sep 16 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.3-2 |
|---|
| 71 | - drop postfix tag from Release |
|---|
| 72 | |
|---|
| 73 | * Tue Sep 15 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.3-1.kde4.3.1 |
|---|
| 74 | - Initial Fedora package |
|---|