]>
Commit | Line | Data |
---|---|---|
1a8da98e | 1 | |
b72e02cb | 2 | Summary: The ownCloud client |
69b59edf | 3 | Name: owncloudclient |
b72e02cb | 4 | Version: 2.1.1 |
63be3806 | 5 | Release: 0.4 |
b72e02cb | 6 | License: GPL-2.0+ |
8766d745 | 7 | Group: X11/Applications |
b72e02cb | 8 | URL: https://www.owncloud.com |
69b59edf | 9 | Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz |
dab60e18 | 10 | # Source0-md5: 63a971158201a8dffe96a02c54b86819 |
d5924c14 PG |
11 | #Source1: owncloud.sh |
12 | #Source2: owncloudcmd.sh | |
b72e02cb | 13 | BuildRequires: cmake >= 2.8.11 |
d5924c14 PG |
14 | #BuildRequires: qt4-devel >= 4.7 |
15 | #BuildRequires: qtwebkit-devel >= 2.2 | |
b72e02cb PG |
16 | BuildRequires: desktop-file-utils |
17 | BuildRequires: openssl-devel | |
b72e02cb | 18 | BuildRequires: python-Sphinx |
d5924c14 PG |
19 | BuildRequires: sphinx-pdg |
20 | BuildRequires: texlive-latex-ams | |
21 | BuildRequires: QtKeychain-devel | |
63be3806 PG |
22 | Requires: mirall-libs |
23 | Requires: Qt5Gui-platform-xcb | |
1a8da98e | 24 | Suggests: %{name}-nautilus |
b72e02cb | 25 | Suggests: %{name}-nemo |
b72e02cb | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1a8da98e PG |
27 | |
28 | %description | |
29 | The ownCloud sync client - github.com/owncloud/client | |
30 | ||
b72e02cb PG |
31 | ownCloud client enables you to connect to your private ownCloud |
32 | Server. With it you can create folders in your home directory, and | |
33 | keep the contents of those folders synced with your ownCloud server. | |
34 | Simply copy a file into the directory and the ownCloud Client does the | |
35 | rest. | |
1a8da98e PG |
36 | |
37 | ownCloud gives your employees anytime, anywhere access to the files | |
b72e02cb PG |
38 | they need to get the job done, whether through this desktop |
39 | application, our mobile apps, the web interface, or other WebDAV | |
40 | clients. With it, your employees can easily view and share documents | |
41 | and information critical to the business, in a secure, flexible and | |
42 | controlled architecture. You can easily extend ownCloud with plug-ins | |
43 | from the community, or that you build yourself to meet the | |
44 | requirements of your infrastructure and business. | |
1a8da98e | 45 | |
1a8da98e | 46 | %prep |
d5924c14 | 47 | %setup -q |
1a8da98e | 48 | # autostart_use_wrapper.diff |
d5924c14 | 49 | #patch1 -p1 |
1a8da98e | 50 | |
1a8da98e | 51 | %build |
d5924c14 PG |
52 | install -d build |
53 | cd build | |
54 | %cmake \ | |
55 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
56 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
57 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ | |
58 | -DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qtkeychain \ | |
59 | -DQTKEYCHAIN_LIBRARY=/usr/%{_lib}/libqtkeychain.so \ | |
60 | ../ | |
61 | %{__make} | |
1a8da98e PG |
62 | |
63 | # documentation here? | |
64 | if [ -e conf.py ]; | |
65 | then | |
66 | # for old cmake versions we need to move the conf.py. | |
67 | mv conf.py doc/ | |
68 | fi | |
69 | ||
b72e02cb | 70 | %{__make} doc |
1a8da98e PG |
71 | |
72 | %install | |
b72e02cb | 73 | rm -rf $RPM_BUILD_ROOT |
931f5ef6 | 74 | %{__make} -C build install \ |
b72e02cb | 75 | DESTDIR=$RPM_BUILD_ROOT |
1a8da98e | 76 | |
931f5ef6 PG |
77 | mv ${RPM_BUILD_ROOT}%{_docdir}/html ${RPM_BUILD_ROOT}%{_docdir}/%{name} |
78 | mv ${RPM_BUILD_ROOT}%{_docdir}/latex ${RPM_BUILD_ROOT}%{_docdir}/%{name} | |
79 | rm ${RPM_BUILD_ROOT}%{_docdir}/%{name}/unthemed/.buildinfo | |
1a8da98e | 80 | |
931f5ef6 | 81 | #%find_lang owncloud |
1a8da98e | 82 | |
1a8da98e | 83 | %post |
b72e02cb | 84 | /bin/%update_icon_cache_post hicolor &>/dev/null || : |
931f5ef6 | 85 | /sbin/ldconfig |
1a8da98e PG |
86 | |
87 | %postun | |
88 | if [ $1 -eq 0 ] ; then | |
b72e02cb PG |
89 | /bin/%update_icon_cache_post hicolor &>/dev/null |
90 | %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : | |
1a8da98e | 91 | fi |
1a8da98e PG |
92 | /sbin/ldconfig |
93 | ||
94 | %files | |
931f5ef6 | 95 | #-n %{name}.lang |
b72e02cb | 96 | %defattr(644,root,root,755) |
931f5ef6 PG |
97 | %doc README.md COPYING |
98 | %doc %{_docdir}/%{name} | |
fff4970d | 99 | %config %{_sysconfdir}/ownCloud |
b72e02cb PG |
100 | %attr(755,root,root) %{_bindir}/owncloud |
101 | %attr(755,root,root) %{_bindir}/owncloudcmd | |
b72e02cb | 102 | %{_desktopdir}/owncloud.desktop |
931f5ef6 | 103 | %{_iconsdir}/*/*/apps/*.png |
c1b38b2d | 104 | %{_datadir}/owncloud |
63be3806 PG |
105 | # conflicts mirall-libs: |
106 | #%{_libdir}/libowncloudsync.so.* | |
1a8da98e | 107 | %{_libdir}/owncloud/libocsync.so.* |
fff4970d | 108 | %dir %{_libdir}/owncloud |
1a8da98e | 109 | %{_datadir}/nautilus-python/extensions/syncstate.py* |
1a8da98e | 110 | %{_datadir}/nemo-python/extensions/syncstate.py* |
931f5ef6 | 111 | %{_mandir}/man1/owncloud* |
1a8da98e | 112 | |
fff4970d PG |
113 | ### Make separate devel package |
114 | #%{_libdir}/libowncloudsync.so | |
115 | #%{_libdir}/owncloud/libocsync.so | |
116 | #%{_includedir}/owncloudsync/ | |
117 | ||
b72e02cb PG |
118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT |