Compare commits
22 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0467a8cef | ||
|
|
30052804a5 | ||
|
|
98cec6291c | ||
|
|
388b4d5f23 | ||
|
|
5e36300fa3 | ||
| 2f352f3430 | |||
|
|
fd3c554ae6 | ||
|
|
3dda68b257 | ||
|
|
07dc860a6b | ||
|
|
9182c0d476 | ||
|
|
4857f91152 | ||
|
|
ca0332cf46 | ||
|
|
a408b62e73 | ||
| f509e87175 | |||
|
|
747069de9a | ||
|
|
9a8d7e1e20 | ||
|
|
e93520cc38 | ||
| aeecaf2d95 | |||
|
|
61ad3b6d4e | ||
|
|
2b5993eeac | ||
|
|
e63b6f723a | ||
|
|
80851b64c0 |
7 changed files with 3 additions and 3557 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
xpaint-2.8.19.tar.bz2
|
||||
3
dead.package
Normal file
3
dead.package
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
2016-07-06: Retired orphaned package, because it was orphaned for
|
||||
more than six weeks.
|
||||
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
fa50b57e29c2024f825bcc12ab84c29a xpaint-2.8.19.tar.bz2
|
||||
|
|
@ -1,423 +0,0 @@
|
|||
diff -rc xpaint-2.8.19/brushOp.c xpaint-2.8.19.1/brushOp.c
|
||||
*** xpaint-2.8.19/brushOp.c 2010-03-06 20:55:25.000000000 +0100
|
||||
--- xpaint-2.8.19.1/brushOp.c 2010-04-17 13:04:17.003999838 +0200
|
||||
***************
|
||||
*** 1246,1252 ****
|
||||
BrushSelect(Widget w)
|
||||
{
|
||||
XtPopup(Global.brushpopup, XtGrabNone);
|
||||
! XMapRaised(XtDisplay(Global.brushpopup), XtWindow(Global.brushpopup));
|
||||
}
|
||||
|
||||
void setBrushIconOnWidget(Widget w)
|
||||
--- 1246,1252 ----
|
||||
BrushSelect(Widget w)
|
||||
{
|
||||
XtPopup(Global.brushpopup, XtGrabNone);
|
||||
! RaiseWindow(XtDisplay(Global.brushpopup), XtWindow(Global.brushpopup));
|
||||
}
|
||||
|
||||
void setBrushIconOnWidget(Widget w)
|
||||
diff -rc xpaint-2.8.19/ChangeLog xpaint-2.8.19.1/ChangeLog
|
||||
*** xpaint-2.8.19/ChangeLog 2010-04-05 21:50:40.000000000 +0200
|
||||
--- xpaint-2.8.19.1/ChangeLog 2010-04-17 13:26:56.167998538 +0200
|
||||
***************
|
||||
*** 1,3 ****
|
||||
--- 1,19 ----
|
||||
+ 2010-04-17 J.-P. Demailly <demailly@fourier.ujf-grenoble.fr>
|
||||
+
|
||||
+ * Version 2.8.19.1 (mostly cosmetic changes)
|
||||
+
|
||||
+ * fileBrowser.c : added "ongoing" mode in File Browser (widget no
|
||||
+ longer closes when opening an image, allowing to browse files
|
||||
+ continuously). Performed a substantial code clean-up as well.
|
||||
+
|
||||
+ * operation.c, graphic.c : menu improvements; one can now open an image
|
||||
+ from any canvas window.
|
||||
+
|
||||
+ * misc.c : added RaiseWindow() routine to comply better with ewmh
|
||||
+ specifications. XMapRaised() replaced by RaiseWindow() throughout.
|
||||
+
|
||||
+ * "snapshot" replaced by "screenshot" throughout.
|
||||
+
|
||||
2010-04-05 J.-P. Demailly <demailly@fourier.ujf-grenoble.fr>
|
||||
|
||||
* Version 2.8.19
|
||||
diff -rc xpaint-2.8.19/chroma.c xpaint-2.8.19.1/chroma.c
|
||||
*** xpaint-2.8.19/chroma.c 2010-02-17 18:19:30.000000000 +0100
|
||||
--- xpaint-2.8.19.1/chroma.c 2010-04-17 13:10:06.565999447 +0200
|
||||
***************
|
||||
*** 304,310 ****
|
||||
XtVaSetValues(l->shell, XtNcolormap, map->cmap, NULL);
|
||||
}
|
||||
XtPopup(l->shell, XtGrabNone);
|
||||
! XMapRaised(XtDisplay(l->shell), XtWindow(l->shell));
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
--- 304,310 ----
|
||||
XtVaSetValues(l->shell, XtNcolormap, map->cmap, NULL);
|
||||
}
|
||||
XtPopup(l->shell, XtGrabNone);
|
||||
! RaiseWindow(XtDisplay(l->shell), XtWindow(l->shell));
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
diff -rc xpaint-2.8.19/fatBitsEdit.c xpaint-2.8.19.1/fatBitsEdit.c
|
||||
*** xpaint-2.8.19/fatBitsEdit.c 2010-04-05 16:43:00.000000000 +0200
|
||||
--- xpaint-2.8.19.1/fatBitsEdit.c 2010-04-17 13:11:13.311999977 +0200
|
||||
***************
|
||||
*** 586,592 ****
|
||||
|
||||
XtVaGetValues(w, XtNx, &x, XtNy, &y, NULL);
|
||||
if (abs(event->time-prev_time) < 300)
|
||||
! XMapRaised(XtDisplay(l->shell), XtWindow(l->shell));
|
||||
prev_time = event->time;
|
||||
|
||||
l->offX = event->x;
|
||||
--- 586,592 ----
|
||||
|
||||
XtVaGetValues(w, XtNx, &x, XtNy, &y, NULL);
|
||||
if (abs(event->time-prev_time) < 300)
|
||||
! RaiseWindow(XtDisplay(l->shell), XtWindow(l->shell));
|
||||
prev_time = event->time;
|
||||
|
||||
l->offX = event->x;
|
||||
***************
|
||||
*** 826,832 ****
|
||||
for (l = head; l != NULL && l->paint != paint; l = l->next);
|
||||
|
||||
if (l != NULL) {
|
||||
! XMapRaised(XtDisplay(l->shell), XtWindow(l->shell));
|
||||
return;
|
||||
}
|
||||
/* Construct a new fatbits popup */
|
||||
--- 826,832 ----
|
||||
for (l = head; l != NULL && l->paint != paint; l = l->next);
|
||||
|
||||
if (l != NULL) {
|
||||
! RaiseWindow(XtDisplay(l->shell), XtWindow(l->shell));
|
||||
return;
|
||||
}
|
||||
/* Construct a new fatbits popup */
|
||||
diff -rc xpaint-2.8.19/fontSelect.c xpaint-2.8.19.1/fontSelect.c
|
||||
*** xpaint-2.8.19/fontSelect.c 2010-04-17 13:59:56.832000354 +0200
|
||||
--- xpaint-2.8.19.1/fontSelect.c 2010-04-17 13:02:57.434256246 +0200
|
||||
***************
|
||||
*** 1091,1097 ****
|
||||
|
||||
if (shell != None) {
|
||||
XtPopup(shell, XtGrabNone);
|
||||
! XMapRaised(XtDisplay(shell), XtWindow(shell));
|
||||
XtSetMinSizeHints(shell, 360, 480);
|
||||
return;
|
||||
}
|
||||
--- 1091,1097 ----
|
||||
|
||||
if (shell != None) {
|
||||
XtPopup(shell, XtGrabNone);
|
||||
! RaiseWindow(XtDisplay(shell), XtWindow(shell));
|
||||
XtSetMinSizeHints(shell, 360, 480);
|
||||
return;
|
||||
}
|
||||
diff -rc xpaint-2.8.19/graphic.c xpaint-2.8.19.1/graphic.c
|
||||
*** xpaint-2.8.19/graphic.c 2010-04-17 13:59:56.835003566 +0200
|
||||
--- xpaint-2.8.19.1/graphic.c 2010-04-17 13:50:03.439249821 +0200
|
||||
***************
|
||||
*** 4512,4520 ****
|
||||
static void
|
||||
ToolSelectCallback(Widget w, XtPointer shell, XtPointer junk2)
|
||||
{
|
||||
Global.canvas = (Widget) shell;
|
||||
! XtVaSetValues(Global.back, XtNsensitive, True, NULL);
|
||||
! XMapRaised(XtDisplay(Global.toplevel), XtWindow(Global.toplevel));
|
||||
}
|
||||
|
||||
static void
|
||||
--- 4512,4521 ----
|
||||
static void
|
||||
ToolSelectCallback(Widget w, XtPointer shell, XtPointer junk2)
|
||||
{
|
||||
+ Display *dpy = XtDisplay(Global.toplevel);
|
||||
Global.canvas = (Widget) shell;
|
||||
! XtVaSetValues(Global.back, XtNsensitive, True, NULL);
|
||||
! RaiseWindow(dpy, XtWindow(Global.toplevel));
|
||||
}
|
||||
|
||||
static void
|
||||
***************
|
||||
*** 4524,4529 ****
|
||||
--- 4525,4533 ----
|
||||
PatternEdit(info->paint,
|
||||
info->pixels, info->patterns, (void *)info->rcInfo->brushes,
|
||||
info->npixels, info->npatterns, info->rcInfo->nbrushes);
|
||||
+ if (Global.patternshell)
|
||||
+ RaiseWindow(XtDisplay(Global.patternshell),
|
||||
+ XtWindow(Global.patternshell));
|
||||
}
|
||||
|
||||
#if 0
|
||||
***************
|
||||
*** 4711,4718 ****
|
||||
wlist[W_LINE_WIDTHS+i] = popupLineMenu[j+1].widget;
|
||||
wlist[W_TOPMENU+W_LINE_WIDTHS+i] = lineMenu[j].widget;
|
||||
}
|
||||
! for (i=0; i<=10; i++) {
|
||||
! j = i+(i==10);
|
||||
wlist[W_FONT_DESCR+i] = popupTextMenu[j+1].widget;
|
||||
wlist[W_TOPMENU+W_FONT_DESCR+i] = textMenu[j].widget;
|
||||
}
|
||||
--- 4715,4722 ----
|
||||
wlist[W_LINE_WIDTHS+i] = popupLineMenu[j+1].widget;
|
||||
wlist[W_TOPMENU+W_LINE_WIDTHS+i] = lineMenu[j].widget;
|
||||
}
|
||||
! for (i=0; i<=NUMBER_PREDEF_FONTS; i++) {
|
||||
! j = i+(i==NUMBER_PREDEF_FONTS);
|
||||
wlist[W_FONT_DESCR+i] = popupTextMenu[j+1].widget;
|
||||
wlist[W_TOPMENU+W_FONT_DESCR+i] = textMenu[j].widget;
|
||||
}
|
||||
***************
|
||||
*** 4738,4744 ****
|
||||
XtVaGetValues(head->paint, XtNlineWidth, &i, NULL);
|
||||
for (j=0; j<=5; j++)
|
||||
if (IsItemChecked(wlist[W_LINE_WIDTHS+j])) break;
|
||||
! for (k=0; k<=NUMBER_PREDEF_FONTS; k++)
|
||||
if (IsItemChecked(wlist[W_FONT_DESCR+k])) break;
|
||||
l = IsItemChecked(wlist[W_SELECTOR_GRID]);
|
||||
m = IsItemChecked(wlist[W_SELECTOR_SNAP]);
|
||||
--- 4742,4748 ----
|
||||
XtVaGetValues(head->paint, XtNlineWidth, &i, NULL);
|
||||
for (j=0; j<=5; j++)
|
||||
if (IsItemChecked(wlist[W_LINE_WIDTHS+j])) break;
|
||||
! for (k=0; k<NUMBER_PREDEF_FONTS; k++)
|
||||
if (IsItemChecked(wlist[W_FONT_DESCR+k])) break;
|
||||
l = IsItemChecked(wlist[W_SELECTOR_GRID]);
|
||||
m = IsItemChecked(wlist[W_SELECTOR_SNAP]);
|
||||
diff -rc xpaint-2.8.19/help.c xpaint-2.8.19.1/help.c
|
||||
*** xpaint-2.8.19/help.c 2010-04-05 16:45:45.000000000 +0200
|
||||
--- xpaint-2.8.19.1/help.c 2010-04-17 13:11:29.952250062 +0200
|
||||
***************
|
||||
*** 532,538 ****
|
||||
StoreName(l->shell, str);
|
||||
|
||||
display(l, cur);
|
||||
! XMapRaised(XtDisplay(l->shell), XtWindow(l->shell));
|
||||
XtSetMinSizeHints(l->shell, 466, 160);
|
||||
}
|
||||
|
||||
--- 532,538 ----
|
||||
StoreName(l->shell, str);
|
||||
|
||||
display(l, cur);
|
||||
! RaiseWindow(XtDisplay(l->shell), XtWindow(l->shell));
|
||||
XtSetMinSizeHints(l->shell, 466, 160);
|
||||
}
|
||||
|
||||
diff -rc xpaint-2.8.19/main.c xpaint-2.8.19.1/main.c
|
||||
*** xpaint-2.8.19/main.c 2010-04-17 13:59:56.835998119 +0200
|
||||
--- xpaint-2.8.19.1/main.c 2010-04-17 13:12:37.073999936 +0200
|
||||
***************
|
||||
*** 1101,1107 ****
|
||||
XtDispatchEvent(&event);
|
||||
if (appInfo.magnifier && argc==1 && magnifier_closing_down) {
|
||||
XtVaSetValues(toplevel, XtNmappedWhenManaged, True, NULL);
|
||||
! XMapRaised(dpy, XtWindow(toplevel));
|
||||
appInfo.magnifier = 0;
|
||||
}
|
||||
}
|
||||
--- 1101,1107 ----
|
||||
XtDispatchEvent(&event);
|
||||
if (appInfo.magnifier && argc==1 && magnifier_closing_down) {
|
||||
XtVaSetValues(toplevel, XtNmappedWhenManaged, True, NULL);
|
||||
! RaiseWindow(dpy, XtWindow(toplevel));
|
||||
appInfo.magnifier = 0;
|
||||
}
|
||||
}
|
||||
diff -rc xpaint-2.8.19/misc.c xpaint-2.8.19.1/misc.c
|
||||
*** xpaint-2.8.19/misc.c 2010-02-18 18:32:20.000000000 +0100
|
||||
--- xpaint-2.8.19.1/misc.c 2010-04-17 13:07:17.453250051 +0200
|
||||
***************
|
||||
*** 137,142 ****
|
||||
--- 137,160 ----
|
||||
return w;
|
||||
}
|
||||
|
||||
+ RaiseWindow(Display *dpy, Window win)
|
||||
+ {
|
||||
+ XEvent event;
|
||||
+ int j;
|
||||
+ long mask = SubstructureRedirectMask | SubstructureNotifyMask;
|
||||
+ char *msg = "_NET_ACTIVE_WINDOW";
|
||||
+
|
||||
+ event.xclient.type = ClientMessage;
|
||||
+ event.xclient.serial = 0;
|
||||
+ event.xclient.send_event = True;
|
||||
+ event.xclient.message_type = XInternAtom(dpy, msg, False);
|
||||
+ event.xclient.window = win;
|
||||
+ event.xclient.format = 32;
|
||||
+ for (j=0; j<=4; j++) event.xclient.data.l[j] = 0;
|
||||
+ XSendEvent(dpy, DefaultRootWindow(dpy), False, mask, &event);
|
||||
+ XMapRaised(dpy, win);
|
||||
+ }
|
||||
+
|
||||
void
|
||||
SetIBeamCursor(Widget w)
|
||||
{
|
||||
diff -rc xpaint-2.8.19/misc.h xpaint-2.8.19.1/misc.h
|
||||
*** xpaint-2.8.19/misc.h 2010-04-17 13:59:56.835998119 +0200
|
||||
--- xpaint-2.8.19.1/misc.h 2010-04-17 13:08:05.244249870 +0200
|
||||
***************
|
||||
*** 147,152 ****
|
||||
--- 147,153 ----
|
||||
extern int privateXErrorHandler(Display *dpy, XErrorEvent *myerr);
|
||||
extern Widget GetToplevel(Widget w);
|
||||
extern Widget GetShell(Widget w);
|
||||
+ extern void RaiseWindow(Display *dpy, Window win);
|
||||
extern void SetIBeamCursor(Widget w);
|
||||
extern void SetCrossHairCursor(Widget w);
|
||||
extern void SetPencilCursor(Widget w);
|
||||
diff -rc xpaint-2.8.19/operation.c xpaint-2.8.19.1/operation.c
|
||||
*** xpaint-2.8.19/operation.c 2010-04-17 13:59:56.836998049 +0200
|
||||
--- xpaint-2.8.19.1/operation.c 2010-04-17 13:08:37.805249865 +0200
|
||||
***************
|
||||
*** 1387,1394 ****
|
||||
static void
|
||||
switchtoCanvasCallback(Widget w, XtPointer junk, XEvent * event, Boolean * flg)
|
||||
{
|
||||
! if (Global.canvas && event->type == ButtonRelease)
|
||||
! XMapRaised(XtDisplay(Global.canvas), XtWindow(Global.canvas));
|
||||
}
|
||||
|
||||
void
|
||||
--- 1387,1394 ----
|
||||
static void
|
||||
switchtoCanvasCallback(Widget w, XtPointer junk, XEvent * event, Boolean * flg)
|
||||
{
|
||||
! if (Global.canvas && event->type == ButtonRelease)
|
||||
! RaiseWindow(XtDisplay(Global.canvas), XtWindow(Global.canvas));
|
||||
}
|
||||
|
||||
void
|
||||
diff -rc xpaint-2.8.19/pattern.c xpaint-2.8.19.1/pattern.c
|
||||
*** xpaint-2.8.19/pattern.c 2010-04-17 13:59:56.837997839 +0200
|
||||
--- xpaint-2.8.19.1/pattern.c 2010-04-17 13:10:43.887000137 +0200
|
||||
***************
|
||||
*** 1222,1228 ****
|
||||
if (event->type != ButtonRelease);
|
||||
if (w == l->icon) {
|
||||
if (l->paint)
|
||||
! XMapRaised(XtDisplay(l->paint), XtWindow(GetShell(l->paint)));
|
||||
return;
|
||||
}
|
||||
l->active = w;
|
||||
--- 1222,1228 ----
|
||||
if (event->type != ButtonRelease);
|
||||
if (w == l->icon) {
|
||||
if (l->paint)
|
||||
! RaiseWindow(XtDisplay(l->paint), XtWindow(GetShell(l->paint)));
|
||||
return;
|
||||
}
|
||||
l->active = w;
|
||||
***************
|
||||
*** 1682,1688 ****
|
||||
initViews(info);
|
||||
XMapWindow(dpy, XtWindow(info->r_arrow));
|
||||
XUnmapWindow(dpy, XtWindow(info->g_arrow));
|
||||
! XMapRaised(dpy, XtWindow(Global.patternshell));
|
||||
return;
|
||||
}
|
||||
StateSetBusyWatch(True);
|
||||
--- 1682,1688 ----
|
||||
initViews(info);
|
||||
XMapWindow(dpy, XtWindow(info->r_arrow));
|
||||
XUnmapWindow(dpy, XtWindow(info->g_arrow));
|
||||
! RaiseWindow(dpy, XtWindow(Global.patternshell));
|
||||
return;
|
||||
}
|
||||
StateSetBusyWatch(True);
|
||||
diff -rc xpaint-2.8.19/print.c xpaint-2.8.19.1/print.c
|
||||
*** xpaint-2.8.19/print.c 2010-03-31 05:53:58.000000000 +0200
|
||||
--- xpaint-2.8.19.1/print.c 2010-04-17 13:11:56.257249698 +0200
|
||||
***************
|
||||
*** 1054,1060 ****
|
||||
|
||||
if (printinfo->shell) {
|
||||
if (printinfo->paintwidget == (PaintWidget)paintArg) {
|
||||
! XMapRaised(dpy, XtWindow(printinfo->shell));
|
||||
return;
|
||||
} else
|
||||
XtDestroyWidget(printinfo->shell);
|
||||
--- 1054,1060 ----
|
||||
|
||||
if (printinfo->shell) {
|
||||
if (printinfo->paintwidget == (PaintWidget)paintArg) {
|
||||
! RaiseWindow(dpy, XtWindow(printinfo->shell));
|
||||
return;
|
||||
} else
|
||||
XtDestroyWidget(printinfo->shell);
|
||||
***************
|
||||
*** 1841,1847 ****
|
||||
}
|
||||
if (externinfo->shell) {
|
||||
if (externinfo->paintwidget == (PaintWidget)paintArg) {
|
||||
! XMapRaised(dpy, XtWindow(externinfo->shell));
|
||||
return;
|
||||
} else
|
||||
XtDestroyWidget(externinfo->shell);
|
||||
--- 1841,1847 ----
|
||||
}
|
||||
if (externinfo->shell) {
|
||||
if (externinfo->paintwidget == (PaintWidget)paintArg) {
|
||||
! RaiseWindow(dpy, XtWindow(externinfo->shell));
|
||||
return;
|
||||
} else
|
||||
XtDestroyWidget(externinfo->shell);
|
||||
diff -rc xpaint-2.8.19/protocol.c xpaint-2.8.19.1/protocol.c
|
||||
*** xpaint-2.8.19/protocol.c 2009-10-01 16:21:52.000000000 +0200
|
||||
--- xpaint-2.8.19.1/protocol.c 2010-04-17 13:09:14.781000149 +0200
|
||||
***************
|
||||
*** 217,223 ****
|
||||
CopyFromParent, valuemask, &attributes);
|
||||
|
||||
if (DO_MAP(l))
|
||||
! XMapRaised(l->dpy, l->win);
|
||||
}
|
||||
|
||||
|
||||
--- 217,223 ----
|
||||
CopyFromParent, valuemask, &attributes);
|
||||
|
||||
if (DO_MAP(l))
|
||||
! RaiseWindow(l->dpy, l->win);
|
||||
}
|
||||
|
||||
|
||||
***************
|
||||
*** 301,313 ****
|
||||
}
|
||||
if (cur->watchCount == 1) {
|
||||
if (isWatch) {
|
||||
! XMapRaised(cur->dpy, cur->win);
|
||||
XDefineCursor(cur->dpy, cur->win, watchCursor);
|
||||
doFlush = True;
|
||||
}
|
||||
} else if (cur->computingCount == 1) {
|
||||
if (!isWatch) {
|
||||
! XMapRaised(cur->dpy, cur->win);
|
||||
XDefineCursor(cur->dpy, cur->win, cursorInfo[currentCursor].cursor);
|
||||
doFlush = True;
|
||||
}
|
||||
--- 301,313 ----
|
||||
}
|
||||
if (cur->watchCount == 1) {
|
||||
if (isWatch) {
|
||||
! RaiseWindow(cur->dpy, cur->win);
|
||||
XDefineCursor(cur->dpy, cur->win, watchCursor);
|
||||
doFlush = True;
|
||||
}
|
||||
} else if (cur->computingCount == 1) {
|
||||
if (!isWatch) {
|
||||
! RaiseWindow(cur->dpy, cur->win);
|
||||
XDefineCursor(cur->dpy, cur->win, cursorInfo[currentCursor].cursor);
|
||||
doFlush = True;
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
345
xpaint.spec
345
xpaint.spec
|
|
@ -1,345 +0,0 @@
|
|||
%bcond_without xaw3dxft
|
||||
%bcond_with Xaw3d
|
||||
%bcond_with neXtaw
|
||||
|
||||
Summary: An X Window System image editing or paint program
|
||||
Name: xpaint
|
||||
Version: 2.8.19
|
||||
Release: 1%{?dist}
|
||||
License: GPLv3+
|
||||
Group: Applications/Multimedia
|
||||
URL: http://sourceforge.net/projects/sf-xpaint
|
||||
Source0: http://downloads.sourceforge.net/sf-xpaint/%{name}-%{version}.tar.bz2
|
||||
Patch0: xpaint-2.8.19-minor_fixes.patch
|
||||
Patch1: xpaint-2.8.19-small-improvements.patch
|
||||
Patch2: xpaint-2.8.19-ewmh-minor-fixes.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: bison flex imake chrpath
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libSM-devel
|
||||
BuildRequires: libXaw-devel
|
||||
BuildRequires: libXdmcp-devel
|
||||
BuildRequires: libXext-devel
|
||||
BuildRequires: libXp-devel
|
||||
BuildRequires: libXft-devel
|
||||
BuildRequires: Xaw3d-devel
|
||||
%{?with_neXtaw:BuildRequires: neXtaw-devel}
|
||||
Requires: cups, gv, netpbm, psutils
|
||||
# The only way of compiling and linking plugins on the fly.
|
||||
Obsoletes: %{name}-devel < %{version}-%{release}
|
||||
Provides: %{name}-devel = %{version}-%{release}
|
||||
%if "no%{?_isa}" != "no"
|
||||
Provides: xpaint-devel%{?_isa} = %{version}-%{release}
|
||||
%endif
|
||||
|
||||
%description
|
||||
XPaint is an X Window System color image bitmap editing program.
|
||||
It also supports advanced features, such as image processing
|
||||
algorithms, scripting and batch jobs. XPaint allows the edition
|
||||
of multiple images simultaneously and supports a wide variety of
|
||||
image formats, including: GIF, JPG, PNG, PPM, TIFF, XBM, XPM, etc.
|
||||
|
||||
xpaint is now fully UTF8 compliant, and is capable of using anti-aliased
|
||||
truetype fonts in its operations and in the menus (in particular,
|
||||
translating to oriental languages should now be quite easy - also
|
||||
the X core font protocol is no longer used anywhere.)
|
||||
|
||||
xpaint also offers optional editing features based on programmable filters
|
||||
and user defined procedures written as scripts in plain C.
|
||||
The package includes a substantial list of examples and
|
||||
some support for batch processing.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
sed -i -e 's|-lXext|-lXext -lfontconfig|g' Local.config
|
||||
sed -i -e 's|/lib |/%{_lib} |g' Local.config
|
||||
sed -i -e 's|@XPMDIR@|%{_prefix}|g' Local.config
|
||||
sed -i -e 's|/usr/lib|%{_libdir}|g' configure
|
||||
sed -i -e 's|CFLAGS="-O3 -s -DNDEBUG=1"|CFLAGS=$RPM_OPT_FLAGS|g' pdfconcat.c
|
||||
for f in ChangeLog README; do
|
||||
iconv -f iso-8859-1 -t utf-8 $f > $f.utf8
|
||||
touch -r $f $f.utf8
|
||||
mv $f.utf8 $f
|
||||
done
|
||||
|
||||
%build
|
||||
sed -i -e "s/\(XCOMM CDEBUGFLAGS =\)/CDEBUGFLAGS = $RPM_OPT_FLAGS\nCXXDEBUGFLAGS = $RPM_OPT_FLAGS/g" Local.config
|
||||
# this is for debugging, to save the temporary file Imakefile.c
|
||||
touch fake
|
||||
ln fake Imakefile.c
|
||||
./configure
|
||||
|
||||
# make %{?_smp_mflags} \
|
||||
# avoids laygram.h not found
|
||||
make \
|
||||
%{?with_xaw3dxft:xaw3dxft.so} \
|
||||
%{?with_Xaw3d:xaw3dg} \
|
||||
%{?with_neXtaw:nextaw}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
make \
|
||||
DESTDIR=%{buildroot} \
|
||||
BINDIR=%{_bindir} \
|
||||
LIBDIR=%{_libdir} \
|
||||
MANDIR=%{_mandir}/man1 install install.man
|
||||
|
||||
# menu entry
|
||||
desktop-file-install --delete-original \
|
||||
--vendor "" \
|
||||
--dir %{buildroot}%{_datadir}/applications \
|
||||
$RPM_BUILD_DIR/%{name}-%{version}/%{name}.desktop
|
||||
|
||||
# icons
|
||||
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||||
cp -a $RPM_BUILD_DIR/%{name}-%{version}/icons/* %{buildroot}%{_datadir}/pixmaps
|
||||
|
||||
# libs
|
||||
%if %{with xaw3dxft}
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
cp -a $RPM_BUILD_DIR/%{name}-%{version}/xaw3dxft/libXaw3dxft.* %{buildroot}%{_libdir}
|
||||
%endif
|
||||
|
||||
# rpath
|
||||
chrpath --delete %{buildroot}%{_bindir}/xpaint
|
||||
|
||||
# remove needless symlink to /etc/X11/app-defaults
|
||||
rm -rf %{buildroot}%{_libdir}/app-defaults
|
||||
|
||||
mkdir -p %{buildroot}%{_includedir}
|
||||
mv %{buildroot}%{_datadir}/%{name}/include %{buildroot}%{_includedir}/%{name}
|
||||
ln -s ../../include/%{name} %{buildroot}%{_datadir}/%{name}/include
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog GPL-3.0.txt README README.old README.PNG TODO Doc/sample.Xdefaults Doc/Operator.doc
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/imgmerge
|
||||
%{_bindir}/pdfconcat
|
||||
%{_includedir}/%{name}
|
||||
%{_datadir}/X11/app-defaults/XPaint*
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/%{name}
|
||||
%{_datadir}/pixmaps/%{name}*
|
||||
%{_mandir}/man1/%{name}.1x*
|
||||
%if %{with xaw3dxft}
|
||||
%{_libdir}/libXaw3dxft.*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
||||
* Mon Mar 08 2010 Paulo Roma <roma@lcg.ufrj.br> 2.8.19-1
|
||||
- Update to 2.8.19
|
||||
- BRs: xaw/xaw3d are optional.
|
||||
- Added BR libXft-devel.
|
||||
|
||||
* Sat Feb 14 2010 Paulo Roma <roma@lcg.ufrj.br> 2.8.16-1
|
||||
- Update to 2.8.16
|
||||
- Removed obsolete patch text-ctrlH-segfault.
|
||||
- Source is no longer stripped by default.
|
||||
|
||||
* Sat Feb 13 2010 Paulo Roma <roma@lcg.ufrj.br> 2.8.15-3
|
||||
- Fixed the ImplicitDSOLinking.
|
||||
|
||||
* Fri Feb 05 2010 Paulo Roma <roma@lcg.ufrj.br> 2.8.15-2
|
||||
- Applied patch text-ctrlH-segfault.
|
||||
|
||||
* Tue Feb 02 2010 Paulo Roma <roma@lcg.ufrj.br> 2.8.15-1
|
||||
- Updated to 2.8.15: #BUG 559938
|
||||
- Added BR psutils.
|
||||
|
||||
* Fri Jan 29 2010 Paulo Roma <roma@lcg.ufrj.br> 2.8.13.1-3
|
||||
- Obsoleting xpaint-devel.
|
||||
|
||||
* Fri Jan 29 2010 Paulo Roma <roma@lcg.ufrj.br> 2.8.13.1-2
|
||||
- Not stripping xpaint: #BUG 540223
|
||||
- Dropped devel package.
|
||||
|
||||
* Fri Jan 29 2010 Paulo Roma <roma@lcg.ufrj.br> 2.8.13.1-1
|
||||
- Updated to 2.8.13.1
|
||||
- Removed emacs dependency: #BUG 542967
|
||||
|
||||
* Wed Nov 19 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.7.3-1
|
||||
- Updated to 2.8.7.3
|
||||
|
||||
* Wed Nov 16 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.7.2-1
|
||||
- Updated to 2.8.7.2
|
||||
|
||||
* Wed Nov 04 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.7-1
|
||||
- Updated to 2.8.7
|
||||
- Changed license to GPLv3+
|
||||
- Applied patch xpaint-2.8.7-graphic.c.patch
|
||||
|
||||
* Mon Nov 02 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.6.1-2
|
||||
- Moved c_scripts and the include symbolic link to the
|
||||
main package, as they are not needed to compile 3th party
|
||||
plugins (if there will ever be a 3th party plugin).
|
||||
|
||||
* Tue Oct 27 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.6.1-1
|
||||
- Updated to 2.8.6.1
|
||||
- Added devel subpackage as noarch.
|
||||
|
||||
* Wed Oct 22 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.5-8
|
||||
- Updated to 2.8.5
|
||||
- Using %%configure.
|
||||
- Removed rpath.
|
||||
|
||||
* Wed Oct 14 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.4-7
|
||||
- Changed license to GPLv3.
|
||||
|
||||
* Mon Oct 05 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.3-6
|
||||
- Removed devel package.
|
||||
|
||||
* Sat Oct 03 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.3-5
|
||||
- Updated to 2.8.3
|
||||
- Using supplied desktop entry.
|
||||
|
||||
* Thu Oct 01 2009 Paulo Roma <roma@lcg.ufrj.br> 2.8.2-5
|
||||
- Updated to 2.8.2
|
||||
- New icons.
|
||||
|
||||
* Sat Jun 30 2007 Paulo Roma <roma@lcg.ufrj.br> 2.7.8.1-4
|
||||
- Created devel package.
|
||||
- Fixed configure.
|
||||
- Conditionally building with Xaw3d or neXtaw.
|
||||
|
||||
* Mon Apr 02 2007 Paulo Roma <roma@lcg.ufrj.br> 2.7.8-4
|
||||
- Rebuilt for x86_64.
|
||||
- Moved rm -rf %%{buildroot} from "prep" to "build".
|
||||
- Fixed rm -rf %%{buildroot}%%{_libdir}/app-defaults
|
||||
- Removed all .c and .h files.
|
||||
|
||||
* Sun Dec 31 2006 Paulo Roma <roma@lcg.ufrj.br> 2.7.8-3
|
||||
- Included missing build requirements.
|
||||
|
||||
* Thu Sep 14 2006 Paulo Roma <roma@lcg.ufrj.br> 2.7.8-1
|
||||
- Update to 2.7.8
|
||||
- Changed spec file for Fedora.
|
||||
|
||||
* Mon Apr 04 2005 Lenny Cartier <lenny@mandrakesoft.com> 2.7.6-1mdk
|
||||
- 2.7.6
|
||||
|
||||
* Mon Mar 14 2005 Lenny Cartier <lenny@mandrakesoft.com> 2.7.4-1mdk
|
||||
- 2.7.4
|
||||
|
||||
* Mon Jan 31 2005 Lenny Cartier <lenny@mandrakesoft.com> 2.7.3-1mdk
|
||||
- 2.7.3
|
||||
|
||||
* Tue Oct 19 2004 Lenny Cartier <lenny@mandrakesoft.com> 2.7.2-1mdk
|
||||
- 2.7.2
|
||||
|
||||
* Wed Sep 22 2004 Lenny Cartier <lenny@mandrakesoft.com> 2.7.1-1mdk
|
||||
- 2.7.1
|
||||
|
||||
* Fri Aug 20 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.7.0-4mdk
|
||||
- fix typo in menu entry
|
||||
|
||||
* Mon Dec 29 2003 Michael Scherer <misc@mandrake.org> 2.7.0-3mdk
|
||||
- fix BuildRequires ( remove lib )
|
||||
- remove /usr/X11R6/lib/X11/app-defaults link to /etc
|
||||
|
||||
* Sun Sep 14 2003 Michael Scherer <scherer.michael@free.fr> 2.7.0-2mdk
|
||||
- BuildRequires flex
|
||||
|
||||
* Mon Jun 16 2003 Stew Benedict <sbenedict@mandrakesoft.com> 2.7.0-1mdk
|
||||
- 2.7.0
|
||||
|
||||
* Mon Apr 28 2003 Stew Benedict <sbenedict@mandrakesoft.com> 2.6.9-2mdk
|
||||
- BuildRequires, distriblint
|
||||
|
||||
* Fri Apr 4 2003 Stew Benedict <sbenedict@mandrakesoft.com> 2.6.9-1mdk
|
||||
- 2.6.9, new URL, Source tag
|
||||
- some new features finally, add patch1 to fix make install
|
||||
|
||||
* Mon Dec 30 2002 Stew Benedict <sbenedict@mandrakesoft.com> 2.6.2-2mdk
|
||||
- rebuild for new glibc/rpm, add patch1 for errno
|
||||
|
||||
* Sat Nov 16 2002 Stew Benedict <sbenedict@mandrakesoft.com> 2.6.2-1mdk
|
||||
- new version, add installed but unpackaged file, icons->png
|
||||
|
||||
* Fri Oct 19 2001 Sebastien Dupont <sdupont@mandrakesoft.com> 2.6.1-2mdk
|
||||
- License
|
||||
- srcs permissions
|
||||
- remove patchs: xpaint-2.4.7-config.patch & xpaint-2.4.7-glibc.patch.
|
||||
|
||||
* Sun May 27 2001 Daouda Lo <daouda@mandrakesoft.com> 2.6.1-1mdk
|
||||
- release 2.6.1
|
||||
- stop Nono complains.
|
||||
- cleanups
|
||||
|
||||
* Tue Oct 03 2000 Daouda Lo <daouda@mandrakesoft.com> 2.6.0-2mdk
|
||||
- icons should be transparent
|
||||
- let spec helper do its jobs
|
||||
- menu entry in the body of the spec
|
||||
- more macroz..
|
||||
|
||||
* Sun Aug 27 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.6.0-1mdk
|
||||
- new and shiny version.
|
||||
|
||||
* Tue Aug 08 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.9-16mdk
|
||||
- automatically added BuildRequires
|
||||
|
||||
* Mon May 15 2000 David BAUDENS <baudens@mandrakesoft.com> 2.4-9-15mdk
|
||||
- Fix build for i486
|
||||
- Use %%{_tmppath} for BuildRoot
|
||||
|
||||
* Wed May 03 2000 dam's <damien@mandrakesoft.com> 2.4.9-14mdk
|
||||
- Corrected icons.
|
||||
|
||||
* Tue Apr 18 2000 dam's <damien@mandrakesoft.com> 2.4.9-13mdk
|
||||
- Convert gif icon to xpm.
|
||||
|
||||
* Mon Apr 17 2000 dam's <damien@mandrakesoft.com> 2.4.9-12mdk
|
||||
- Added menu entry.
|
||||
|
||||
* Mon Mar 27 2000 dam's <damien@mandrakesoft.com> 2.4.9-11mdk
|
||||
- Release.
|
||||
|
||||
* Tue Nov 02 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
|
||||
- corrected status of resource file
|
||||
|
||||
* Thu May 06 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
|
||||
- Mandrake adaptions
|
||||
- handle RPM_OPT_FLAGS
|
||||
|
||||
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
||||
- auto rebuild in the new build environment (release 8)
|
||||
|
||||
* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
|
||||
- built package for 6.0
|
||||
|
||||
* Mon Aug 3 1998 Jeff Johnson <jbj@redhat.com>
|
||||
- build root.
|
||||
|
||||
* Tue Jun 09 1998 Mike Wangsmo <wanger@redhat.com>
|
||||
- changed the docs from being %%config files.
|
||||
|
||||
* Fri May 01 1998 Prospector System <bugs@redhat.com>
|
||||
- translations modified for de, fr, tr
|
||||
|
||||
* Thu Apr 16 1998 Erik Troan <ewt@redhat.com>
|
||||
- built against libpng 1.0
|
||||
|
||||
* Fri Oct 24 1997 Marc Ewing <marc@redhat.com>
|
||||
- new release
|
||||
- wmconfig
|
||||
|
||||
* Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
|
||||
- build against new libpng
|
||||
|
||||
* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
|
||||
- built against glibc
|
||||
|
||||
* Tue Mar 25 1997 Erik Troan <ewt@redhat.com>
|
||||
- "make install.man" places man page in wrong location
|
||||
Loading…
Add table
Add a link
Reference in a new issue