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