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