]>
Commit | Line | Data |
---|---|---|
8a768bde ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without nautilus # build Nautilus extension | |
4 | ||
b72e02cb | 5 | Summary: The ownCloud client |
69b59edf | 6 | Name: owncloudclient |
b72e02cb | 7 | Version: 2.1.1 |
2b137c43 | 8 | Release: 0.9 |
42696897 | 9 | License: GPL v2+ |
8766d745 | 10 | Group: X11/Applications |
69b59edf | 11 | Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz |
dab60e18 | 12 | # Source0-md5: 63a971158201a8dffe96a02c54b86819 |
42696897 | 13 | URL: https://www.owncloud.com/ |
60de00dd ER |
14 | BuildRequires: QtCore-devel |
15 | BuildRequires: QtDBus-devel | |
16 | BuildRequires: QtGui-devel | |
2b137c43 | 17 | BuildRequires: QtKeychain-devel |
60de00dd ER |
18 | BuildRequires: QtNetwork-devel |
19 | BuildRequires: QtSql-devel | |
20 | BuildRequires: QtWebKit-devel | |
21 | BuildRequires: QtXmlPatterns-devel | |
b72e02cb | 22 | BuildRequires: cmake >= 2.8.11 |
b72e02cb | 23 | BuildRequires: desktop-file-utils |
60de00dd | 24 | BuildRequires: libstdc++-devel |
b72e02cb | 25 | BuildRequires: openssl-devel |
60de00dd | 26 | BuildRequires: pkgconfig |
b72e02cb | 27 | BuildRequires: python-Sphinx |
d5924c14 | 28 | BuildRequires: sphinx-pdg |
e40771e0 | 29 | BuildRequires: sqlite3-devel |
42696897 | 30 | BuildRequires: tar >= 1:1.22 |
d5924c14 | 31 | BuildRequires: texlive-latex-ams |
42696897 ER |
32 | BuildRequires: xz |
33 | Requires: %{name}-libs = %{version}-%{release} | |
63be3806 | 34 | Requires: Qt5Gui-platform-xcb |
1a8da98e | 35 | Suggests: %{name}-nautilus |
b72e02cb | 36 | Suggests: %{name}-nemo |
b72e02cb | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1a8da98e PG |
38 | |
39 | %description | |
40 | The ownCloud sync client - github.com/owncloud/client | |
41 | ||
b72e02cb PG |
42 | ownCloud client enables you to connect to your private ownCloud |
43 | Server. With it you can create folders in your home directory, and | |
44 | keep the contents of those folders synced with your ownCloud server. | |
45 | Simply copy a file into the directory and the ownCloud Client does the | |
46 | rest. | |
1a8da98e PG |
47 | |
48 | ownCloud gives your employees anytime, anywhere access to the files | |
b72e02cb PG |
49 | they need to get the job done, whether through this desktop |
50 | application, our mobile apps, the web interface, or other WebDAV | |
51 | clients. With it, your employees can easily view and share documents | |
52 | and information critical to the business, in a secure, flexible and | |
53 | controlled architecture. You can easily extend ownCloud with plug-ins | |
54 | from the community, or that you build yourself to meet the | |
55 | requirements of your infrastructure and business. | |
1a8da98e | 56 | |
42696897 ER |
57 | %package libs |
58 | Summary: Shared ownCloud client libraries | |
59 | Group: Libraries | |
60 | ||
61 | %description libs | |
62 | Shared ownCloud client libraries. | |
63 | ||
64 | %package devel | |
65 | Summary: Header files for %{name} library | |
66 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-libs = %{version}-%{release} | |
69 | ||
70 | %description devel | |
71 | Header files for %{name} library. | |
72 | ||
73 | %description devel -l pl.UTF-8 | |
74 | Pliki nagłówkowe biblioteki %{name}. | |
75 | ||
8a768bde ER |
76 | %package nautilus |
77 | Summary: A Nautilus extension for %{name} | |
78 | Group: Applications | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | Requires: nautilus-python | |
81 | ||
82 | %description nautilus | |
83 | A %{name} extension to Nautilus file browser. | |
84 | ||
1a8da98e | 85 | %prep |
d5924c14 | 86 | %setup -q |
1a8da98e | 87 | |
1a8da98e | 88 | %build |
d5924c14 PG |
89 | install -d build |
90 | cd build | |
91 | %cmake \ | |
d5924c14 PG |
92 | -DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qtkeychain \ |
93 | -DQTKEYCHAIN_LIBRARY=/usr/%{_lib}/libqtkeychain.so \ | |
42696897 | 94 | .. |
d5924c14 | 95 | %{__make} |
1a8da98e PG |
96 | |
97 | # documentation here? | |
42696897 ER |
98 | if [ -e conf.py ]; then |
99 | # for old cmake versions we need to move the conf.py. | |
100 | mv conf.py doc/ | |
1a8da98e PG |
101 | fi |
102 | ||
b72e02cb | 103 | %{__make} doc |
1a8da98e PG |
104 | |
105 | %install | |
b72e02cb | 106 | rm -rf $RPM_BUILD_ROOT |
931f5ef6 | 107 | %{__make} -C build install \ |
b72e02cb | 108 | DESTDIR=$RPM_BUILD_ROOT |
1a8da98e | 109 | |
8a768bde ER |
110 | # nemo not in pld |
111 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/nemo-python/extensions/syncstate.py* | |
112 | ||
42696897 ER |
113 | mv $RPM_BUILD_ROOT%{_docdir}/html ${RPM_BUILD_ROOT}%{_docdir}/%{name} |
114 | mv $RPM_BUILD_ROOT%{_docdir}/latex ${RPM_BUILD_ROOT}%{_docdir}/%{name} | |
115 | rm $RPM_BUILD_ROOT%{_docdir}/%{name}/unthemed/.buildinfo | |
116 | ||
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
1a8da98e | 119 | |
1a8da98e | 120 | %post |
42696897 | 121 | %update_icon_cache_post hicolor |
1a8da98e PG |
122 | |
123 | %postun | |
124 | if [ $1 -eq 0 ] ; then | |
42696897 | 125 | %update_icon_cache_post hicolor |
1a8da98e | 126 | fi |
42696897 ER |
127 | |
128 | %post libs -p /sbin/ldconfig | |
129 | %postun libs -p /sbin/ldconfig | |
1a8da98e PG |
130 | |
131 | %files | |
b72e02cb | 132 | %defattr(644,root,root,755) |
931f5ef6 PG |
133 | %doc README.md COPYING |
134 | %doc %{_docdir}/%{name} | |
42696897 | 135 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ownCloud/* |
b72e02cb PG |
136 | %attr(755,root,root) %{_bindir}/owncloud |
137 | %attr(755,root,root) %{_bindir}/owncloudcmd | |
b72e02cb | 138 | %{_desktopdir}/owncloud.desktop |
931f5ef6 | 139 | %{_iconsdir}/*/*/apps/*.png |
c1b38b2d | 140 | %{_datadir}/owncloud |
42696897 | 141 | #%{_libdir}/owncloud/libocsync.so.* |
fff4970d | 142 | %dir %{_libdir}/owncloud |
42696897 ER |
143 | %{_mandir}/man1/owncloud* |
144 | ||
42696897 ER |
145 | %files libs |
146 | %defattr(644,root,root,755) | |
147 | %attr(755,root,root) %{_libdir}/libowncloudsync.so.*.*.* | |
148 | %ghost %{_libdir}/libowncloudsync.so.0 | |
149 | %attr(755,root,root) %{_libdir}/owncloud/libocsync.so.*.*.* | |
150 | %ghost %{_libdir}/owncloud/libocsync.so.0 | |
fff4970d | 151 | |
42696897 ER |
152 | %files devel |
153 | %defattr(644,root,root,755) | |
154 | %{_includedir}/owncloudsync | |
155 | %{_libdir}/libowncloudsync.so | |
156 | %{_libdir}/owncloud/libocsync.so | |
8a768bde ER |
157 | |
158 | %if %{with nautilus} | |
159 | %files nautilus | |
160 | %defattr(644,root,root,755) | |
161 | %{_datadir}/nautilus-python/extensions/syncstate.py* | |
162 | %endif |