File filezilla.spec of Package filezilla

#
# spec file for package filezilla
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           filezilla
BuildRequires:  fdupes flac-devel gcc-c++ gtk2-devel id3lib-devel libvorbis-devel
BuildRequires:  cppunit gnutls-devel libidn-devel update-desktop-files wxWidgets-wxcontainer-devel
BuildRequires:  dbus-1-devel tinyxml-devel xdg-utils
PreReq:         update-desktop-files
Summary:        A GUI FTP and SFTP Client
Version:        3.3.4.1
Release:        2
Provides:       FileZilla = %{version}
Obsoletes:      FileZilla < %{version}
License:        GPLv2+
Url:            http://filezilla-project.org/
Group:          Productivity/Networking/Ftp/Clients
Source0:        http://prdownloads.sourceforge.net/filezilla/FileZilla_%{version}_src.tar.bz2
Source1:        %{name}-rpmlintrc
Source2:        filezilla-3.3.4.1.de.po
Patch0:         putty-no_DATE_and_TIME_.patch
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires

%description
FileZilla is a modern and powerful FTP client for Windows and Linux.
FileZilla development focuses on high usability while also supporting
as many useful features as possible. FileZilla is "Open Source" under
the GPL license.

Some of the main features are: * Continuing interrupted
   up-/downloads

* Managing different FTP sites

* Modifiable Commands

* Keep-Alive-System

* Timeout detection

* Firewall support

* SOCKS4/5 and HTTP 1.1 proxy support

* SSL support (secure connections)

* SFTP support

* Upload/Download queue

* Drag&Drop support



Authors:
--------
    Tim Kosse <tim.kosse@gmx.de>



%lang_package
%prep
%setup -q
%patch0
cd locales
cp %{S:2} de.po
# Fix invalid translation locales:
for LOC in\
 bg_BG\
 ca_ES@valencia\
 cs_CZ\
 da_DK\
 et_EE\
 eu_ES\
 fa_IR\
 fi_FI\
 gl_ES\
 he_IL\
 hu_HU\
 id_ID\
 ja_JP\
 km_KH\
 ko_KR\
 lt_LT\
 lv_LV\
 mk_MK\
 nb_NO\
 nn_NO\
 pl_PL\
 pt_PT\
 ro_RO\
 sl_SI\
 sk_SK\
 th_TH\
 uk_UA\
 vi_VN\
 ; do
	mv -iv $LOC.po ${LOC/_??}.po
done

%build
#autoreconf -f -i
export CFLAGS="%optflags -fstack-protector"
export CXXFLAGS="%optflags -fstack-protector"
%configure
make %{?jobs:-j%jobs}

%check
make check

%install
%makeinstall
%suse_update_desktop_file %name
%fdupes %{buildroot}%{_datadir}
%{find_lang} %name

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc README NEWS
%{_bindir}/%name
%{_bindir}/fzsftp
%{_bindir}/fzputtygen
%{_datadir}/%name
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/filezilla.*
%{_mandir}/man1/fzputtygen.*
%{_mandir}/man1/fzsftp.*
%{_mandir}/man5/fzdefaults.xml.*

%files -f %{name}.lang lang
%defattr(-, root, root)

%changelog
openSUSE Build Service is sponsored by