- up to 8.0.4
[packages/seafile-client.git] / seafile-client.spec
CommitLineData
932a13f6
ER
1Summary: Seafile cloud storage desktop client
2Name: seafile-client
43b77eb2 3Version: 8.0.4
714c1273 4Release: 1
932a13f6
ER
5License: Apache v2.0
6Group: Applications/Networking
7Source0: https://github.com/haiwen/seafile-client/archive/v%{version}/%{name}-%{version}.tar.gz
43b77eb2
JR
8# Source0-md5: f1962a9033be781bf68acccc43c895ea
9Patch0: unknowwn-errors.patch
932a13f6
ER
10URL: https://www.seafile.com/
11BuildRequires: Qt5Core-devel
932a13f6 12BuildRequires: Qt5DBus-devel
16cc0e4a
ER
13BuildRequires: Qt5Gui-devel
14BuildRequires: Qt5Network-devel
15BuildRequires: Qt5Test-devel
16BuildRequires: Qt5Widgets-devel
932a13f6
ER
17BuildRequires: bash
18BuildRequires: ccnet-devel
19BuildRequires: cmake
20BuildRequires: desktop-file-utils
21BuildRequires: jansson-devel
22BuildRequires: libsearpc-devel
16cc0e4a 23BuildRequires: libstdc++-devel
932a13f6
ER
24BuildRequires: libuuid-devel
25BuildRequires: openssl-devel
16cc0e4a 26BuildRequires: pkgconfig
932a13f6
ER
27BuildRequires: qt5-build
28BuildRequires: qt5-linguist
29BuildRequires: qt5-qmake
932a13f6
ER
30BuildRequires: rpmbuild(macros) >= 1.596
31BuildRequires: seafile-devel
16cc0e4a 32BuildRequires: sqlite3-devel
932a13f6
ER
33Requires: gtk-update-icon-cache
34Requires: hicolor-icon-theme
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38Seafile is a next-generation open source cloud storage system, with
39advanced support for file syncing, privacy protection and teamwork.
40
41Seafile allows users to create groups with file syncing, wiki, and
42discussion to enable easy collaboration around documents within a
43team.
44
45%prep
46%setup -q
43b77eb2 47%patch0 -p1
932a13f6
ER
48
49%build
43b77eb2
JR
50mkdir -p build
51cd 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
62rm -rf $RPM_BUILD_ROOT
43b77eb2 63%{__make} -C build install \
932a13f6
ER
64 DESTDIR=$RPM_BUILD_ROOT
65
66desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/seafile.desktop
67
68%clean
69rm -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.057728 seconds and 4 git commands to generate.