| |
@@ -1,32 +1,43 @@
|
| |
- %global __cmake_in_source_build 1
|
| |
%global _hardened_build 1
|
| |
|
| |
Name: seafile-client
|
| |
- Version: 7.0.4
|
| |
- Release: 4%{?dist}
|
| |
+ Version: 7.0.10
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Seafile cloud storage desktop client
|
| |
|
| |
- License: ASL 2.0
|
| |
+ # main source: Apache 2.0
|
| |
+ # quazip: LGPL 2.1 with static linking exception
|
| |
+ # QtAwesome: MIT
|
| |
+ # fontawesome: OFL
|
| |
+ License: ASL 2.0 and LGPLv2 and MIT and OFL
|
| |
URL: https://www.seafile.com/
|
| |
- Source0: https://github.com/haiwen/%{name}/archive/v%{version}.tar.gz
|
| |
+ Source0: https://github.com/haiwen/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
| |
Source1: seafile.appdata.xml
|
| |
Patch0: fix-qt-build.patch
|
| |
|
| |
+ ExclusiveArch: %{qt5_qtwebengine_arches}
|
| |
+
|
| |
+ BuildRequires: cmake
|
| |
+ BuildRequires: gcc-c++
|
| |
BuildRequires: desktop-file-utils
|
| |
BuildRequires: libappstream-glib
|
| |
- BuildRequires: cmake
|
| |
- BuildRequires: sqlite-devel
|
| |
- BuildRequires: jansson-devel
|
| |
- BuildRequires: openssl-devel
|
| |
- BuildRequires: libuuid-devel
|
| |
- BuildRequires: libsearpc-devel
|
| |
- BuildRequires: ccnet-devel
|
| |
- BuildRequires: seafile-devel = %{version}
|
| |
- BuildRequires: qt5-qtbase
|
| |
- BuildRequires: qt5-qtwebkit-devel
|
| |
- BuildRequires: qt5-qttools
|
| |
- BuildRequires: qt5-qttools-devel
|
| |
-
|
| |
+ BuildRequires: make
|
| |
+
|
| |
+ BuildRequires: pkgconfig(sqlite3)
|
| |
+ BuildRequires: pkgconfig(jansson)
|
| |
+ BuildRequires: pkgconfig(libevent)
|
| |
+ BuildRequires: pkgconfig(libsearpc)
|
| |
+ BuildRequires: pkgconfig(libseafile) = %{version}
|
| |
+ BuildRequires: pkgconfig(openssl)
|
| |
+ BuildRequires: pkgconfig(zlib)
|
| |
+ BuildRequires: qt5-qtbase-devel
|
| |
+ BuildRequires: qt5-qtwebengine-devel
|
| |
+ BuildRequires: qt5-linguist
|
| |
+
|
| |
+ # 3.x.unidentified with local changes
|
| |
+ Provides: bundled(QtAwesome)
|
| |
+ Provides: bundled(fontawesome-fonts) = 3.2.1
|
| |
+ Provides: bundled(quazip) = 0.7.3
|
| |
Requires: seafile = %{version}
|
| |
|
| |
|
| |
@@ -39,20 +50,23 @@
|
| |
|
| |
|
| |
%prep
|
| |
- %autosetup -p1 -n %{name}-%{version}
|
| |
+ %autosetup -p1
|
| |
|
| |
|
| |
%build
|
| |
- %cmake -DUSE_QT5=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SHIBBOLETH_SUPPORT=ON .
|
| |
- make CFLAGS="%{optflags}" %{?_smp_mflags}
|
| |
+ %cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHIBBOLETH_SUPPORT=ON
|
| |
+ %cmake_build
|
| |
|
| |
|
| |
%install
|
| |
- make install DESTDIR=%{buildroot}
|
| |
- desktop-file-validate %{buildroot}/%{_datadir}/applications/seafile.desktop
|
| |
- mkdir -p %{buildroot}%{_datarootdir}/appdata/
|
| |
- install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/seafile.appdata.xml
|
| |
- appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/seafile.appdata.xml
|
| |
+ %cmake_install
|
| |
+ install -D -m 644 -pv %{SOURCE1} %{buildroot}%{_metainfodir}/seafile.appdata.xml
|
| |
+
|
| |
+
|
| |
+ %check
|
| |
+ desktop-file-validate %{buildroot}%{_datadir}/applications/seafile.desktop
|
| |
+ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/seafile.appdata.xml
|
| |
+
|
| |
|
| |
%files
|
| |
%doc README.md
|
| |
@@ -67,10 +81,14 @@
|
| |
%{_datadir}/icons/hicolor/48x48/apps/seafile.png
|
| |
%{_datadir}/icons/hicolor/128x128/apps/seafile.png
|
| |
%{_datadir}/pixmaps/seafile.png
|
| |
- %{_datadir}/appdata/seafile.appdata.xml
|
| |
+ %{_metainfodir}/seafile.appdata.xml
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Fri Nov 06 2020 Aleksei Bavshin <alebastr@fedoraproject.org> - 7.0.10-1
|
| |
+ - Update to 7.0.10
|
| |
+ - Spec cleanup: remove unused deps, update for current guidelines
|
| |
+
|
| |
* Sat Jul 25 2020 Marie Loise Nolden <loise@kde.org> - 7.0.4-4
|
| |
- fix qt 5.15 build (append Patch0)
|
| |
|
| |
As I mentioned in libsearpc PR, I'm moving all my local changes to the client packages into Fedora upstream
Things to note:
-
pkgconfig(...)
style deps for anything requested withPKG_CHECK_MODULES
as recommended by the current packaging guidelines-
ccnet
is no longer required by any of seafile packages.- third party sources used during the build are now properly declared and used for license calculation (packaging-guidelines#bundling)
-
qtwebkit
is replaced withqtwebengine
. QtWebKit is a one large security issue with no upstream development (rhbz#1872819) and it's good that Seafile devs made this change. However now we have to addExclusiveArch: %{qt5_qtwebengine_arches}
to disable build on architectures not supported byqtwebengine
(ppc64le and s390x)Copr with builds from these sources:
alebastr/seafile-client