summaryrefslogtreecommitdiff
path: root/filezilla.spec
blob: 554210d7b1d7daa95b7510f85491063464debb88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Enable (1 = enabled/0 = disabled) if configure regeneration etc. is required.
%define run_autogen 1

# Needs not yet packaged storj/uplink-c
%bcond_with storj

Name:         filezilla
Version:      3.67.0
Release:      1%{?dist}
Summary:      FTP, FTPS and SFTP client
License:      GPL-2.0-or-later
URL:          https://filezilla-project.org/
Source0:      https://download.filezilla-project.org/FileZilla_%{version}_src.tar.xz

%if 0%{?run_autogen}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%endif
BuildRequires: boost-devel
BuildRequires: boost-regex
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: glib2-devel
BuildRequires: cppunit-devel >= 1.13.0
BuildRequires: dbus-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: gnutls-devel >= 2.8.3
BuildRequires: libappstream-glib
BuildRequires: libfilezilla-devel >= 0.35.0
BuildRequires: libidn-devel
%if %{with storj}
BuildRequires: golang-storj-uplink-c-devel
%endif
BuildRequires: libstorj-devel
BuildRequires: nettle-devel
BuildRequires: pugixml-devel >= 1.7
BuildRequires: sqlite-devel
BuildRequires: wxGTK3-devel
BuildRequires: xdg-utils
BuildRequires: make

Requires: xdg-utils

%description
FileZilla is a FTP, FTPS and SFTP client for Linux with a lot of features.
- Supports FTP, FTP over SSL/TLS (FTPS) and SSH File Transfer Protocol (SFTP)
- Cross-platform
- Available in many languages
- Supports resume and transfer of large files greater than 4GB
- Easy to use Site Manager and transfer queue
- Drag & drop support
- Speed limits
- Filename filters
- Network configuration wizard 

%prep
%autosetup -p0 -n %{name}-%{version}
%if 0%{?run_autogen}
autoreconf -if
%endif

%build
# For wxGTK3 - needed to find wxrc
export WXRC=%{_bindir}/wxrc-3.2

# Do not use '--enable-buildtype=official' in configure. That option enables the
# "check for updates" dialog to download new binaries from the official website.
%configure \
  --disable-static \
  --enable-locales \
  --disable-manualupdatecheck \
  --with-pugixml=system \
  --with-wx-config=wx-config-3.2 \
  --with-dbus \
  --enable-gnutlssystemciphers \
  --enable-storj \
%if %{with storj}
  --enable-storj \
%endif
  --disable-autoupdatecheck
%make_build

%install
%make_install

# Update the screenshot shown in the software center
#
# NOTE: It would be *awesome* if this file was pushed upstream.
#
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
#
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/filezilla.appdata.xml \
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/filezilla/a.png 

for i in 16x16 32x32 48x48 ; do
  mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${i}/apps
  ln -sf ../../../../%{name}/resources/${i}/%{name}.png \
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${i}/apps/%{name}.png
done

rm -rf $RPM_BUILD_ROOT%{_datadir}/pixmaps

desktop-file-install \
  --delete-original \
  --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
  ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop

appstream-util validate-relax --nonet \
  $RPM_BUILD_ROOT/%{_datadir}/appdata/%{name}.appdata.xml

# Create directory for system wide settings.
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
# Ghost configuration file.
touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/fzdefaults.xml
# This is not the usual docdir.
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs

%find_lang %{name}

%check
%make_build check

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS
%doc docs/fzdefaults.xml.example
%license COPYING
%dir %{_sysconfdir}/%{name}
%ghost %{_sysconfdir}/%{name}/fzdefaults.xml
%{_bindir}/%{name}
%{_bindir}/fzputtygen
%{_bindir}/fzsftp
%if %{with storj}
%{_bindir}/fzstorj
%endif
%{_datadir}/%{name}/
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_libdir}/libfzclient-private*
%{_libdir}/libfzclient-commonui*

%changelog
* Mon May 27 2024 binshuo <binshuozu@gmail.com> - 3.67.0-1
- Initial Release