commit libaccounts-qt5 for openSUSE:Factory
Hello community,
here is the log from the commit of package libaccounts-qt5 for openSUSE:Factory checked in at 2019-10-02 11:55:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libaccounts-qt5 (Old)
and /work/SRC/openSUSE:Factory/.libaccounts-qt5.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libaccounts-qt5"
Wed Oct 2 11:55:09 2019 rev:4 rq:733537 version:1.16
Changes:
--------
--- /work/SRC/openSUSE:Factory/libaccounts-qt5/libaccounts-qt5.changes 2017-11-09 16:22:16.163409239 +0100
+++ /work/SRC/openSUSE:Factory/.libaccounts-qt5.new.2352/libaccounts-qt5.changes 2019-10-02 11:55:10.575604679 +0200
@@ -1,0 +2,10 @@
+Wed Sep 25 16:50:25 UTC 2019 - wbauer@tmo.at
+
+- Update to 1.16
+ * Use nullptr instead of 0 to suppress modern compiler warning
+ * Stop using deprecated API
+ * Add method to retrieve service-type descriptions
+ * Add method to retrieve service descriptions
+- Run spec-cleaner
+
+-------------------------------------------------------------------
Old:
----
libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8.tar.bz2
New:
----
libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libaccounts-qt5.spec ++++++
--- /var/tmp/diff_new_pack.oXmiO0/_old 2019-10-02 11:55:11.063603413 +0200
+++ /var/tmp/diff_new_pack.oXmiO0/_new 2019-10-02 11:55:11.067603402 +0200
@@ -1,7 +1,7 @@
#
# spec file for package libaccounts-qt5
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,25 +12,26 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _soname 1
%define _tarbasename libaccounts-qt
-%define _version VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8
+%define _version VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e
Name: libaccounts-qt5
-Version: 1.15
+Version: 1.16
Release: 0
Summary: Qt library for Single Sign On
-License: LGPL-2.1
+License: LGPL-2.1-only
Group: System/Libraries
-Url: https://gitlab.com/accounts-sso/libaccounts-qt
+URL: https://gitlab.com/accounts-sso/libaccounts-qt
Source: https://gitlab.com/accounts-sso/%{_tarbasename}/repository/VERSION_%{version}/archive.tar.bz2#/%{_tarbasename}-%{_version}.tar.bz2
Source99: baselibs.conf
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: graphviz
+BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Xml)
@@ -89,16 +90,14 @@
%fdupes %{buildroot}%{_docdir}/
%post -n libaccounts-qt5-%{_soname} -p /sbin/ldconfig
-
%postun -n libaccounts-qt5-%{_soname} -p /sbin/ldconfig
%files -n libaccounts-qt5-%{_soname}
-%defattr(-,root,root)
-%doc COPYING README.md
+%license COPYING
+%doc README.md
%{_libdir}/libaccounts-qt5.so.*
%files devel
-%defattr(-,root,root)
%{_includedir}/accounts-qt5/
%{_libdir}/libaccounts-qt5.so
%{_libdir}/pkgconfig/accounts-qt5.pc
@@ -106,7 +105,6 @@
%{_libdir}/cmake/AccountsQt5/
%files doc
-%defattr(-,root,root)
%doc %{_docdir}/accounts-qt/
%changelog
++++++ libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8.tar.bz2 -> libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/.gitlab-ci.yml new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/.gitlab-ci.yml
--- old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/.gitlab-ci.yml 2016-09-28 10:38:09.000000000 +0200
+++ new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/.gitlab-ci.yml 2019-09-18 21:00:34.000000000 +0200
@@ -1,4 +1,4 @@
-image: ubuntu:xenial
+image: ubuntu:bionic
cache:
key: apt-cache
@@ -7,7 +7,7 @@
before_script:
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
- - apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y qt5-qmake qtbase5-dev qtchooser pkg-config doxygen libaccounts-glib-dev
+ - apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y qt5-qmake qttools5-dev-tools qtbase5-dev qtchooser pkg-config doxygen libaccounts-glib-dev
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y dbus-test-runner lcov gcovr
build_amd64:
@@ -30,3 +30,25 @@
- make coverage-html
dependencies:
- build_amd64
+ artifacts:
+ paths:
+ - build/
+
+pages:
+ stage: deploy
+ script:
+ - find build | xargs touch # Avoid rebuilding
+ - cd build
+ - make docs
+ - cd ..
+ - mkdir public
+ - cp -a build/coverage-html public/coverage
+ - cp -a build/doc/html/* public/
+ dependencies:
+ - test_amd64
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/account-service.cpp new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/account-service.cpp
--- old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/account-service.cpp 2016-09-28 10:38:09.000000000 +0200
+++ new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/account-service.cpp 2019-09-18 21:00:34.000000000 +0200
@@ -153,7 +153,7 @@
g_signal_handlers_disconnect_by_func(m_accountService,
(void *)&onChanged, q);
g_object_unref(m_accountService);
- m_accountService = 0;
+ m_accountService = nullptr;
}
void AccountServicePrivate::onEnabled(AccountService *accountService,
@@ -173,7 +173,7 @@
* @param service A Service supported by the account.
*/
AccountService::AccountService(Account *account, const Service &service):
- QObject(0),
+ QObject(nullptr),
d_ptr(new AccountServicePrivate(account, service, this))
{
}
@@ -389,7 +389,7 @@
Q_D(AccountService);
GVariant *variant = qVariantToGVariant(value);
- if (variant == 0) {
+ if (variant == nullptr) {
return;
}
@@ -428,7 +428,7 @@
ag_account_service_get_variant(d->m_accountService,
ba.constData(),
&settingSource);
- if (source != 0) {
+ if (source != nullptr) {
switch (settingSource) {
case AG_SETTING_SOURCE_ACCOUNT: *source = ACCOUNT; break;
case AG_SETTING_SOURCE_PROFILE: *source = TEMPLATE; break;
@@ -436,7 +436,7 @@
}
}
- return (variant != 0) ? gVariantToQVariant(variant) : defaultValue;
+ return (variant != nullptr) ? gVariantToQVariant(variant) : defaultValue;
}
/*!
@@ -472,11 +472,11 @@
ag_account_service_get_changed_fields(d->m_accountService);
QStringList keyList;
- if (changedFields == 0)
+ if (changedFields == nullptr)
return keyList;
gchar **keys = changedFields;
- while (*keys != 0) {
+ while (*keys != nullptr) {
keyList.append(QString(ASCII(*keys)));
keys++;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/account-service.h new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/account-service.h
--- old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/account-service.h 2016-09-28 10:38:09.000000000 +0200
+++ new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/account-service.h 2019-09-18 21:00:34.000000000 +0200
@@ -74,9 +74,9 @@
QVariant value(const QString &key,
const QVariant &defaultValue,
- SettingSource *source = 0) const;
- QVariant value(const QString &key, SettingSource *source = 0) const;
- QVariant value(const char *key, SettingSource *source = 0) const;
+ SettingSource *source = nullptr) const;
+ QVariant value(const QString &key, SettingSource *source = nullptr) const;
+ QVariant value(const char *key, SettingSource *source = nullptr) const;
QStringList changedFields() const;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/account.cpp new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/account.cpp
--- old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/account.cpp 2016-09-28 10:38:09.000000000 +0200
+++ new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/account.cpp 2019-09-18 21:00:34.000000000 +0200
@@ -156,7 +156,7 @@
void Account::Private::init(Account *account)
{
- if (m_account == 0) return;
+ if (m_account == nullptr) return;
g_signal_connect_swapped(m_account, "display-name-changed",
G_CALLBACK(&Private::on_display_name_changed),
account);
@@ -224,16 +224,16 @@
*/
Account *Account::fromId(Manager *manager, AccountId id, QObject *parent)
{
- GError *error = 0;
+ GError *error = nullptr;
AgAccount *account = ag_manager_load_account(manager->d->m_manager, id,
&error);
- if (account == 0) {
- Q_ASSERT(error != 0);
+ if (account == nullptr) {
+ Q_ASSERT(error != nullptr);
manager->d->lastError = Error(error);
g_error_free(error);
return 0;
}
- Q_ASSERT(error == 0);
+ Q_ASSERT(error == nullptr);
return new Account(new Private(manager, account), parent);
}
@@ -258,7 +258,7 @@
(d->m_account, (void *)&Private::on_deleted, this);
g_object_unref(d->m_account);
delete d;
- d = 0;
+ d = nullptr;
}
/*!
@@ -608,7 +608,7 @@
void Account::setValue(const QString &key, const QVariant &value)
{
GVariant *variant = qVariantToGVariant(value);
- if (variant == 0) {
+ if (variant == nullptr) {
return;
}
@@ -657,7 +657,7 @@
AgSettingSource settingSource;
GVariant *variant =
ag_account_get_variant(d->m_account, ba.constData(), &settingSource);
- if (source != 0) {
+ if (source != nullptr) {
switch (settingSource) {
case AG_SETTING_SOURCE_ACCOUNT: *source = ACCOUNT; break;
case AG_SETTING_SOURCE_PROFILE: *source = TEMPLATE; break;
@@ -665,7 +665,7 @@
}
}
- return (variant != 0) ? gVariantToQVariant(variant) : defaultValue;
+ return (variant != nullptr) ? gVariantToQVariant(variant) : defaultValue;
}
/*!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/account.h new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/account.h
--- old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/account.h 2016-09-28 10:38:09.000000000 +0200
+++ new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/account.h 2019-09-18 21:00:34.000000000 +0200
@@ -75,7 +75,7 @@
/* We don't want to document these.
* \cond
*/
- Watch(QObject *parent = 0);
+ Watch(QObject *parent = nullptr);
~Watch();
void setWatch(AgAccountWatch w) { watch = w; };
@@ -97,11 +97,11 @@
Q_OBJECT
public:
- Account(Manager *manager, const QString &provider, QObject *parent = 0);
+ Account(Manager *manager, const QString &provider, QObject *parent = nullptr);
virtual ~Account();
static Account *fromId(Manager *manager, AccountId id,
- QObject *parent = 0);
+ QObject *parent = nullptr);
AccountId id() const;
@@ -159,20 +159,20 @@
void setValue(const QString &key, const QVariant &value);
QVariant value(const QString &key,
const QVariant &defaultValue = QVariant(),
- SettingSource *source = 0) const;
+ SettingSource *source = nullptr) const;
SettingSource value(const QString &key, QVariant &value) const;
QString valueAsString(const QString &key,
- QString default_value = QString::null,
- SettingSource *source = 0) const;
+ QString default_value = QString(),
+ SettingSource *source = nullptr) const;
int valueAsInt(const QString &key,
int default_value = 0,
- SettingSource *source = 0) const;
+ SettingSource *source = nullptr) const;
quint64 valueAsUInt64(const QString &key,
quint64 default_value = 0,
- SettingSource *source = 0) const;
+ SettingSource *source = nullptr) const;
bool valueAsBool(const QString &key,
bool default_value = false,
- SettingSource *source = 0) const;
+ SettingSource *source = nullptr) const;
Watch *watchKey(const QString &key = QString());
@@ -198,7 +198,7 @@
AgAccount *account();
// Don't include private data in docs: \cond
class Private;
- Account(Private *d, QObject *parent = 0);
+ Account(Private *d, QObject *parent = nullptr);
friend class Manager;
friend class Account::Private;
friend class Watch;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/application.cpp new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/application.cpp
--- old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/application.cpp 2016-09-28 10:38:09.000000000 +0200
+++ new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/application.cpp 2019-09-18 21:00:34.000000000 +0200
@@ -51,7 +51,7 @@
* Construct an invalid application.
*/
Application::Application():
- m_application(0)
+ m_application(nullptr)
{
}
@@ -62,17 +62,17 @@
Application::Application(const Application &other):
m_application(other.m_application)
{
- if (m_application != 0)
+ if (m_application != nullptr)
ag_application_ref(m_application);
}
Application &Application::operator=(const Application &other)
{
if (m_application == other.m_application) return *this;
- if (m_application != 0)
+ if (m_application != nullptr)
ag_application_unref(m_application);
m_application = other.m_application;
- if (m_application != 0)
+ if (m_application != nullptr)
ag_application_ref(m_application);
return *this;
}
@@ -82,9 +82,9 @@
*/
Application::~Application()
{
- if (m_application != 0) {
+ if (m_application != nullptr) {
ag_application_unref(m_application);
- m_application = 0;
+ m_application = nullptr;
}
}
@@ -94,7 +94,7 @@
*/
bool Application::isValid() const
{
- return m_application != 0;
+ return m_application != nullptr;
}
/*!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/auth-data.cpp new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/auth-data.cpp
--- old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/auth-data.cpp 2016-09-28 10:38:09.000000000 +0200
+++ new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/auth-data.cpp 2019-09-18 21:00:34.000000000 +0200
@@ -65,7 +65,7 @@
AuthData::~AuthData()
{
ag_auth_data_unref(m_authData);
- m_authData = 0;
+ m_authData = nullptr;
}
/*!
@@ -106,7 +106,7 @@
GVariant *glibParameters;
glibParameters = ag_auth_data_get_login_parameters(m_authData, NULL);
- if (glibParameters == 0) return QVariantMap();
+ if (glibParameters == nullptr) return QVariantMap();
QVariant variant = gVariantToQVariant(glibParameters);
g_variant_unref(glibParameters);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/manager.cpp new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/manager.cpp
--- old/libaccounts-qt-VERSION_1.15-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8/Accounts/manager.cpp 2016-09-28 10:38:09.000000000 +0200
+++ new/libaccounts-qt-VERSION_1.16-525ec684cfa8d234f797d7e49e21c476eea04d8e/Accounts/manager.cpp 2019-09-18 21:00:34.000000000 +0200
@@ -94,8 +94,8 @@
void Manager::Private::init(Manager *q, AgManager *manager)
{
- Q_ASSERT(q_ptr == 0);
- Q_ASSERT(m_manager == 0);
+ Q_ASSERT(q_ptr == nullptr);
+ Q_ASSERT(m_manager == nullptr);
q_ptr = q;
m_manager = manager;
@@ -149,7 +149,7 @@
{
AgManager *manager = ag_manager_new();
- if (manager != 0) {
+ if (manager != nullptr) {
d->init(this, manager);
} else {
qWarning() << "Manager could not be created. DB is locked";
@@ -177,7 +177,7 @@
AgManager *manager =
ag_manager_new_for_service_type(serviceType.toUtf8().constData());
- if (manager != 0) {
+ if (manager != nullptr) {
d->init(this, manager);
} else {
qWarning() << "Manager could not be created, DB is locked";
@@ -227,7 +227,7 @@
g_object_unref(d->m_manager);
delete d;
- d = 0;
+ d = nullptr;
}
/*!
@@ -245,7 +245,7 @@
Account *Manager::account(const AccountId &id) const
{
Account *account = d->m_accounts.value(id, 0);
- if (account == 0) {
+ if (account == nullptr) {
/* Create a new account object */
account = Account::fromId(const_cast
participants (1)
-
root