From dce9046f2adf0410b86e272a09f44d1ed2824d9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 17 Aug 2014 23:25:51 +0200 Subject: [PATCH] - new --- make.patch | 22 ++++++++++++++++++ xfce4-taskbar-plugin.spec | 47 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 make.patch create mode 100644 xfce4-taskbar-plugin.spec diff --git a/make.patch b/make.patch new file mode 100644 index 0000000..0f018eb --- /dev/null +++ b/make.patch @@ -0,0 +1,22 @@ +--- xfce4-taskbar-plugin/Makefile~ 2014-08-17 18:45:58.000000000 +0200 ++++ xfce4-taskbar-plugin/Makefile 2014-08-17 18:49:15.679068441 +0200 +@@ -1,5 +1,5 @@ + PP=-DPACKAGE_NAME="\"Taskbar\"" -DLC_MESSAGES="\"C\"" -DHELPDIR="\"/usr/share/doc/xfce4-taskbar/\"" +-CFLAGS=-fPIC $(PP) -g -I. `pkg-config --cflags-only-I gtk+-2.0 exo-1 libwnck-1.0 libxfce4panel-1.0 libxfce4ui-1 libxfconf-0 gtkhotkey-1.0` ++CFLAGS=-fPIC $(PP) $(OPT) -I. `pkg-config --cflags-only-I gtk+-2.0 exo-1 libwnck-1.0 libxfce4panel-1.0 libxfce4ui-1 libxfconf-0 gtkhotkey-1.0` + #CFLAGS=-fPIC $(PP) -O3 -I. `pkg-config --cflags-only-I gtk+-2.0 exo-1 libwnck-1.0 libxfce4panel-1.0 libxfce4ui-1 libxfconf-0 gtkhotkey-1.0` + LINKFLAGS=`pkg-config --libs gtk+-2.0 exo-1 libwnck-1.0 libxfce4panel-1.0 libxfce4ui-1 libxfconf-0 gobject-2.0 gtk+-x11-2.0 glib-2.0 gtkhotkey-1.0` + +@@ -16,8 +16,10 @@ + g++ -shared -o libtaskbar.so $(OBJ) $(LINKFLAGS) + + install: +- cp `pwd`/libtaskbar.so /usr/lib/xfce4/panel-plugins/libtaskbar.so +- cp `pwd`/taskbar.desktop /usr/share/xfce4/panel/plugins/taskbar.desktop ++ mkdir -p $(DESTDIR)/usr/$(LIB)/xfce4/panel/plugins ++ mkdir -p $(DESTDIR)/usr/share/xfce4/panel/plugins ++ cp libtaskbar.so $(DESTDIR)/usr/$(LIB)/xfce4/panel/plugins/libtaskbar.so ++ cp taskbar.desktop $(DESTDIR)/usr/share/xfce4/panel/plugins/taskbar.desktop + + uninstall: + rm -f /usr/lib/xfce4/panel-plugins/libtaskbar.so diff --git a/xfce4-taskbar-plugin.spec b/xfce4-taskbar-plugin.spec new file mode 100644 index 0000000..ccef469 --- /dev/null +++ b/xfce4-taskbar-plugin.spec @@ -0,0 +1,47 @@ +%define snap 20130504 +Summary: Taskbar plugin which mimicks the Windows 7 taskbar (pinning applications, etc) +Name: xfce4-taskbar-plugin +Version: 0.%{snap} +Release: 1 +License: GPL v2 +Group: X11/Applications +Source0: %{name}-%{snap}.tar.bz2 +# Source0-md5: 259533052a8398e50496052699b75787 +Patch0: make.patch +URL: http://git.xfce.org/panel-plugins/xfce4-taskbar-plugin/ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gtkhotkey-devel +BuildRequires: libtool +BuildRequires: libxfce4ui-devel +BuildRequires: xfce4-dev-tools >= 4.11.0 +BuildRequires: xfce4-panel-devel >= 4.11.0 +Requires: xfce4-panel >= 4.11.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Taskbar plugin which mimicks the Windows 7 taskbar +(pinning applications, etc) + +%prep +%setup -q -n %{name} +%patch0 -p1 + +%build +%{__make} OPT="%{rpmcflags}" + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + LIB=%{_lib} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libtaskbar.so +%{_datadir}/xfce4/panel/plugins/taskbar.desktop -- 2.43.0