Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > 6bf0c0125a9967c23981dd8bfc05c267 > files > 2

nextcloud-client-2.6.2-1.mga7.src.rpm

%global _hardened_build 1
%define _cmake_skip_rpath %nil
# exclude devel(libocsync)
%global __requires_exclude  ^(devel\\(libocsync.*)$

%define nextcloudsync_major 0
%define libnextcloudsync %mklibname nextcloudsync %nextcloudsync_major

%define libocsync_major 0
%define liblibocsync %mklibname ocsync %libocsync_major
Name:           nextcloud-client
Version:        2.6.2
Release:        %mkrel 1
Summary:        The Nextcloud Client
Group:          Archiving/Backup

# -libs are LGPLv2+, rest GPLv2
License:        LGPLv2+ and GPLv2
Url:            https://nextcloud.com/install/#install-clients
Source0:        https://github.com/nextcloud/desktop/archive/v%{version}.tar.gz
Source2:        %{name}.appdata.xml

Recommends:     libgnome-keyring
Requires:       %{libnextcloudsync} = %{version}-%{release}
Requires:       %{liblibocsync} = %{version}-%{release}

BuildRequires:  desktop-file-utils
BuildRequires:  doxygen
BuildRequires:  appstream-util
BuildRequires:  inotify-tools
BuildRequires:  python3dist(sphinx)
BuildRequires:  pkgconfig(neon)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(cloudproviders)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  kf5-macros
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(Qt5Keychain)
BuildRequires:  qtsingleapplication-qt5-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(Qt5WebEngineWidgets)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Help)
BuildRequires:  pkgconfig(Qt5Xml)
Provides:       owncloud-client = %version-%release
Obsoletes:      owncloud-client < 2.2.4-2

%description
Nextcloud-client enables you to connect to your private Nextcloud Server.
With it you can create folders in your home directory, and keep the contents
of those folders synced with your Nextcloud server. Simply copy a file into
the directory and the Nextcloud Client does the rest.

%files
%{_bindir}/nextcloud
%{_bindir}/nextcloudcmd
%{_datadir}/applications/nextcloud.desktop
%dir %{_datadir}/nextcloud
%{_datadir}/nextcloud/i18n/
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/appdata/%{name}.appdata.xml
%dir %{_sysconfdir}/Nextcloud
%{_sysconfdir}/Nextcloud/sync-exclude.lst
%{_datadir}/cloud-providers/com.nextcloudgmbh.Nextcloud.ini
%{_datadir}/dbus-1/services/com.nextcloudgmbh.Nextcloud.service

%package nautilus
Summary:        nextcloud client nautilus extension
Requires:       nautilus
Requires:       nautilus-python
Requires:       %{name} = %{version}-%{release}

%description nautilus
The nextcloud desktop client nautilus extension.

%files nautilus
%{_datadir}/nautilus-python/extensions/*

%package nemo
Summary:        Nemo overlay icons
Requires:       nemo
Requires:       nemo-python
Requires:       %{name} = %{version}-%{release}

%description nemo
This package provides overlay icons to visualize the sync state
in the nemo file manager.

%files nemo
%{_datadir}/nemo-python/extensions/*

%package caja
Summary:        Caja overlay icons
Requires:       caja
Requires:       python-caja
Requires:       %{name} = %{version}-%{release}

%description caja
This package provides overlay icons to visualize the sync state
in the caja file manager.

%files caja
%{_datadir}/caja-python/extensions/*

%package dolphin
Summary:        Dolphin overlay icons
Requires:       dolphin
Requires:       %{name} = %{version}-%{release}

%description dolphin
The nextcloud desktop client dolphin extension.

%files dolphin
%{_kf5_libdir}/libnextclouddolphinpluginhelper.so
%{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
%{_qt5_plugindir}/nextclouddolphinactionplugin.so
%{_kf5_services}/nextclouddolphinactionplugin.desktop

%package -n %libnextcloudsync
Summary:        The Nextcloud Client Libraries
Group:          System/Libraries
# From owncloud-client
Obsoletes:      %{_lib}owncloudsync2 < 2.2.4-2

%description -n %libnextcloudsync
The Nextcloud Client Libraries.

%files -n %libnextcloudsync
%{_libdir}/libnextcloudsync.so.%nextcloudsync_major
%{_libdir}/libnextcloudsync.so.%version

%package -n %liblibocsync
Summary:        The Nextcloud Client Libraries
Group:          System/Libraries
Obsoletes:      %{_lib}libocsync0 < 2.2.4-4
# From owncloud-client
Obsoletes:      %{_lib}ocsync2 < 2.2.4-2

%description -n %liblibocsync
The Nextcloud Client Libraries.

%files -n %liblibocsync
%dir %_libdir/nextcloud
%_libdir/nextcloud/libocsync.so.%{libocsync_major}
%_libdir/nextcloud/libocsync.so.%{version}

%define develname %mklibname %{name} -d

%package -n %{develname}
Summary:        Development files for nextcloud-client
License:        LGPLv2+
Requires:       %libnextcloudsync = %{version}-%{release}
Requires:       %liblibocsync = %{version}-%{release}
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}
Obsoletes:      %{name}-devel < 2.2.4-4
# From owncloud-client
Obsoletes:      %{_lib}owncloud-client-devel < 2.2.4-2

%description -n %{develname}
Development headers for use of the nextcloud-client library.

%files -n %{develname}
%{_libdir}/libnextcloudsync.so
%{_includedir}/nextcloudsync/
%{_libdir}/libnextcloudsync.so
%{_libdir}/nextcloud/libocsync.so

%prep
%setup -q -n desktop-%{version}
%autopatch -p1

%build

%cmake_kf5 \
    -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
    -DCMAKE_INSTALL_PREFIX=%{_usr} \
    -DINOTIFY_LIBRARY="%{_libdir}/libc.so"
%make_build


%install
%make_install -C build

#%find_lang client --with-qt
mkdir -p %{buildroot}%{_datadir}/appdata/
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml


%changelog
* Wed Jan 08 2020 mokraemer <mokraemer> 2.6.2-1.mga7
+ Revision: 1477246
- update to version 2.6.2 (mga#26030)
+ zezinho <zezinho>
- bugfix update to mga7 2.6.0 version mga#25551
- bugfix update to mga7 2.5.2rc version mga#25551

* Sun Mar 31 2019 umeabot <umeabot> 2.5.2-0.rc1.3.mga7
+ Revision: 1383532
- Qt5 Rebuild

* Wed Mar 13 2019 guillomovitch <guillomovitch> 2.5.2-0.rc1.2.mga7
+ Revision: 1375579
- drop unknown NOSHIBBOLETH build flag
- add soft dependency on libgnome-keyring

* Thu Mar 07 2019 guillomovitch <guillomovitch> 2.5.2-0.rc1.1.mga7
+ Revision: 1372354
- new version 2.5.2 (rc1)

* Fri Jan 18 2019 guillomovitch <guillomovitch> 2.5.1-1.mga7
+ Revision: 1357916
- new version 2.5.1

* Wed Nov 28 2018 mokraemer <mokraemer> 2.5.0-1.mga7
+ Revision: 1336597
- new version 2.5.0

* Sun Sep 23 2018 umeabot <umeabot> 2.4.1-2.mga7
+ Revision: 1299734
- Mageia 7 Mass Rebuild

* Wed Aug 01 2018 guillomovitch <guillomovitch> 2.4.1-1.mga7
+ Revision: 1246753
- new version 2.4.1

* Wed Jul 25 2018 daviddavid <daviddavid> 2.3.3-2.mga7
+ Revision: 1245192
- add patch to fix build with new Qt5 >= 5.11.0

* Sun Dec 31 2017 guillomovitch <guillomovitch> 2.3.3-1.mga7
+ Revision: 1188211
- new version 2.3.3

* Mon Jul 24 2017 guillomovitch <guillomovitch> 2.3.2-1.mga7
+ Revision: 1130020
- new version 2.3.2

* Sun Jan 22 2017 daviddavid <daviddavid> 2.2.4-6.mga6
+ Revision: 1082996
- add patch to fix wrong library name in nextclouddolphinactionplugin.desktop file (mga#20156)
- rebase syslibs patch like fedora

* Sun Nov 06 2016 daviddavid <daviddavid> 2.2.4-5.mga6
+ Revision: 1065511
- disable skip rpath
- filter out bogus requires on devel(libocsync)
- fix desktop file icon not displayed in menu application

* Fri Nov 04 2016 daviddavid <daviddavid> 2.2.4-4.mga6
+ Revision: 1065365
- obsoletes more owncloud-client stuff
- rename liblibocsync0 to libocsync0
- rename nextcloud-client-devel to libnextcloud-client-devel
- fix some ownership dir

* Fri Nov 04 2016 neoclust <neoclust> 2.2.4-3.mga6
+ Revision: 1065359
- Fix requires

* Mon Oct 31 2016 neoclust <neoclust> 2.2.4-2.mga6
+ Revision: 1064247
- imported package nextcloud-client