diff --git a/.gitignore b/.gitignore index e69de29..8d5bae5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/signon-ui-0.15.tar.bz2 diff --git a/signon-ui-0.15-fix-qt5-build.patch b/signon-ui-0.15-fix-qt5-build.patch new file mode 100644 index 0000000..2035c1e --- /dev/null +++ b/signon-ui-0.15-fix-qt5-build.patch @@ -0,0 +1,35 @@ +diff --git a/src/request.cpp b/src/request.cpp +index 5556c79..4f51e8e 100644 +--- a/src/request.cpp ++++ b/src/request.cpp +@@ -81,9 +81,7 @@ public: + } + + private Q_SLOTS: +-#if HAS_XEMBED + void onEmbedError(); +-#endif + void onIndicatorCallFinished(QDBusPendingCallWatcher *watcher); + + private: +@@ -194,9 +192,9 @@ void RequestPrivate::setWidget(QWidget *widget) + #endif + } + +-#if HAS_XEMBED + void RequestPrivate::onEmbedError() + { ++#if HAS_XEMBED + Q_Q(Request); + + QX11EmbedWidget *embed = qobject_cast(sender()); +@@ -204,8 +202,8 @@ void RequestPrivate::onEmbedError() + + q->fail(SIGNON_UI_ERROR_EMBEDDING_FAILED, + QString("Embedding signon UI failed: %1").arg(embed->error())); +-} + #endif ++} + + Accounts::Account *RequestPrivate::findAccount() + { diff --git a/signon-ui.spec b/signon-ui.spec new file mode 100644 index 0000000..f5c6333 --- /dev/null +++ b/signon-ui.spec @@ -0,0 +1,74 @@ +Name: signon-ui +Version: 0.15 +Release: 2%{?dist} +Summary: Online Accounts Sign-on Ui + +License: GPLv3 +URL: https://launchpad.net/signon-ui + +Source0: https://launchpad.net/signon-ui/trunk/%{version}/+download/signon-ui-%{version}.tar.bz2 + +Patch0: signon-ui-0.15-fix-qt5-build.patch + +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtwebkit-devel +BuildRequires: libaccounts-qt5-devel +BuildRequires: signon-qt5-devel +BuildRequires: libproxy-devel +BuildRequires: libnotify-devel + +Requires: dbus + +%description +Sign-on UI is the component responsible for handling the user interactions which +can happen during the login process of an online account. +It can show password dialogs and dialogs with embedded web pages. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q -n signon-ui-%{version} + +%patch0 -p1 -b .qt5 + + +%build +export PATH=%{_qt5_bindir}:$PATH +%{qmake_qt5} QMF_INSTALL_ROOT=%{_prefix} \ + CONFIG+=release signon-ui.pro + +make %{?_smp_mflags} + + +%install +make install INSTALL_ROOT=%{buildroot} + +# Remove installed tests +rm %{buildroot}/%{_bindir}/signon-ui-unittest +rm %{buildroot}/%{_bindir}/tst_inactivity_timer + +# Own directory where others can install provider-specific configuration +mkdir -p %{buildroot}/%{_sysconfdir}/signon-ui/webkit-options.d + +%files +%doc README TODO NOTES +%license COPYING +%{_bindir}/signon-ui +%{_datadir}/dbus-1/services/*.service +%{_sysconfdir}/signon-ui + +%changelog +* Wed Mar 25 2015 Daniel Vrátil - 0.15-2 +- fix license +- fix typo in mkdir arguments +- use %%license + +* Tue Mar 17 2015 Daniel Vrátil - 0.15-1 +- Initial version diff --git a/sources b/sources index e69de29..73a95c5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +67ac8ce4cc85b69ec6ff67ae892fda90 signon-ui-0.15.tar.bz2