File kftpgrabber.spec of Package kftpgrabber
#
# spec file for package kftpgrabber (Version 0.8.1)
#
# Copyright 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
# Copyright (c) 2010 Kyrill Detinov
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
%define _prefix /opt/kde3
Name: kde3-kftpgrabber
Version: 0.8.1
Release: 0
License: GPL-2.0
Summary: Graphical FTP Client
Group: Productivity/Networking/Ftp/Clients
URL: http://www.kftp.org/
BuildRequires: kdebase3-devel
%if 0%{?suse_version} >= 1500
BuildRequires: libopenssl-1_0_0-devel -libopenssl-devel -openssl-1_1
%endif
Source0: kftpgrabber-%{version}.tar.bz2
Patch0: kftpgrabber-0.8.1-bufferoverflow.patch
Patch1: kftpgrabber-0.8.1-no-return-in-nonvoid-function.patch
Patch2: kftpgrabber-0.8.1-gcc44.patch
# PATCH-FIX-UPSTREAM kftpgrabber-0.8.1-comment.patch lazy.kent.syse@gmail.com
# -- remove comment - it breaks compilation
Patch3: kftpgrabber-0.8.1-comment.patch
# PATCH-FIX-UPSTREAM kftpgrabber-0.8.1-openssl1.patch lazy.kent.syse@gmail.com
# -- enable build with openssl 1.0
Patch4: kftpgrabber-0.8.1-openssl1.patch
# PATCH-FEATURE-UPSTREAM kftpgrabber-0.8.1-encoding.patch
# -- set default encoding to UTF8
Patch5: kftpgrabber-0.8.1-encoding.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KFTPgrabber is a graphical FTP client for the K Desktop Environment.
It implements many features required for usable FTP interaction.
Authors:
--------
Jernej Kos <kostko@unimatrix-one.org>
Markus Brffer
%prep
%setup -q -n kftpgrabber-%{version}
%patch -P 0
%patch -P 1
%patch -P 2
%patch -P 3
%patch -P 4
%patch -P 5
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
%{__make} %{?_smp_mflags}
%install
. /etc/opt/kde3/common_options
%{makeinstall}
#removing devel files
%{__rm} %{buildroot}%{_libdir}/libkftpinterfaces.{la,so}
%{__rm} -rf %{buildroot}%{_includedir}
kde_post_install
%find_lang kftpgrabber
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files -f kftpgrabber.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/kftpgrabber
%{_libdir}/libkftpinterfaces.*
%{_libdir}/kde3/kftpimportplugin*
%{_datadir}/applications/kde/kftpgrabber.desktop
%{_datadir}/apps/kftpgrabber
%{_datadir}/config.kcfg/kftpgrabber.kcfg
%{_datadir}/icons/hicolor/*/apps/kftpgrabber.png
%{_datadir}/services/*.desktop
%{_datadir}/servicetypes/*.desktop
%dir %{_datadir}/locale/br
%dir %{_datadir}/locale/br/LC_MESSAGES
%dir %{_datadir}/locale/ka
%dir %{_datadir}/locale/ka/LC_MESSAGES
%dir %{_datadir}/locale/cy/LC_MESSAGES
%dir %{_datadir}/locale/ga
%dir %{_datadir}/locale/ga/LC_MESSAGES
%dir %{_datadir}/locale/rw
%dir %{_datadir}/locale/rw/LC_MESSAGES
%dir %{_datadir}/locale/cy
%changelog
# kate: space-indent on; indent-width 4;