]>
Commit | Line | Data |
---|---|---|
932a13f6 ER |
1 | Summary: Seafile cloud storage desktop client |
2 | Name: seafile-client | |
43b77eb2 | 3 | Version: 8.0.4 |
714c1273 | 4 | Release: 1 |
932a13f6 ER |
5 | License: Apache v2.0 |
6 | Group: Applications/Networking | |
7 | Source0: https://github.com/haiwen/seafile-client/archive/v%{version}/%{name}-%{version}.tar.gz | |
43b77eb2 JR |
8 | # Source0-md5: f1962a9033be781bf68acccc43c895ea |
9 | Patch0: unknowwn-errors.patch | |
932a13f6 ER |
10 | URL: https://www.seafile.com/ |
11 | BuildRequires: Qt5Core-devel | |
932a13f6 | 12 | BuildRequires: Qt5DBus-devel |
16cc0e4a ER |
13 | BuildRequires: Qt5Gui-devel |
14 | BuildRequires: Qt5Network-devel | |
15 | BuildRequires: Qt5Test-devel | |
16 | BuildRequires: Qt5Widgets-devel | |
932a13f6 ER |
17 | BuildRequires: bash |
18 | BuildRequires: ccnet-devel | |
19 | BuildRequires: cmake | |
20 | BuildRequires: desktop-file-utils | |
21 | BuildRequires: jansson-devel | |
22 | BuildRequires: libsearpc-devel | |
16cc0e4a | 23 | BuildRequires: libstdc++-devel |
932a13f6 ER |
24 | BuildRequires: libuuid-devel |
25 | BuildRequires: openssl-devel | |
16cc0e4a | 26 | BuildRequires: pkgconfig |
932a13f6 ER |
27 | BuildRequires: qt5-build |
28 | BuildRequires: qt5-linguist | |
29 | BuildRequires: qt5-qmake | |
932a13f6 ER |
30 | BuildRequires: rpmbuild(macros) >= 1.596 |
31 | BuildRequires: seafile-devel | |
16cc0e4a | 32 | BuildRequires: sqlite3-devel |
932a13f6 ER |
33 | Requires: gtk-update-icon-cache |
34 | Requires: hicolor-icon-theme | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | Seafile is a next-generation open source cloud storage system, with | |
39 | advanced support for file syncing, privacy protection and teamwork. | |
40 | ||
41 | Seafile allows users to create groups with file syncing, wiki, and | |
42 | discussion to enable easy collaboration around documents within a | |
43 | team. | |
44 | ||
45 | %prep | |
46 | %setup -q | |
43b77eb2 | 47 | %patch0 -p1 |
932a13f6 ER |
48 | |
49 | %build | |
43b77eb2 JR |
50 | mkdir -p build |
51 | cd build | |
52 | %cmake ../ \ | |
53 | -DCMAKE_C_FLAGS="%{rpmcflags}" \ | |
54 | -DCMAKE_CXX_FLAGS="%{rpmcxxflags}" \ | |
932a13f6 ER |
55 | -Dqmake_executable:FILEPATH=/usr/bin/qmake-qt5 \ |
56 | -DUSE_QT5=ON \ | |
57 | -DCMAKE_BUILD_TYPE=Release . | |
58 | ||
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
43b77eb2 | 63 | %{__make} -C build install \ |
932a13f6 ER |
64 | DESTDIR=$RPM_BUILD_ROOT |
65 | ||
66 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/seafile.desktop | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post | |
72 | %update_icon_cache hicolor | |
73 | ||
74 | %postun | |
75 | %update_icon_cache hicolor | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc README.md LICENSE | |
80 | %attr(755,root,root) %{_bindir}/seafile-applet | |
81 | %{_desktopdir}/seafile.desktop | |
82 | %{_pixmapsdir}/seafile.png | |
83 | %{_iconsdir}/hicolor/scalable/apps/seafile.svg | |
84 | %{_iconsdir}/hicolor/*/apps/seafile.png |