source: projects/specs/branches/6/x/xfig/xfig-vl.spec @ 5569

Revision 5569, 5.8 KB checked in by Takemikaduchi, 12 years ago (diff)

rebuild packages

Line 
1%define desktop_file 1
2%define desktop_file_utils_version 0.2.90
3
4Summary: An X Window System tool for drawing basic vector graphics.
5Name: xfig
6Version: 3.2.5b
7Release: 2%{?_dist_release}
8License: Freeware
9Group: Applications/Graphics
10Url: http://www.xfig.org/
11Source0: http://www.xfig.org/xfigdist/xfig.%{version}.full.tar.gz
12Source1: xfig.png
13Source2: xfig.desktop
14Source3: xfig.sh
15Source4: Fig.ad.ja
16
17Patch0: xfig-3.2.5a-default-apps.patch
18Patch1: xfig-3.2.5-fhs.patch
19Patch7: xfig.3.2.5-modularX.patch
20Patch9: xfig.3.2.5-Xaw3d.patch
21Patch10: xfig-3.2.5-enable-Xaw3d.patch
22Patch13: xfig-3.2.5-urwfonts.patch
23Patch19: xfig-3.2.5-debian.patch
24
25BuildRequires: libjpeg-devel
26BuildRequires: libpng-devel
27BuildRequires: imake
28BuildRequires: libICE-devel
29BuildRequires: libSM-devel
30BuildRequires: libX11-devel
31BuildRequires: libXaw-devel
32BuildRequires: libXext-devel
33BuildRequires: libXi-devel
34BuildRequires: libXmu-devel
35BuildRequires: libXpm-devel
36BuildRequires: libXt-devel
37BuildRequires: Xaw3d-devel
38BuildRequires: desktop-file-utils
39
40Buildroot: %{_tmppath}/%{name}-root
41Requires: transfig >= 3.2.5
42Requires: xdg-utils, enchant, urw-fonts
43Requires: hicolor-icon-theme
44
45Vendor: Project Vine
46Distribution: Vine Linux
47
48%description
49Xfig is an X Window System tool for creating basic vector graphics,
50including bezier curves, lines, rulers and more.  The resulting
51graphics can be saved, printed on PostScript printers or converted to
52a variety of other formats (e.g., X11 bitmaps, Encapsulated
53PostScript, 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
64rm Doc/html/images/sav1a0.tmp
65
66%build
67xmkmf
68make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
69     CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing"
70
71%install
72rm -rf $RPM_BUILD_ROOT
73
74make DESTDIR=%{buildroot} XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
75     INSTALL="install -p" install.all
76install -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
80rm %{buildroot}%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble
81
82mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps \
83         %{buildroot}%{_datadir}/applications
84
85install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
86
87desktop-file-install --vendor ""         \
88  --dir %{buildroot}%{_datadir}/applications \
89  %{SOURCE2}
90
91# remove app-defaults symlink which gets installed
92rm %{buildroot}%{_prefix}/lib*/X11/app-defaults
93
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%post
99update-desktop-database &> /dev/null || :
100touch --no-create %{_datadir}/icons/hicolor || :
101if [ -x %{_bindir}/gtk-update-icon-cache ]; then
102   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
103fi
104
105%postun
106update-desktop-database &> /dev/null || :
107touch --no-create %{_datadir}/icons/hicolor || :
108if [ -x %{_bindir}/gtk-update-icon-cache ]; then
109   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
110fi
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
Note: See TracBrowser for help on using the repository browser.