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