1 | %define desktop_file 1 |
---|
2 | %define desktop_file_utils_version 0.2.90 |
---|
3 | |
---|
4 | Summary: An X Window System tool for drawing basic vector graphics. |
---|
5 | Name: xfig |
---|
6 | Version: 3.2.5b |
---|
7 | Release: 2%{?_dist_release} |
---|
8 | License: Freeware |
---|
9 | Group: Applications/Graphics |
---|
10 | Url: http://www.xfig.org/ |
---|
11 | Source0: http://www.xfig.org/xfigdist/xfig.%{version}.full.tar.gz |
---|
12 | Source1: xfig.png |
---|
13 | Source2: xfig.desktop |
---|
14 | Source3: xfig.sh |
---|
15 | Source4: Fig.ad.ja |
---|
16 | |
---|
17 | Patch0: xfig-3.2.5a-default-apps.patch |
---|
18 | Patch1: xfig-3.2.5-fhs.patch |
---|
19 | Patch7: xfig.3.2.5-modularX.patch |
---|
20 | Patch9: xfig.3.2.5-Xaw3d.patch |
---|
21 | Patch10: xfig-3.2.5-enable-Xaw3d.patch |
---|
22 | Patch13: xfig-3.2.5-urwfonts.patch |
---|
23 | Patch19: xfig-3.2.5-debian.patch |
---|
24 | |
---|
25 | BuildRequires: libjpeg-devel |
---|
26 | BuildRequires: libpng-devel |
---|
27 | BuildRequires: imake |
---|
28 | BuildRequires: libICE-devel |
---|
29 | BuildRequires: libSM-devel |
---|
30 | BuildRequires: libX11-devel |
---|
31 | BuildRequires: libXaw-devel |
---|
32 | BuildRequires: libXext-devel |
---|
33 | BuildRequires: libXi-devel |
---|
34 | BuildRequires: libXmu-devel |
---|
35 | BuildRequires: libXpm-devel |
---|
36 | BuildRequires: libXt-devel |
---|
37 | BuildRequires: Xaw3d-devel |
---|
38 | BuildRequires: desktop-file-utils |
---|
39 | |
---|
40 | Buildroot: %{_tmppath}/%{name}-root |
---|
41 | Requires: transfig >= 3.2.5 |
---|
42 | Requires: xdg-utils, enchant, urw-fonts |
---|
43 | Requires: hicolor-icon-theme |
---|
44 | |
---|
45 | Vendor: Project Vine |
---|
46 | Distribution: Vine Linux |
---|
47 | |
---|
48 | %description |
---|
49 | Xfig is an X Window System tool for creating basic vector graphics, |
---|
50 | including bezier curves, lines, rulers and more. The resulting |
---|
51 | graphics can be saved, printed on PostScript printers or converted to |
---|
52 | a variety of other formats (e.g., X11 bitmaps, Encapsulated |
---|
53 | PostScript, LaTeX). |
---|
54 | |
---|
55 | %prep |
---|
56 | %setup -q -n xfig.%{version} |
---|
57 | %patch0 -p1 -b .redhat |
---|
58 | %patch1 -p1 -b .fhs |
---|
59 | %patch7 -p1 -b .modularX |
---|
60 | %patch9 -p1 -b .Xaw3d |
---|
61 | %patch10 -p1 -b .no-Xaw3d |
---|
62 | %patch13 -p1 -b .urw |
---|
63 | %patch19 -p1 |
---|
64 | rm Doc/html/images/sav1a0.tmp |
---|
65 | |
---|
66 | %build |
---|
67 | xmkmf |
---|
68 | make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \ |
---|
69 | CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" |
---|
70 | |
---|
71 | %install |
---|
72 | rm -rf $RPM_BUILD_ROOT |
---|
73 | |
---|
74 | make DESTDIR=%{buildroot} XFIGDOCDIR=%{_docdir}/%{name}-%{version} \ |
---|
75 | INSTALL="install -p" install.all |
---|
76 | install -p -m 644 CHANGES README LATEX.AND.XFIG* FIGAPPS \ |
---|
77 | %{buildroot}%{_docdir}/%{name}-%{version} |
---|
78 | |
---|
79 | # remove the map generation scripts, these are for xfig developers only |
---|
80 | rm %{buildroot}%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble |
---|
81 | |
---|
82 | mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps \ |
---|
83 | %{buildroot}%{_datadir}/applications |
---|
84 | |
---|
85 | install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps |
---|
86 | |
---|
87 | desktop-file-install --vendor "" \ |
---|
88 | --dir %{buildroot}%{_datadir}/applications \ |
---|
89 | %{SOURCE2} |
---|
90 | |
---|
91 | # remove app-defaults symlink which gets installed |
---|
92 | rm %{buildroot}%{_prefix}/lib*/X11/app-defaults |
---|
93 | |
---|
94 | |
---|
95 | %clean |
---|
96 | rm -rf $RPM_BUILD_ROOT |
---|
97 | |
---|
98 | %post |
---|
99 | update-desktop-database &> /dev/null || : |
---|
100 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
101 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
102 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
103 | fi |
---|
104 | |
---|
105 | %postun |
---|
106 | update-desktop-database &> /dev/null || : |
---|
107 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
108 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
109 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
110 | fi |
---|
111 | |
---|
112 | |
---|
113 | %files |
---|
114 | %defattr(-,root,root) |
---|
115 | %doc %{_docdir}/%{name}-%{version} |
---|
116 | %{_bindir}/%{name} |
---|
117 | %{_datadir}/%{name} |
---|
118 | %{_mandir}/*/* |
---|
119 | %{_datadir}/X11/app-defaults/* |
---|
120 | %{_datadir}/applications/%{name}.desktop |
---|
121 | %{_datadir}/icons/hicolor/32x32/apps/%{name}.png |
---|
122 | |
---|
123 | |
---|
124 | %changelog |
---|
125 | * Sat Feb 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.5-2 |
---|
126 | - rebuild with Vine6 environment |
---|
127 | |
---|
128 | * Thu Sep 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.5-1 |
---|
129 | - new usptream release |
---|
130 | - build with modular X |
---|
131 | - import patched from fedora package. |
---|
132 | - drop jp patch |
---|
133 | |
---|
134 | * Sat Jul 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl5 |
---|
135 | - rebuilt with Xaw3d-1.5-17vl3 |
---|
136 | |
---|
137 | * Fri Sep 10 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl4 |
---|
138 | - Requires transfig >= 3.2.4, ghostscript |
---|
139 | - build with -march=i386 |
---|
140 | - changed Group |
---|
141 | - fixed .desktop file |
---|
142 | |
---|
143 | * Wed Sep 8 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl3 |
---|
144 | - rebuild with gcc-3.3.2 |
---|
145 | - added BuildPrereq: Xaw3d-devel |
---|
146 | |
---|
147 | * Sun Aug 31 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl2 |
---|
148 | - based on Rawhide 3.2.4-2 |
---|
149 | * Tue May 6 2003 Than Ngo <than@redhat.com> 3.2.4-1 |
---|
150 | - 3.2.4 |
---|
151 | * Wed Jul 24 2002 Than Ngo <than@redhat.com> 3.2.3d-8 |
---|
152 | - desktop file issue (bug #69543) |
---|
153 | * Tue Jun 25 2002 Than Ngo <than@redhat.com> 3.2.3d-7 |
---|
154 | - add patch file using mkstemp (bug #67351) |
---|
155 | * Tue Jul 03 2001 Than Ngo <than@redhat.com> |
---|
156 | - fix export to eps when i18n set (bug #45114) |
---|
157 | |
---|
158 | - update Source3 |
---|
159 | - previous Patch0 moved to Patch10 |
---|
160 | - rebuild with new toolchains |
---|
161 | |
---|
162 | * Sun Aug 20 2000 Jun Nishii <jun@vinelinux.org> |
---|
163 | - 3.2.3c-0vl1 |
---|
164 | - use brp |
---|
165 | |
---|
166 | * Mon Jan 24 2000 Atsushi Saito <saito4@slb.com> |
---|
167 | - update to 3.2.3a |
---|
168 | |
---|
169 | * Tue Dec 21 1999 Atsushi Saito <saito4@slb.com> |
---|
170 | - update to 3.2.3-beta-1 |
---|
171 | - i18n |
---|
172 | |
---|
173 | * Thu Sep 23 1999 Preston Brown <pbrown@redhat.com> |
---|
174 | - add icon |
---|
175 | - don't compile with optimization on alpha |
---|
176 | |
---|
177 | * Mon Aug 30 1999 Preston Brown <pbrown@redhat.com> |
---|
178 | - converted to use a .desktop file |
---|
179 | |
---|
180 | * Fri Mar 26 1999 Michael Maher <mike@redhat.com> |
---|
181 | - added files that were missing. |
---|
182 | |
---|
183 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
184 | - auto rebuild in the new build environment (release 4) |
---|
185 | - varargs fix |
---|
186 | |
---|
187 | * Thu Feb 18 1999 Jeff Johnson <jbj@redhat.com> |
---|
188 | - correct DESTDIRR typo (#962) |
---|
189 | |
---|
190 | * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com> |
---|
191 | - build for glibc 2.1 |
---|
192 | |
---|
193 | * Tue Jul 7 1998 Jeff Johnson <jbj@redhat.com> |
---|
194 | - updated to 3.2.2. |
---|
195 | |
---|
196 | * Wed Jun 10 1998 Prospector System <bugs@redhat.com> |
---|
197 | - translations modified for de |
---|
198 | |
---|
199 | * Fri May 08 1998 Prospector System <bugs@redhat.com> |
---|
200 | - translations modified for de, fr, tr |
---|
201 | |
---|
202 | * Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com> |
---|
203 | - updated for manhattan |
---|
204 | - buildroot |
---|
205 | |
---|
206 | * Thu Oct 23 1997 Marc Ewing <marc@redhat.com> |
---|
207 | - new version |
---|
208 | - messed with config for 5.0 |
---|
209 | - updated Requires and Copyright |
---|
210 | - added wmconfig |
---|
211 | |
---|
212 | * Mon Jul 21 1997 Erik Troan <ewt@redhat.com> |
---|
213 | - built against glibc |
---|