diff options
Diffstat (limited to 'mandriva/2010.2/applications/kmetabar')
3 files changed, 204 insertions, 0 deletions
diff --git a/mandriva/2010.2/applications/kmetabar/kmetabar-fix.patch b/mandriva/2010.2/applications/kmetabar/kmetabar-fix.patch new file mode 100644 index 000000000..6e8ef1a23 --- /dev/null +++ b/mandriva/2010.2/applications/kmetabar/kmetabar-fix.patch @@ -0,0 +1,84 @@ +diff -Naur kmetabar.orig/src/kmetabar_widget.cpp kmetabar/src/kmetabar_widget.cpp +--- kmetabar.orig/src/kmetabar_widget.cpp 2006-11-06 18:48:04.000000000 +0200 ++++ kmetabar/src/kmetabar_widget.cpp 2006-11-06 18:49:40.000000000 +0200 +@@ -141,7 +141,7 @@ + //connect(config_button, SIGNAL(clicked()), this, SLOT(slotShowConfigDialog())); + + icon = new KURLLabel(main_frame_bottom); +- icon->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); ++ //icon->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + connect(icon, SIGNAL(leftClickedURL()), this, SLOT(slotShowPropertiesDialog())); + + name_label = new KSqueezedTextLabel(main_frame_bottom); +@@ -176,28 +176,28 @@ + top_action_frame->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + + action1 = new KURLLabel(top_action_frame); +- action1->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); ++ //action1->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); + action1->setAlignment ( Qt::AlignHCenter ); + connect (action1, SIGNAL(leftClickedURL()), this, SLOT(slotaction1())); + connect (action1, SIGNAL(enteredURL(const QString&)), this, SLOT(slotMessage1(const QString&))); + connect (action1, SIGNAL(leftURL()), this, SLOT(slotClearMsg())); + + action2 = new KURLLabel(top_action_frame); +- action2->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); ++ //action2->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); + action2->setAlignment ( Qt::AlignHCenter ); + connect (action2, SIGNAL(leftClickedURL()), this, SLOT(slotaction2())); + connect (action2, SIGNAL(enteredURL(const QString&)), this, SLOT(slotMessage2(const QString&))); + connect (action2, SIGNAL(leftURL()), this, SLOT(slotClearMsg())); + + action3 = new KURLLabel(top_action_frame); +- action3->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); ++ //action3->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); + action3->setAlignment ( Qt::AlignHCenter ); + connect (action3, SIGNAL(leftClickedURL()), this, SLOT(slotaction3())); + connect (action3, SIGNAL(enteredURL(const QString&)), this, SLOT(slotMessage3(const QString&))); + connect (action3, SIGNAL(leftURL()), this, SLOT(slotClearMsg())); + + action4 = new KURLLabel(top_action_frame); +- action4->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); ++ //action4->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); + action4->setAlignment ( Qt::AlignHCenter ); + connect (action4, SIGNAL(leftClickedURL()), this, SLOT(slotaction4())); + connect (action4, SIGNAL(enteredURL(const QString&)), this, SLOT(slotMessage4(const QString&))); +@@ -633,7 +633,7 @@ + show_more = new KURLLabel(open_frame->mainWidget()); + show_more->setURL("more"); + show_more->setPixmap(SmallIcon("1downarrow")); +- show_more->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); ++ //show_more->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + show_more->setAlignment(Qt::AlignRight); + show_more->show(); + +@@ -1801,7 +1801,7 @@ + show_more_actions = new KURLLabel(action_frame->mainWidget()); + show_more_actions->setURL("more"); + show_more_actions->setPixmap(SmallIcon("1downarrow")); +- show_more_actions->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); ++ //show_more_actions->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + show_more_actions->setAlignment(Qt::AlignRight); + + connect(show_more_actions, SIGNAL(leftClickedURL()), this, SLOT(slotShowMoreActions())); +diff -Naur kmetabar.orig/src/metaframe.cpp kmetabar/src/metaframe.cpp +--- kmetabar.orig/src/metaframe.cpp 2006-11-06 18:48:04.000000000 +0200 ++++ kmetabar/src/metaframe.cpp 2006-11-06 18:56:07.000000000 +0200 +@@ -53,7 +53,7 @@ + isToggled = false; + + titleButton = new HeaderLabel(this, isToggled); +- titleButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); ++ //titleButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + titleButton->setAlignment( Qt::AlignHCenter ); + connect (titleButton, SIGNAL(leftClickedURL()), this, SLOT(slotaction())); + +@@ -216,7 +216,7 @@ + HeaderLabel::HeaderLabel(QWidget *parent, bool toggled) : KURLLabel(parent) + { + isToggled = toggled; +- this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); ++ //this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + this->setAlignment( Qt::AlignHCenter ); + this->setGlow(false); + this->setFloat(true); diff --git a/mandriva/2010.2/applications/kmetabar/kmetabar-kdemacros.diff b/mandriva/2010.2/applications/kmetabar/kmetabar-kdemacros.diff new file mode 100644 index 000000000..1b796a0a6 --- /dev/null +++ b/mandriva/2010.2/applications/kmetabar/kmetabar-kdemacros.diff @@ -0,0 +1,52 @@ +--- src/kmetabar.h.orig 2005-09-06 12:12:39.000000000 +0200 ++++ src/kmetabar.h 2005-09-06 12:12:59.000000000 +0200 +@@ -8,10 +8,15 @@ + #include <konqsidebarplugin.h> + #include <qstring.h> + #include <qscrollview.h> ++#include <kdemacros.h> + + #include "kmetabar_widget.h" + #include "metascrollview.h" + ++#ifndef KDE_EXPORT ++#define KDE_EXPORT ++#endif ++ + class Metabar : public KonqSidebarPlugin + { + Q_OBJECT +--- src/kmetabar.cpp.orig 2005-09-06 12:00:33.000000000 +0200 ++++ src/kmetabar.cpp 2005-09-06 12:16:13.000000000 +0200 +@@ -2,9 +2,13 @@ + #include <kinstance.h> + #include <qwidget.h> + #include <kdebug.h> ++#include <kdemacros.h> + #include "kmetabar.h" + #include "kmetabar.moc" + ++#ifndef KDE_EXPORT ++#define KDE_EXPORT ++#endif + + Metabar::Metabar(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name): + KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name) +@@ -40,7 +44,7 @@ + + + extern "C" { +- KDE_EXPORT bool add_konqsidebar_kmetabar(QString* fn, QString* param, QMap<QString,QString> *map) { ++ bool add_konqsidebar_kmetabar(QString* fn, QString* param, QMap<QString,QString> *map) { + Q_UNUSED(param); + + map->insert("Type", "Link"); +@@ -55,7 +59,7 @@ + + extern "C" + { +- KDE_EXPORT void* create_konqsidebar_kmetabar(KInstance *instance,QObject *par,QWidget *widp,QString &desktopname,const char *name) ++ void* create_konqsidebar_kmetabar(KInstance *instance,QObject *par,QWidget *widp,QString &desktopname,const char *name) + { + return new Metabar(instance,par,widp,desktopname,name); + } diff --git a/mandriva/2010.2/applications/kmetabar/kmetabar.spec b/mandriva/2010.2/applications/kmetabar/kmetabar.spec new file mode 100644 index 000000000..a454c37c9 --- /dev/null +++ b/mandriva/2010.2/applications/kmetabar/kmetabar.spec @@ -0,0 +1,68 @@ +%define realversion 0.2-beta2 + + + +Summary: Konqueror Sidebar Plugin that shows Metadata and Information +Name: kmetabar +Version: 0.2beta2 +Release: %mkrel 3 +Source: http://kde-apps.org/content/files/28725-kmetabar-%{realversion}.tar.bz2 +URL: http://kde-apps.org/content/show.php?content=28725 +Patch0: kmetabar-fix.patch +Patch1: kmetabar-kdemacros.diff +Group: Graphical desktop/KDE3 +License: GPLv2+ +BuildRoot: %{_tmppath}/build-%{_name}-%{_version} +Requires: kdelibs3 +Requires: arts, expat, fam, jack, kdebase3, libogg, libvorbis, glib2 +Requires: libart_lgpl, libpng, libstdc++, libgcc, resmgr, zlib +BuildRequires: kdelibs3-devel,arts-devel, expat-devel, fam-devel +BuildRequires: kdebase3-devel,libogg-devel +BuildRequires: libvorbis-devel, glib2-devel +BuildRequires: libart_lgpl-devel,libpng-devel + +%description +A sidebar plugin for KDE's Konqueror which shows information and actions for +selected files and directories. + +This is a fork of the "metabar" project: http://sourceforge.net/projects/metabar + +%prep +%setup -q -n %{name}-0.2-beta2 +%patch0 -p0 +cd %{name} +%patch1 -p0 + +%configure_kde3 + +%build +cd %{name} +%{make} + +%install +%{__rm} -rf %{buildroot} +cd %{name} +%makeinstall_std + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root) +%_kde3_libdir/kde3/konqsidebar_kmetabar.so +%_kde3_libdir/kde3/konqsidebar_kmetabar.la +%_kde3_appsdir/kmetabar +%_kde3_appsdir/konqsidebartng/add/kmetabar_add.desktop +%_kde3_appsdir/konqsidebartng/entries/kmetabar.desktop +%_kde3_iconsdir/*/*x*/apps/kmetabar.png +%_kde3_docdir/* + +%changelog +* Mon Jul 18 2011 <tim@my-place.org.uk> 0.2.beta2-3mvt2010.2 +- Packaged for Trinity + +* Fri Jul 23 2010 <tim@my-place.org.uk> 0.2.beta2-2mvt2010.1 +- Packaged for 2010.1 + +* Tue Dec 22 2009 <atilla_ontas@mandriva.org> 0.2.beta2-1mvt2010.0 + - Packaged for 2010.0 |