Blame nextcloud-client.spec

4d7bdd
%global _hardened_build 1
4d7bdd
4d7bdd
Name:           nextcloud-client
411814
Version:        2.6.1
999bb9
Release:        1%{?dist}
4d7bdd
Summary:        The Nextcloud Client
4d7bdd
4d7bdd
# -libs are LGPLv2+, rest GPLv2
4d7bdd
License:        LGPLv2+ and GPLv2
4d7bdd
Url:            https://nextcloud.com/install/#install-clients
d2f27f
Source0:        https://github.com/nextcloud/desktop/archive/desktop-%{version}.tar.gz
24a35f
Source1:        nextcloud.appdata.xml
d1f897
# The patch does 3 things:
d1f897
#  - Depends on system lib for QtSingleApplication and QtLockedFile
d1f897
#  - Remove the extraneous namespace when calling QtSingleApplication
d1f897
#  - Fix a mismatch in the QtSingleApplication::messageReceived signal and the 
d1f897
# Application::slotParseMessage slot
d1f897
# These fix are needed because the system wide QtSingleApplication is slightly 
d1f897
# different from the bundled one.
Germano Massullo 409246
#Patch0:         %%{name}-%%{version}-syslibs.patch
Germano Massullo 88e868
4d7bdd
BuildRequires:  check
4d7bdd
BuildRequires:  cmake
4d7bdd
BuildRequires:  desktop-file-utils
4d7bdd
BuildRequires:  doxygen
24a35f
BuildRequires:  pkgconfig(gio-2.0)
4d7bdd
BuildRequires:  libappstream-glib
4d7bdd
BuildRequires:  neon-devel
4d7bdd
BuildRequires:  openssl-devel
Germano Massullo 35947f
BuildRequires:  python3-sphinx
4d7bdd
BuildRequires:  qtlockedfile-qt5-devel
4d7bdd
BuildRequires:  qtkeychain-qt5-devel >= 0.7.0
4d7bdd
BuildRequires:  qtsingleapplication-qt5-devel
4d7bdd
BuildRequires:  qt5-qtbase
4d7bdd
BuildRequires:  qt5-qtbase-devel
4d7bdd
BuildRequires:  qt5-qtbase-gui
4d7bdd
BuildRequires:  qt5-qtwebkit-devel
4d7bdd
BuildRequires:  qt5-qtxmlpatterns-devel
4d7bdd
BuildRequires:  qt5-qttools qt5-qttools-devel
24a35f
BuildRequires:  qt5-qtwebengine-devel
24a35f
BuildRequires:  qt5-qtsvg-devel
4d7bdd
BuildRequires:  extra-cmake-modules
93b478
# Plasma 5 Dolphin integration
93b478
%if 0%{?fedora} >= 24 || 0%{?rhel} > 7
4d7bdd
BuildRequires:  kf5-kio-devel
4d7bdd
BuildRequires:  kf5-kcoreaddons-devel
4d7bdd
BuildRequires:  kf5-rpm-macros
93b478
%endif
4d7bdd
BuildRequires:  sqlite-devel
4d7bdd
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
4d7bdd
4d7bdd
Provides: mirall = %{version}-%{release}
4d7bdd
Obsoletes: mirall < 1.8.0
4d7bdd
cda301
# Read https://bugzilla.redhat.com/show_bug.cgi?id=1651261
cda301
ExcludeArch: ppc64 ppc64le s390x
cda301
4d7bdd
%description
4d7bdd
Nextcloud-client enables you to connect to your private Nextcloud Server.
4d7bdd
With it you can create folders in your home directory, and keep the contents
4d7bdd
of those folders synced with your Nextcloud server. Simply copy a file into
4d7bdd
the directory and the Nextcloud Client does the rest.
4d7bdd
4d7bdd
4d7bdd
%package libs
4d7bdd
Summary: Common files for nextcloud-client
4d7bdd
License: LGPLv2+
4d7bdd
Provides: mirall-common = %{version}-%{release}
4d7bdd
Obsoletes: mirall-common < 1.8.0
4d7bdd
Requires: %{name}%{?_isa} = %{version}-%{release}
4d7bdd
4d7bdd
%description libs
4d7bdd
Provides common files for nextcloud-client such as the
4d7bdd
configuration file that determines the excluded files in a sync.
4d7bdd
4d7bdd
4d7bdd
%package devel
4d7bdd
Summary: Development files for nextcloud-client
4d7bdd
License: LGPLv2+
4d7bdd
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
4d7bdd
Requires: %{name}%{?_isa} = %{version}-%{release}
4d7bdd
Provides: %{name}-static = %{version}-%{release}
4d7bdd
Provides: mirall-devel = %{version}-%{release}
4d7bdd
Obsoletes: mirall-devel < 1.8.0
4d7bdd
4d7bdd
%description devel
4d7bdd
Development headers for use of the nextcloud-client library
4d7bdd
4d7bdd
%package nautilus
4d7bdd
Summary: nextcloud client nautilus extension
4d7bdd
Requires: nautilus
4d7bdd
Requires: nautilus-python
4d7bdd
Requires: %{name}%{?_isa} = %{version}-%{release}
4d7bdd
Provides: mirall-nautilus = %{version}-%{release}
4d7bdd
Obsoletes: mirall-nautilus < 1.8.0
4d7bdd
4d7bdd
4d7bdd
%description nautilus
4d7bdd
The nextcloud desktop client nautilus extension.
4d7bdd
4d7bdd
%package nemo
4d7bdd
Summary:        Nemo overlay icons
4d7bdd
Requires:       nemo
4d7bdd
Requires:       nemo-python
4d7bdd
Requires: %{name}%{?_isa} = %{version}-%{release}
4d7bdd
4d7bdd
%description nemo
4d7bdd
This package provides overlay icons to visualize the sync state
4d7bdd
in the nemo file manager.
4d7bdd
a32ccc
# Only Fedora has Mate, so there is no need for Caja extension on EPEL
a32ccc
%if 0%{?fedora}
Timotheus Pokorra 312fc4
%package caja
Timotheus Pokorra 312fc4
Summary:        Caja overlay icons
Timotheus Pokorra 312fc4
Requires:       caja
411814
Requires:       python3-caja
Timotheus Pokorra 312fc4
Requires: %{name}%{?_isa} = %{version}-%{release}
Timotheus Pokorra 312fc4
Timotheus Pokorra 312fc4
%description caja
Timotheus Pokorra 312fc4
This package provides overlay icons to visualize the sync state
Timotheus Pokorra 312fc4
in the caja file manager.
Timotheus Pokorra 312fc4
%endif
Timotheus Pokorra 312fc4
Timotheus Pokorra 312fc4
%if 0%{?fedora} >= 24 || 0%{?rhel} > 7
4d7bdd
%package dolphin
4d7bdd
Summary:        Dolphin overlay icons
4d7bdd
Requires:       dolphin
4d7bdd
Requires: %{name}%{?_isa} = %{version}-%{release}
4d7bdd
4d7bdd
%description dolphin
4d7bdd
The nextcloud desktop client dolphin extension.
4d7bdd
%endif
4d7bdd
4d7bdd
%prep
d2f27f
%setup -q -n desktop-%{version}
24a35f
#rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
4d7bdd
4d7bdd
4d7bdd
%build
4d7bdd
mkdir build
4d7bdd
pushd build
24a35f
%cmake_kf5 .. -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed"
4d7bdd
make %{?_smp_mflags}
4d7bdd
popd
4d7bdd
4d7bdd
4d7bdd
%install
4d7bdd
pushd build
4d7bdd
make install DESTDIR=%{buildroot}
4d7bdd
popd
4d7bdd
%find_lang client --with-qt
4d7bdd
mkdir -p %{buildroot}%{_datadir}/appdata/
24a35f
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/nextcloud.appdata.xml
4d7bdd
Timotheus Pokorra 312fc4
3a9290
# for distros that do not have KDE Plasma 5
Timotheus Pokorra 977ff2
%if 0%{?fedora} < 24 && 0%{?rhel} <= 7
Timotheus Pokorra 977ff2
rm -f %{buildroot}%{_libdir}/libnextclouddolphinpluginhelper.so
Timotheus Pokorra 977ff2
rm -f %{buildroot}%{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
Timotheus Pokorra 977ff2
rm -f %{buildroot}%{_qt5_plugindir}/nextclouddolphinactionplugin.so
Timotheus Pokorra 977ff2
rm -f %{buildroot}%{_kf5_datadir}/kservices5/nextclouddolphinactionplugin.desktop
Timotheus Pokorra 977ff2
%endif
4d7bdd
24a35f
a32ccc
# Only Fedora has Mate, so there is no need for Caja extension on EPEL
a32ccc
%if 0%{?rhel}
4e3274
rm -rf %{buildroot}%{_datadir}/caja-python/
a32ccc
%endif
a32ccc
24a35f
4d7bdd
%check
7cbcad
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/nextcloud.appdata.xml
4d7bdd
49b0a9
%ldconfig_scriptlets libs
4d7bdd
4d7bdd
%if 0%{?fedora} >= 24 || 0%{?rhel} > 7
49b0a9
%ldconfig_scriptlets dolphin
4d7bdd
%endif
4d7bdd
4d7bdd
%files -f client.lang
4d7bdd
%{_bindir}/nextcloud
4d7bdd
%{_bindir}/nextcloudcmd
4d7bdd
%{_datadir}/applications/nextcloud.desktop
4d7bdd
%{_datadir}/icons/hicolor/*/apps/*
7cbcad
%{_datadir}/appdata/nextcloud.appdata.xml
4d7bdd
4d7bdd
%files libs
4d7bdd
%{_libdir}/libnextcloudsync.so.0
40fa5f
#%%{_libdir}/libnextcloudsync.so.%%{version}
40fa5f
%{_libdir}/libnextcloudsync.so.2.6.0
4d7bdd
%{_libdir}/nextcloud/libocsync.so.*
4d7bdd
%doc README.md
4d7bdd
%config %{_sysconfdir}/Nextcloud/sync-exclude.lst
4d7bdd
%dir %{_sysconfdir}/Nextcloud
4d7bdd
4d7bdd
%files devel
4d7bdd
%{_includedir}/nextcloudsync/
4d7bdd
%{_libdir}/libnextcloudsync.so
4d7bdd
%{_libdir}/nextcloud/libocsync.so
4d7bdd
4d7bdd
%files nautilus
4d7bdd
%{_datadir}/nautilus-python/extensions/*
4d7bdd
4d7bdd
%files nemo
4d7bdd
%{_datadir}/nemo-python/extensions/*
4d7bdd
a32ccc
# Only Fedora has Mate, so there is no need for Caja extension on EPEL
a32ccc
%if 0%{?fedora}
Timotheus Pokorra 312fc4
%files caja
Timotheus Pokorra 312fc4
%{_datadir}/caja-python/extensions/*
Timotheus Pokorra 312fc4
%endif
Timotheus Pokorra 312fc4
Timotheus Pokorra 312fc4
%if 0%{?fedora} >= 24 || 0%{?rhel} > 7
4d7bdd
%files dolphin
4d7bdd
%{_libdir}/libnextclouddolphinpluginhelper.so
4d7bdd
%{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
4d7bdd
%{_qt5_plugindir}/nextclouddolphinactionplugin.so
4d7bdd
%{_kf5_datadir}/kservices5/nextclouddolphinactionplugin.desktop
4d7bdd
%endif
4d7bdd
4d7bdd
%changelog
411814
* Wed Nov 06 2019 Germano Massullo <germano.massullo@gmail.com> - 2.6.1-1
411814
- 2.6.1 release
411814
- Replaced  Requires:python-caja with Requires:python3-caja in caja subpackage
411814
999bb9
* Fri Oct 04 2019 Germano Massullo <germano.massullo@gmail.com> - 2.6.0-1
999bb9
- 2.6.0 release
999bb9
e157bb
* Sun Sep 08 2019 Germano Massullo <germano.massullo@gmail.com> - 2.6.0.rc1-0.1
e157bb
- 2.6.0 RC1
e157bb
Germano Massullo 88e868
* Wed Aug 28 2019 Germano Massullo <germano.massullo@gmail.com> - 2.5.3-1
Germano Massullo 88e868
- 2.5.3 release
Timotheus Pokorra e87db4
- drop the icon patch because it has been fixed upstream.
Germano Massullo 88e868
cfe1d0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-3
cfe1d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cfe1d0
4c2015
* Fri May 10 2019 Germano Massullo <germano.massullo@gmail.com> - 2.5.2-2
4c2015
- added issue_1000.patch
4c2015
Germano Massullo d5cb02
* Thu Apr 11 2019 Germano Massullo <germano.massullo@gmail.com> - 2.5.2-1
Germano Massullo d5cb02
- 2.5.2 release
Germano Massullo 35947f
- Changed python2-sphinx requirement to python3-sphinx
Germano Massullo d5cb02
3a0adb
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
3a0adb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3a0adb
Germano Massullo 8324b1
* Wed Jan 09 2019 Germano Massullo <germano@germanomassullo.org> - 2.5.1-1
Germano Massullo 409246
- 2.5.1 release
Germano Massullo 409246
cda301
* Mon Nov 19 2018 Germano Massullo <germano@germanomassullo.org> - 2.5.0-2
cda301
- added ExcludeArch: ppc64, ppc64le, s390. Read https://bugzilla.redhat.com/show_bug.cgi?id=1651261
cda301
24a35f
* Thu Nov 15 2018 Germano Massullo <germano@germanomassullo.org> - 2.5.0-1
24a35f
- 2.5.0 release
24a35f
24a35f
* Wed Aug 15 2018 Germano Massullo <germano.massullo@gmail.com> - 2.5.0-0.1
24a35f
- 2.5.0 beta 1
207650
947e4a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
947e4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
947e4a
c487f0
* Tue Feb 13 2018 Germano Massullo <germano.massullo@gmail.com> - 2.4.0-1
c487f0
- 2.4.0 release
d1f897
- Updated syslibs patch, thanks to Robert-André Mauchin
d1f897
- Added comment to syslibs patch, thanks to Robert-André Mauchin
5e1808
- updated nextcloud client theming to 2.3.3
c487f0
ba6acf
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-3
ba6acf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ba6acf
9f84fe
* Mon Sep 18 2017 Nick Bebout <nb@fedoraproject.org> - 2.3.3-2
9f84fe
- Change to BR python2-sphinx instead of python-sphinx
9f84fe
b31bc5
* Mon Sep 11 2017 Nick Bebout <nb@fedoraproject.org> - 2.3.3-1
b31bc5
- update to 2.3.3
b31bc5
d4fed9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-4
d4fed9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d4fed9
c47cfd
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-3
c47cfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c47cfd
380b9e
* Sun Jun 04 2017 Germano Massullo <germano.massullo@gmail.com> - 2.3.2-2
380b9e
- added macros to build Caja subpackage only in Fedora, not EPEL (Mate is Fedora only)
380b9e
- added macro to build Dolphin (Plasma 5) subpackage only in Fedora >= 24 && EPEL > 7 (EPEL7 ships KDE 4)
380b9e
3a9290
* Sat Jun 03 2017 Germano Massullo <germano.massullo@gmail.com> - 2.3.2-1
3a9290
- Removed no longer necessary OpenSSL patch
3a9290
- 2.3.2 release
3a9290
- Remove caja extension hack. Included in upstream
3a9290
8160b7
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-10
8160b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
8160b7
249607
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-9
249607
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
249607
7cbcad
* Wed Jan 11 2017 Kalev Lember <klember@redhat.com> - 2.2.4-8
7cbcad
- Fix appdata file name to match with desktop file name
Timotheus Pokorra 312fc4
* Mon Jan 02 2017 Claudio Rodrigo Pereyra Diaz <elsupergomez@fedoraproject.org> - 2.2.4-7
Timotheus Pokorra 312fc4
- Add caja extension
Timotheus Pokorra 977ff2
* Mon Jan 02 2017 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 2.2.4-6
Timotheus Pokorra 2a822a
- Fix the desktop icon (#1409252)
Timotheus Pokorra 977ff2
* Thu Dec 08 2016 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 2.2.4-5
Timotheus Pokorra 977ff2
- Epel7: drop dolphin files since they are not included in build for Epel7
4d7bdd
* Wed Nov 23 2016 Nick Bebout <nb@fedoraproject.org> - 2.2.4-4
4d7bdd
- Update for review
4d7bdd
* Wed Nov 02 2016 Germano Massullo <germano.massullo@gmail.com> 2.2.4-3
4d7bdd
- First release