]> git.pld-linux.org Git - packages/owncloudclient.git/blame - owncloudclient.spec
nautilus subpackage; drop nemo
[packages/owncloudclient.git] / owncloudclient.spec
CommitLineData
8a768bde
ER
1#
2# Conditional build:
3%bcond_without nautilus # build Nautilus extension
4
b72e02cb 5Summary: The ownCloud client
69b59edf 6Name: owncloudclient
b72e02cb 7Version: 2.1.1
2b137c43 8Release: 0.9
42696897 9License: GPL v2+
8766d745 10Group: X11/Applications
69b59edf 11Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz
dab60e18 12# Source0-md5: 63a971158201a8dffe96a02c54b86819
42696897 13URL: https://www.owncloud.com/
60de00dd
ER
14BuildRequires: QtCore-devel
15BuildRequires: QtDBus-devel
16BuildRequires: QtGui-devel
2b137c43 17BuildRequires: QtKeychain-devel
60de00dd
ER
18BuildRequires: QtNetwork-devel
19BuildRequires: QtSql-devel
20BuildRequires: QtWebKit-devel
21BuildRequires: QtXmlPatterns-devel
b72e02cb 22BuildRequires: cmake >= 2.8.11
b72e02cb 23BuildRequires: desktop-file-utils
60de00dd 24BuildRequires: libstdc++-devel
b72e02cb 25BuildRequires: openssl-devel
60de00dd 26BuildRequires: pkgconfig
b72e02cb 27BuildRequires: python-Sphinx
d5924c14 28BuildRequires: sphinx-pdg
e40771e0 29BuildRequires: sqlite3-devel
42696897 30BuildRequires: tar >= 1:1.22
d5924c14 31BuildRequires: texlive-latex-ams
42696897
ER
32BuildRequires: xz
33Requires: %{name}-libs = %{version}-%{release}
63be3806 34Requires: Qt5Gui-platform-xcb
1a8da98e 35Suggests: %{name}-nautilus
b72e02cb 36Suggests: %{name}-nemo
b72e02cb 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1a8da98e
PG
38
39%description
40The ownCloud sync client - github.com/owncloud/client
41
b72e02cb
PG
42ownCloud client enables you to connect to your private ownCloud
43Server. With it you can create folders in your home directory, and
44keep the contents of those folders synced with your ownCloud server.
45Simply copy a file into the directory and the ownCloud Client does the
46rest.
1a8da98e
PG
47
48ownCloud gives your employees anytime, anywhere access to the files
b72e02cb
PG
49they need to get the job done, whether through this desktop
50application, our mobile apps, the web interface, or other WebDAV
51clients. With it, your employees can easily view and share documents
52and information critical to the business, in a secure, flexible and
53controlled architecture. You can easily extend ownCloud with plug-ins
54from the community, or that you build yourself to meet the
55requirements of your infrastructure and business.
1a8da98e 56
42696897
ER
57%package libs
58Summary: Shared ownCloud client libraries
59Group: Libraries
60
61%description libs
62Shared ownCloud client libraries.
63
64%package devel
65Summary: Header files for %{name} library
66Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
67Group: Development/Libraries
68Requires: %{name}-libs = %{version}-%{release}
69
70%description devel
71Header files for %{name} library.
72
73%description devel -l pl.UTF-8
74Pliki nagłówkowe biblioteki %{name}.
75
8a768bde
ER
76%package nautilus
77Summary: A Nautilus extension for %{name}
78Group: Applications
79Requires: %{name} = %{version}-%{release}
80Requires: nautilus-python
81
82%description nautilus
83A %{name} extension to Nautilus file browser.
84
1a8da98e 85%prep
d5924c14 86%setup -q
1a8da98e 87
1a8da98e 88%build
d5924c14
PG
89install -d build
90cd 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
98if [ -e conf.py ]; then
99 # for old cmake versions we need to move the conf.py.
100 mv conf.py doc/
1a8da98e
PG
101fi
102
b72e02cb 103%{__make} doc
1a8da98e
PG
104
105%install
b72e02cb 106rm -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
113mv $RPM_BUILD_ROOT%{_docdir}/html ${RPM_BUILD_ROOT}%{_docdir}/%{name}
114mv $RPM_BUILD_ROOT%{_docdir}/latex ${RPM_BUILD_ROOT}%{_docdir}/%{name}
115rm $RPM_BUILD_ROOT%{_docdir}/%{name}/unthemed/.buildinfo
116
117%clean
118rm -rf $RPM_BUILD_ROOT
1a8da98e 119
1a8da98e 120%post
42696897 121%update_icon_cache_post hicolor
1a8da98e
PG
122
123%postun
124if [ $1 -eq 0 ] ; then
42696897 125 %update_icon_cache_post hicolor
1a8da98e 126fi
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
This page took 0.144449 seconds and 4 git commands to generate.