]> git.pld-linux.org Git - packages/seafile-client.git/blob - seafile-client.spec
- up to 8.0.4
[packages/seafile-client.git] / seafile-client.spec
1 Summary:        Seafile cloud storage desktop client
2 Name:           seafile-client
3 Version:        8.0.4
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:  f1962a9033be781bf68acccc43c895ea
9 Patch0:         unknowwn-errors.patch
10 URL:            https://www.seafile.com/
11 BuildRequires:  Qt5Core-devel
12 BuildRequires:  Qt5DBus-devel
13 BuildRequires:  Qt5Gui-devel
14 BuildRequires:  Qt5Network-devel
15 BuildRequires:  Qt5Test-devel
16 BuildRequires:  Qt5Widgets-devel
17 BuildRequires:  bash
18 BuildRequires:  ccnet-devel
19 BuildRequires:  cmake
20 BuildRequires:  desktop-file-utils
21 BuildRequires:  jansson-devel
22 BuildRequires:  libsearpc-devel
23 BuildRequires:  libstdc++-devel
24 BuildRequires:  libuuid-devel
25 BuildRequires:  openssl-devel
26 BuildRequires:  pkgconfig
27 BuildRequires:  qt5-build
28 BuildRequires:  qt5-linguist
29 BuildRequires:  qt5-qmake
30 BuildRequires:  rpmbuild(macros) >= 1.596
31 BuildRequires:  seafile-devel
32 BuildRequires:  sqlite3-devel
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
47 %patch0 -p1
48
49 %build
50 mkdir -p build
51 cd build
52 %cmake ../ \
53         -DCMAKE_C_FLAGS="%{rpmcflags}" \
54         -DCMAKE_CXX_FLAGS="%{rpmcxxflags}" \
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
63 %{__make} -C build install \
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
This page took 0.055342 seconds and 3 git commands to generate.