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