]> git.pld-linux.org Git - packages/xpaint.git/blob - xpaint.spec
- release 2 (by relup.sh)
[packages/xpaint.git] / xpaint.spec
1 Summary:        Paint program for X
2 Summary(de.UTF-8):      Malprogramm für X
3 Summary(es.UTF-8):      Programa de diseño para X
4 Summary(fr.UTF-8):      Programme de dessin sous X
5 Summary(pl.UTF-8):      Program do rysowania pod X Window
6 Summary(pt_BR.UTF-8):   Programa de desenho para X
7 Summary(tr.UTF-8):      X altında boyama programı
8 Name:           xpaint
9 Version:        2.9.10
10 Release:        2
11 License:        MIT
12 Group:          X11/Applications/Graphics
13 Source0:        http://downloads.sourceforge.net/sf-xpaint/%{name}-%{version}.tar.bz2
14 # Source0-md5:  8608e4e034aa6c09541070fcecc527e0
15 Source1:        %{name}.desktop
16 Source2:        %{name}.png
17 Patch0:         %{name}-util-opt.patch
18 URL:            http://sourceforge.net/projects/sf-xpaint/
19 BuildRequires:  libxaw3dxft-devel >= 1.6.2
20 BuildRequires:  bison
21 BuildRequires:  flex
22 BuildRequires:  libjpeg-devel
23 BuildRequires:  libpgf-devel
24 BuildRequires:  libpng-devel >= 2:1.4.0
25 BuildRequires:  libtiff-devel
26 BuildRequires:  openjpeg-devel
27 BuildRequires:  xorg-lib-libXaw-devel
28 BuildRequires:  xorg-lib-libXft-devel
29 BuildRequires:  xorg-lib-libXpm-devel >= 3.4c
30 BuildRequires:  zlib-devel
31 Requires:       xorg-lib-libXt >= 1.0.0
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _appdefsdir     /usr/share/X11/app-defaults
35
36 %description
37 XPaint is a color image editing tool which features most standard
38 paint program options, as well as advanced features such as image
39 processing algorithms. It allows for the editing of multiple images
40 simultaneously and supp
41
42 %description -l de.UTF-8
43 XPaint ist ein Farbbildbearbeitungs-Tool mit den meisten üblichen,
44 aber auch erweiterten Funktionen wie Bildverarbeitungsalgorithmen. Sie
45 können mehrere Bilder gleichzeitig bearbeiten.
46
47 %description -l es.UTF-8
48 XPaint es una herramienta de edición de imágenes coloridas que
49 presenta la mayoría de las opciones padrón de programas de pintura,
50 así como características avanzadas como procesamiento de imágenes a
51 través de algoritmos. También permite la edición de múltiples imágenes
52 simultáneamente.
53
54 %description -l fr.UTF-8
55 xpaint est un outil d'édition d'images en couleur offrant la plupart
56 des options du programme paint, ainsi que des caractéristiques
57 avancées comme des algorithmes de traitement d'image. Il permet
58 l'édition simultanée de plusieurs images et plus.
59
60 %description -l pl.UTF-8
61 XPaint jest programem do edycji kolorowych grafik z funkcjami jakie ma
62 większość typowych programów tego typu, a także niektóre bardziej
63 zaawansowane funkcje, jak różne algorytmy obróbki grafiki.
64
65 %description -l pt_BR.UTF-8
66 XPaint é uma ferramenta de edição de imagens coloridas que apresenta a
67 maioria das opções-padrão de programas de pintura, assim como
68 características avançadas como processamento de imagens através de
69 algoritmos. Ele também permite a edição de múltiplas imagens
70 simultaneamente.
71
72 %description -l tr.UTF-8
73 XPaint, X ortamında en temel resimleme yeteneklerini barındıran basit
74 bir programdır.
75
76 %prep
77 %setup -q
78 %patch0 -p1
79
80 # force regeneration and creation of xaw_incdir symlink
81 %{__rm} version.h
82 # kill prebuilt binaries
83 %{__rm} util/{pdfconcat,ppmtops,pgf2pnm,*.o}
84
85 %{__sed} -e 's#@CC@#%{__cc}#' \
86         -e 's#@CXX@#%{__cxx}#' \
87         -e 's#@CFLAGS@#%{rpmcflags}#' \
88         -e 's#@CXXFLAGS@#%{rpmcxxflags}#' \
89         -e 's#@CPPFLAGS@#%{rpmcppflags}#' \
90         -i util/Makefile
91
92 %build
93 %configure
94
95 %{__make} -j1 \
96         XAPPLOADDIR=%{_appdefsdir}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT \
104         XAPPLOADDIR=%{_appdefsdir}
105
106 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
107 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
108
109 # API not exported, library requires symbols from executable
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librw.*
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files
116 %defattr(644,root,root,755)
117 %doc README README.PNG TODO Doc/Operator.doc ChangeLog Doc/sample.Xdefaults
118 %attr(755,root,root) %{_bindir}/imgmerge
119 %attr(755,root,root) %{_bindir}/xpaint
120 %attr(755,root,root) %{_bindir}/pdfconcat
121 %attr(755,root,root) %{_bindir}/pgf2pnm
122 %attr(755,root,root) %{_bindir}/ppmtops
123 %{_appdefsdir}/XPaint
124 %lang(es) %{_appdefsdir}/XPaint_es
125 %lang(fr) %{_appdefsdir}/XPaint_fr
126 %dir %{_datadir}/xpaint
127 %{_datadir}/xpaint/XPaintIcon.xpm
128 %{_datadir}/xpaint/c_scripts
129 %{_datadir}/xpaint/include
130 %dir %{_datadir}/xpaint/bin
131 %{_datadir}/xpaint/bin/xpaint_ocr
132 %dir %{_datadir}/xpaint/bitmaps
133 %{_datadir}/xpaint/bitmaps/brushbox.cfg
134 %dir %{_datadir}/xpaint/bitmaps/brushes
135 %{_datadir}/xpaint/bitmaps/brushes/*.xpm
136 %dir %{_datadir}/xpaint/bitmaps/elec
137 %{_datadir}/xpaint/bitmaps/elec/*.xpm
138 %dir %{_datadir}/xpaint/help
139 %{_datadir}/xpaint/help/Help
140 %lang(es) %{_datadir}/xpaint/help/Help_es
141 %lang(fr) %{_datadir}/xpaint/help/Help_fr
142 %dir %{_datadir}/xpaint/messages
143 %{_datadir}/xpaint/messages/Messages
144 %lang(es) %{_datadir}/xpaint/messages/Messages_es
145 %lang(fr) %{_datadir}/xpaint/messages/Messages_fr
146 %{_mandir}/man1/xpaint.1*
147 %{_mandir}/man1/imgmerge.1*
148 %{_mandir}/man1/pdfconcat.1*
149 %{_desktopdir}/xpaint.desktop
150 %{_pixmapsdir}/xpaint.png
This page took 0.084499 seconds and 4 git commands to generate.