update to 0.8.8

libpackagekit-qt2: require PackageKit
bump epoch up [release 0.8.8-1mamba;Mon Jul 01 2013]
This commit is contained in:
Silvan Calarco 2024-01-06 08:22:16 +01:00
parent 55015f9a3b
commit 0f3dfc56d0
3 changed files with 159 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# packagekit-qt # packagekit-qt
Qt bindings for PackageKit.

View File

@ -0,0 +1,61 @@
diff -Nru packagekit-qt-20130306git.orig/src/transaction.cpp packagekit-qt-20130306git/src/transaction.cpp
--- packagekit-qt-20130306git.orig/src/transaction.cpp 2013-03-06 10:59:19.000000000 +0100
+++ packagekit-qt-20130306git/src/transaction.cpp 2013-03-06 11:35:16.753175219 +0100
@@ -370,15 +370,6 @@
return Transaction::StatusUnknown;
}
-Transaction::TransactionFlags Transaction::transactionFlags() const
-{
- Q_D(const Transaction);
- if (d->p) {
- return static_cast<Transaction::TransactionFlags>(d->p->transactionFlags());
- }
- return Transaction::TransactionFlagNone;
-}
-
QDateTime Transaction::timespec() const
{
Q_D(const Transaction);
@@ -616,16 +607,7 @@
void Transaction::searchGroups(Groups groups, Transaction::Filters filters)
{
- QStringList groupsStringList;
- for (int i = 1; i < 64; ++i) {
- if (groups & i) {
- Transaction::Group group = static_cast<Transaction::Group>(i);
- if (group != Transaction::GroupUnknown) {
- groupsStringList << Daemon::enumToString<Transaction>(group, "Group");
- }
- }
- }
- searchGroups(groupsStringList, filters);
+ searchGroups(groups, filters);
}
void Transaction::searchNames(const QStringList &search, Transaction::Filters filters)
diff -Nru packagekit-qt-20130306git.orig/src/transaction.h packagekit-qt-20130306git/src/transaction.h
--- packagekit-qt-20130306git.orig/src/transaction.h 2013-03-06 10:59:19.000000000 +0100
+++ packagekit-qt-20130306git/src/transaction.h 2013-03-06 11:35:48.386732801 +0100
@@ -76,7 +76,6 @@
Q_PROPERTY(qulonglong downloadSizeRemaining READ downloadSizeRemaining)
Q_PROPERTY(Role role READ role NOTIFY changed)
Q_PROPERTY(Status status READ status NOTIFY changed)
- Q_PROPERTY(TransactionFlags transactionFlags READ transactionFlags NOTIFY changed)
public:
/**
* Describes an error at the daemon level (for example, PackageKit crashes or is unreachable)
@@ -611,12 +610,6 @@
Status status() const;
/**
- * The current flags set in this transaction
- * \return a \sa Transaction::TransactionFlags of this transaction
- */
- TransactionFlags transactionFlags() const;
-
- /**
* \brief Tells the underlying package manager to use the given \p hints
*
* This method allows the calling session to set transaction \p hints for

96
packagekit-qt.spec Normal file
View File

@ -0,0 +1,96 @@
%define tagver %(echo %version | tr . _)
Name: packagekit-qt
Epoch: 1
Version: 0.8.8
Release: 1mamba
Summary: Qt bindings for PackageKit
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.packagekit.org
## GITSOURCE git://gitorious.org/packagekit/packagekit-qt.git
Source: git://gitorious.org/packagekit/packagekit-qt.git/QPACKAGEKIT_%{tagver}/packagekit-qt-%{version}.tar.bz2
Patch0: packagekit-qt-20130306git-revert-to-tag-QPACKAGEKIT_0_8_7.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: PackageKit-devel >= 0.8.8
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Qt bindings for PackageKit.
%package -n lib%{name}2
Summary: Shared libraries for %{name}
Group: System/Libraries
Provides: PackageKit-qt
Obsoletes: PackageKit-qt
Provides: PackageKit-qt2
Obsoletes: PackageKit-qt2
Requires: PackageKit >= 0.8.7
%description -n lib%{name}2
Qt bindings for PackageKit.
%package -n lib%{name}2-devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: lib%{name}2 = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
Provides: PackageKit-qt-devel
Obsoletes: PackageKit-qt-devel
Provides: PackageKit-qt2-devel
Obsoletes: PackageKit-qt2-devel
%description -n lib%{name}2-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#%patch0 -p1
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name}2 -p /sbin/ldconfig
%postun -n lib%{name}2 -p /sbin/ldconfig
%files -n lib%{name}2
%defattr(-,root,root)
%{_libdir}/libpackagekit-qt2.so.*
%doc AUTHORS COPYING
%files -n lib%{name}2-devel
%defattr(-,root,root)
%dir %{_includedir}/PackageKit/packagekit-qt2
%{_includedir}/PackageKit/packagekit-qt2/*
%{_libdir}/cmake/packagekit-qt2/packagekit-qt2-config-version.cmake
%{_libdir}/cmake/packagekit-qt2/packagekit-qt2-config.cmake
%{_libdir}/libpackagekit-qt2.so
%{_libdir}/pkgconfig/packagekit-qt2.pc
%doc NEWS TODO
%changelog
* Mon Jul 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.8-1mamba
- update to 0.8.8
- libpackagekit-qt2: require PackageKit
- bump epoch up
* Wed Mar 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20130306git-1mamba
- package created by silvan using the webbuild interface