]> git.pld-linux.org Git - packages/owncloudclient.git/blame - owncloudclient.spec
- unconditional noarch subpackages
[packages/owncloudclient.git] / owncloudclient.spec
CommitLineData
8a768bde
ER
1#
2# Conditional build:
4bbe24d5 3%bcond_without nautilus # build Nautilus extension
461d7e6d 4%bcond_without caja # build caja extension
e999176d 5%bcond_with dolphin # build dolphin extension
4bbe24d5
ER
6%bcond_without doc # build docs
7%bcond_without gui # build only libraries
8
9%if %{without gui}
10%undefine with_nautilus
461d7e6d 11%undefine with_caja
e999176d 12%undefine with_dolphin
4bbe24d5
ER
13%undefine with_doc
14%endif
8a768bde 15
fec6bd12 16%define qtver 5.4
b72e02cb 17Summary: The ownCloud client
69b59edf 18Name: owncloudclient
d31e5b37 19Version: 2.3.3
d80f1642 20Release: 3
42696897 21License: GPL v2+
8766d745 22Group: X11/Applications
69b59edf 23Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz
d31e5b37 24# Source0-md5: bba20fc6f38e0b14f6ceb9ab432d1802
b570669f 25Patch0: syslibs.patch
42696897 26URL: https://www.owncloud.com/
ce8071a4 27BuildRequires: Qt5Concurrent-devel >= %{qtver}
fec6bd12
ER
28BuildRequires: Qt5Core-devel >= %{qtver}
29BuildRequires: Qt5DBus-devel >= %{qtver}
30BuildRequires: Qt5Gui-devel >= %{qtver}
31BuildRequires: Qt5Keychain-devel
32BuildRequires: Qt5Network-devel >= %{qtver}
fec6bd12
ER
33BuildRequires: Qt5WebKit-devel >= %{qtver}
34BuildRequires: Qt5Xml-devel >= %{qtver}
b72e02cb 35BuildRequires: cmake >= 2.8.11
60de00dd 36BuildRequires: libstdc++-devel
55bf14cd 37BuildRequires: openssl-devel >= 1.0.0
60de00dd 38BuildRequires: pkgconfig
443783b7 39BuildRequires: qt5-linguist >= %{qtver}
ae1f2a01 40BuildRequires: rpm-pythonprov
db04c1c3 41BuildRequires: rpmbuild(macros) >= 1.596
55bf14cd 42BuildRequires: sqlite3-devel >= 3.8.0
42696897 43BuildRequires: tar >= 1:1.22
db04c1c3 44BuildRequires: xz
01a07148 45BuildRequires: zlib-devel
ce8071a4
ER
46%if %{with gui}
47BuildRequires: Qt5LockedFile-devel >= 2.4
1e8786d9 48BuildRequires: Qt5SingleApplication-devel >= 2.6.1-3
ce8071a4 49BuildRequires: Qt5Sql-devel >= %{qtver}
1e8786d9 50BuildConflicts: QtLockedFile-devel
ce8071a4 51%endif
e999176d
ER
52%if %{with dolphin}
53BuildRequires: kf5-attica-devel >= 5.16
01a07148 54BuildRequires: kf5-extra-cmake-modules >= 1.2.0
e999176d
ER
55BuildRequires: kf5-kconfig-devel >= 5.16
56BuildRequires: kf5-ki18n-devel >= 5.16
57BuildRequires: kf5-kio-devel >= 5.16
58%endif
d15c01db 59%if %{with doc}
55bf14cd
ER
60BuildRequires: doxygen
61BuildRequires: sphinx-pdg-2
62BuildRequires: texlive-format-pdflatex
d5924c14 63BuildRequires: texlive-latex-ams
55bf14cd
ER
64BuildRequires: texlive-makeindex
65BuildRequires: texlive-pdftex
66BuildRequires: texlive-plain
67BuildRequires: texlive-xetex
d15c01db 68%endif
42696897 69Requires: %{name}-libs = %{version}-%{release}
63be3806 70Requires: Qt5Gui-platform-xcb
ae64705e 71Requires: Qt5SingleApplication >= 2.6.1-3
db04c1c3
ER
72Requires: desktop-file-utils
73Requires: gtk-update-icon-cache
74Requires: hicolor-icon-theme
1a8da98e 75Suggests: %{name}-nautilus
b72e02cb 76Suggests: %{name}-nemo
7e597b00 77Obsoletes: mirall < 1.8
b72e02cb 78BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1a8da98e
PG
79
80%description
b72e02cb
PG
81ownCloud client enables you to connect to your private ownCloud
82Server. With it you can create folders in your home directory, and
83keep the contents of those folders synced with your ownCloud server.
84Simply copy a file into the directory and the ownCloud Client does the
85rest.
1a8da98e
PG
86
87ownCloud gives your employees anytime, anywhere access to the files
b72e02cb
PG
88they need to get the job done, whether through this desktop
89application, our mobile apps, the web interface, or other WebDAV
90clients. With it, your employees can easily view and share documents
91and information critical to the business, in a secure, flexible and
92controlled architecture. You can easily extend ownCloud with plug-ins
93from the community, or that you build yourself to meet the
94requirements of your infrastructure and business.
1a8da98e 95
42696897
ER
96%package libs
97Summary: Shared ownCloud client libraries
98Group: Libraries
c0298053 99Obsoletes: mirall-libs < 1.8
42696897
ER
100
101%description libs
102Shared ownCloud client libraries.
103
104%package devel
105Summary: Header files for %{name} library
106Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
107Group: Development/Libraries
108Requires: %{name}-libs = %{version}-%{release}
109
110%description devel
111Header files for %{name} library.
112
113%description devel -l pl.UTF-8
114Pliki nagłówkowe biblioteki %{name}.
115
55bf14cd
ER
116%package apidocs
117Summary: %{name} API documentation
118Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
119Group: Documentation
55bf14cd 120BuildArch: noarch
55bf14cd
ER
121
122%description apidocs
123API documentation for %{name} library.
124
125%description apidocs -l pl.UTF-8
126Dokumentacja API biblioteki %{name}.
127
8a768bde 128%package nautilus
36a3a84c 129Summary: Nautilus overlay icons
8a768bde
ER
130Group: Applications
131Requires: %{name} = %{version}-%{release}
132Requires: nautilus-python
133
134%description nautilus
36a3a84c
ER
135This package provides overlay icons to visualize the sync state in the
136Nautilus file manager.
8a768bde 137
461d7e6d
JK
138%package caja
139Summary: Caja overlay icons
140Group: Applications
141Requires: %{name} = %{version}-%{release}
142Requires: caja-python
143
144%description caja
145This package provides overlay icons to visualize the sync state in the
146Caja file manager.
147
1a8da98e 148%prep
d5924c14 149%setup -q
b570669f
ER
150%patch0 -p1
151
1e8786d9
ER
152mv src/3rdparty/qtlockedfile .
153mv src/3rdparty/qtsingleapplication .
1a8da98e 154
1a8da98e 155%build
d5924c14
PG
156install -d build
157cd build
158%cmake \
fec6bd12
ER
159 -DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qt5keychain \
160 -DQTKEYCHAIN_LIBRARY=/usr/%{_lib}/libqt5keychain.so \
161 -DQT_LRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5 \
162 -DBUILD_WITH_QT4=NO \
55bf14cd
ER
163%if %{with doc}
164 -DSPHINX_EXECUTABLE=/usr/bin/sphinx-build-2 \
165 -DPDFLATEX_EXECUTABLE=/usr/bin/pdflatex \
166 -DDOXYGEN_EXECUTABLE=/usr/bin/doxygen \
167 -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
168%else
169 -DWITH_DOC=NO \
01a07148
ER
170 -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=TRUE \
171 -DCMAKE_DISABLE_FIND_PACKAGE_PdfLatex=TRUE \
172 -DCMAKE_DISABLE_FIND_PACKAGE_Sphinx=TRUE \
e999176d
ER
173%endif
174%if %{without dolphin}
2e6eded8
ER
175 -DCMAKE_DISABLE_FIND_PACKAGE_ECM=TRUE \
176 -DCMAKE_DISABLE_FIND_PACKAGE_KF5=TRUE \
55bf14cd 177%endif
4bbe24d5 178 %{!?with_gui:-DBUILD_LIBRARIES_ONLY=ON} \
42696897 179 ..
d80f1642 180%{__make} -j1
1a8da98e 181
4bbe24d5 182%if %{with doc}
d80f1642 183%{__make} -j1 doc
55bf14cd 184rm doc/html/unthemed/.buildinfo
4bbe24d5 185%endif
1a8da98e
PG
186
187%install
b72e02cb 188rm -rf $RPM_BUILD_ROOT
d80f1642 189%{__make} -j1 -C build install \
b72e02cb 190 DESTDIR=$RPM_BUILD_ROOT
1a8da98e 191
a054015a
ER
192# owncloud client links without rpath
193mv $RPM_BUILD_ROOT%{_libdir}/owncloud/libocsync.so* $RPM_BUILD_ROOT%{_libdir}
194
4bbe24d5 195%if %{with nautilus}
8a768bde 196# nemo not in pld
461d7e6d 197%{__rm} $RPM_BUILD_ROOT%{_datadir}/nemo-python/extensions/syncstate-ownCloud.py*
4bbe24d5 198%endif
8a768bde 199
42696897
ER
200%clean
201rm -rf $RPM_BUILD_ROOT
1a8da98e 202
1a8da98e 203%post
db04c1c3
ER
204%update_desktop_database
205%update_icon_cache hicolor
1a8da98e
PG
206
207%postun
db04c1c3
ER
208%update_desktop_database
209%update_icon_cache hicolor
42696897
ER
210
211%post libs -p /sbin/ldconfig
212%postun libs -p /sbin/ldconfig
1a8da98e 213
4bbe24d5 214%if %{with gui}
1a8da98e 215%files
b72e02cb 216%defattr(644,root,root,755)
931f5ef6 217%doc README.md COPYING
b72e02cb
PG
218%attr(755,root,root) %{_bindir}/owncloud
219%attr(755,root,root) %{_bindir}/owncloudcmd
b72e02cb 220%{_desktopdir}/owncloud.desktop
931f5ef6 221%{_iconsdir}/*/*/apps/*.png
c1b38b2d 222%{_datadir}/owncloud
fff4970d 223%dir %{_libdir}/owncloud
ab8b50fd 224%if %{with doc}
55bf14cd
ER
225%{_mandir}/man1/owncloud.1*
226%{_mandir}/man1/owncloudcmd.1*
4bbe24d5 227%endif
ab8b50fd 228%endif
42696897 229
42696897
ER
230%files libs
231%defattr(644,root,root,755)
443783b7
ER
232%dir %{_sysconfdir}/ownCloud
233%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ownCloud/sync-exclude.lst
42696897
ER
234%attr(755,root,root) %{_libdir}/libowncloudsync.so.*.*.*
235%ghost %{_libdir}/libowncloudsync.so.0
a054015a
ER
236%attr(755,root,root) %{_libdir}/libocsync.so.*.*.*
237%ghost %{_libdir}/libocsync.so.0
fff4970d 238
42696897
ER
239%files devel
240%defattr(644,root,root,755)
241%{_includedir}/owncloudsync
242%{_libdir}/libowncloudsync.so
a054015a 243%{_libdir}/libocsync.so
8a768bde
ER
244
245%if %{with nautilus}
246%files nautilus
247%defattr(644,root,root,755)
461d7e6d
JK
248%{_datadir}/nautilus-python/extensions/syncstate-ownCloud.py*
249%endif
250
251%if %{with caja}
252%files caja
253%defattr(644,root,root,755)
254%{_datadir}/caja-python/extensions/syncstate-ownCloud.py*
8a768bde 255%endif
55bf14cd
ER
256
257%if %{with doc}
258%files apidocs
259%defattr(644,root,root,755)
260%doc %{_docdir}/%{name}
261%endif
This page took 0.086273 seconds and 4 git commands to generate.