From 2f5fc075609382ef53ee3f6e0af154408c286d69 Mon Sep 17 00:00:00 2001 From: Chen Lei Date: Tue, 10 Aug 2010 10:55:11 +0800 Subject: [PATCH] Initial import --- .gitignore | 1 + accounts-qt-0.28-fix-64bit-compilation.patch | 28 +++++++ libaccounts-qt.spec | 88 ++++++++++++++++++++ sources | 1 + 4 files changed, 118 insertions(+) create mode 100644 accounts-qt-0.28-fix-64bit-compilation.patch create mode 100644 libaccounts-qt.spec diff --git a/.gitignore b/.gitignore index e69de29..227f2cd 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +accounts-qt-0.31.tar.gz diff --git a/accounts-qt-0.28-fix-64bit-compilation.patch b/accounts-qt-0.28-fix-64bit-compilation.patch new file mode 100644 index 0000000..923b856 --- /dev/null +++ b/accounts-qt-0.28-fix-64bit-compilation.patch @@ -0,0 +1,28 @@ +diff -Naur accounts-qt-0.28.org/Accounts/account.cpp accounts-qt-0.28/Accounts/account.cpp +--- accounts-qt-0.28.org/Accounts/account.cpp 2010-06-14 22:45:41.000000000 +0800 ++++ accounts-qt-0.28/Accounts/account.cpp 2010-07-23 20:22:54.335786908 +0800 +@@ -496,10 +496,10 @@ + value = g_value_get_uint(&val); + break; + case G_TYPE_INT64: +- value = g_value_get_int64(&val); ++ value = qint64(g_value_get_int64(&val)); + break; + case G_TYPE_UINT64: +- value = g_value_get_uint64(&val); ++ value = quint64(g_value_get_uint64(&val)); + break; + case G_TYPE_BOOLEAN: + value = g_value_get_boolean(&val); +diff -Naur accounts-qt-0.28.org/Accounts/account.h accounts-qt-0.28/Accounts/account.h +--- accounts-qt-0.28.org/Accounts/account.h 2010-06-14 22:45:41.000000000 +0800 ++++ accounts-qt-0.28/Accounts/account.h 2010-07-23 20:23:19.636035755 +0800 +@@ -46,7 +46,7 @@ + + namespace Accounts + { +-typedef quint32 AccountId; ++typedef quint64 AccountId; + typedef QList AccountIdList; + class Manager; + diff --git a/libaccounts-qt.spec b/libaccounts-qt.spec new file mode 100644 index 0000000..583e394 --- /dev/null +++ b/libaccounts-qt.spec @@ -0,0 +1,88 @@ +Name: libaccounts-qt +Version: 0.31 +Release: 3%{?dist} +Summary: Accounts framework +Group: System Environment/Libraries +License: LGPLv2 +URL: http://gitorious.org/accounts-sso/accounts-qt +Source0: accounts-qt-%{version}.tar.gz +# Fix compilation error in 64 bit arches +Patch0: accounts-qt-0.28-fix-64bit-compilation.patch +# extracted from http://repo.meego.com/MeeGo/builds/trunk/daily/core/repos/source/libaccounts-qt-0.31-1.5.src.rpm +BuildRequires: qt-devel libaccounts-glib-devel +BuildRequires: doxygen graphviz + +%description +Framework to provide accounts. + +%package devel +Summary: Development files for accounts-qt +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: qt4-devel%{?_isa} + +%description devel +Headers, development libraries and documentation for accounts-qt. + +%prep +%setup -q -n accounts-qt-%{version} +%patch0 -p1 + +sed -i 's\{INSTALL_PREFIX}/lib\{INSTALL_PREFIX}/%{_lib}\g' common-installs-config.pri +sed -i 's\{INSTALL_PREFIX}/lib\{INSTALL_PREFIX}/%{_lib}\g' Accounts/Accounts.pro +sed -i 's\usr/lib\usr/%{_lib}\g' Accounts/accounts.prf +sed -i 's\usr/lib\usr/%{_lib}\g' Accounts/accounts-qt.pc +sed -i 's\{prefix}/lib\{prefix}/%{_lib}\g' Accounts/accounts-qt.pc + +%build +export PATH=%{_qt4_bindir}:$PATH +%{_qt4_qmake} QMF_INSTALL_ROOT=%{_prefix} \ + CONFIG+=release accounts-qt.pro + +make %{?_smp_mflags} + +%install +make install INSTALL_ROOT=%{buildroot} + +rm -f %{buildroot}/%{_datadir}/doc/accounts-qt/html/installdox + +#remove tests for now +rm -rf %{buildroot}%{_datadir}/%{name}-tests +rm -f %{buildroot}%{_bindir}/accountstest + +mv %{buildroot}%{_docdir}/accounts-qt %{buildroot}%{_docdir}/libaccounts-qt + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING +%{_libdir}/lib*.so.* +%{_bindir}/account-tool + +%files devel +%defattr(-,root,root,-) +%{_libdir}/lib*.so +%{_includedir}/accounts-qt/ +%{_libdir}/pkgconfig/accounts-qt.pc +%{_libdir}/qt4/mkspecs/* +%{_docdir}/libaccounts-qt + +%changelog +* Fri Aug 06 2010 Chen Lei - 0.31-3 +- Fix doc path + +* Fri Aug 06 2010 Chen Lei - 0.31-2 +- Small fix for description + +* Fri Aug 06 2010 Chen Lei - 0.31-1 +- New upstream release +- Several changes against package review + +* Fri Jul 23 2010 Chen Lei - 0.28-1 +- Initial packaging for Fedora + +* Mon Jun 14 2010 Bernd Wachter - 0.28 +- Update to latest version diff --git a/sources b/sources index e69de29..3b60c28 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d6429682ff3623fcf0ddd2023603b491 accounts-qt-0.31.tar.gz