1 | Summary: X.Org X11 xfs font server |
---|
2 | Summary(ja): X.Org X11 xfs フォントサーバ |
---|
3 | Name: xorg-x11-xfs |
---|
4 | Version: 1.1.2 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | License: MIT/X11 |
---|
7 | Group: System Environment/Daemons |
---|
8 | URL: http://www.x.org |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
10 | |
---|
11 | Source0: ftp://ftp.x.org/pub/individual/app/xfs-%{version}.tar.bz2 |
---|
12 | Source1: ftp://ftp.x.org/pub/individual/app/xfsinfo-1.0.3.tar.bz2 |
---|
13 | Source2: ftp://ftp.x.org/pub/individual/app/fslsfonts-1.0.4.tar.bz2 |
---|
14 | Source3: ftp://ftp.x.org/pub/individual/app/fstobdf-1.0.5.tar.bz2 |
---|
15 | Source4: ftp://ftp.x.org/pub/individual/app/showfont-1.0.3.tar.bz2 |
---|
16 | Source10: xfs.init |
---|
17 | Source11: xfs.config |
---|
18 | |
---|
19 | BuildRequires: pkgconfig |
---|
20 | # xfs needs 'fontsproto' to build, as indicated by ./configure |
---|
21 | BuildRequires: xorg-x11-proto-devel |
---|
22 | # FIXME: xfs needs xtrans to build, but autotools doesn't detect it missing |
---|
23 | BuildRequires: xorg-x11-xtrans-devel |
---|
24 | BuildRequires: xorg-x11-util-macros |
---|
25 | BuildRequires: libFS-devel |
---|
26 | BuildRequires: libXfont-devel |
---|
27 | BuildRequires: libX11-devel |
---|
28 | # FIXME: xfs needs freetype-devel to build, but autotools doesn't detect it missing |
---|
29 | BuildRequires: freetype2-devel |
---|
30 | BuildRequires: libfontenc-devel |
---|
31 | |
---|
32 | # Make sure libXfont provides the catalogue FPE. |
---|
33 | Requires: libXfont |
---|
34 | |
---|
35 | Obsoletes: XFree86-xfs, XOrg-xfs |
---|
36 | Provides: xfs |
---|
37 | Provides: XOrg-xfs = 7.0 |
---|
38 | |
---|
39 | Requires(pre): util-linux, shadow-utils |
---|
40 | Requires(post): initscripts, grep, sed, coreutils |
---|
41 | Requires(preun): initscripts, chkconfig |
---|
42 | Requires(postun): initscripts |
---|
43 | |
---|
44 | # xfs initscript runtime dependencies |
---|
45 | Requires: initscripts, fontconfig, sed, findutils |
---|
46 | Requires: coreutils |
---|
47 | Requires: mkfontdir, mkfontscale, ttmkfdir |
---|
48 | # end of xfs initscript runtime dependencies |
---|
49 | |
---|
50 | %description |
---|
51 | X.Org X11 xfs font server |
---|
52 | |
---|
53 | %package utils |
---|
54 | Summary: X.Org X11 font server utilities |
---|
55 | Summary(ja): X.Org X11 フォントサーバユーティリティ |
---|
56 | Group: User Interface/X |
---|
57 | |
---|
58 | Conflicts: XOrg-xfs < 7.0 |
---|
59 | |
---|
60 | %description utils |
---|
61 | X.Org X11 font server utilities |
---|
62 | |
---|
63 | %prep |
---|
64 | %setup -q -c %{name}-%{version} -a1 -a2 -a3 -a4 |
---|
65 | |
---|
66 | %build |
---|
67 | |
---|
68 | # Build xfs |
---|
69 | { |
---|
70 | pushd xfs-* |
---|
71 | %configure --disable-devel-docs |
---|
72 | make configdir=%{_sysconfdir}/X11/fs |
---|
73 | popd |
---|
74 | } |
---|
75 | |
---|
76 | for pkg in xfsinfo fslsfonts fstobdf showfont ; do |
---|
77 | pushd ${pkg}-* |
---|
78 | %configure |
---|
79 | make |
---|
80 | popd |
---|
81 | done |
---|
82 | |
---|
83 | %install |
---|
84 | rm -rf $RPM_BUILD_ROOT |
---|
85 | # Install xfs |
---|
86 | { |
---|
87 | pushd xfs-* |
---|
88 | %makeinstall configdir=$RPM_BUILD_ROOT%{_sysconfdir}/X11/fs |
---|
89 | popd |
---|
90 | } |
---|
91 | |
---|
92 | for pkg in xfsinfo fslsfonts fstobdf showfont ; do |
---|
93 | pushd ${pkg}-* |
---|
94 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
95 | popd |
---|
96 | done |
---|
97 | |
---|
98 | # Install the modified xfs config file and initscript |
---|
99 | { |
---|
100 | mkdir -p $RPM_BUILD_ROOT/etc/{X11/fs,rc.d/init.d} |
---|
101 | install -c -m 755 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/xfs |
---|
102 | install -c -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/X11/fs/config |
---|
103 | } |
---|
104 | |
---|
105 | %clean |
---|
106 | rm -rf $RPM_BUILD_ROOT |
---|
107 | |
---|
108 | %triggerpostun -- XFree86-xfs |
---|
109 | { |
---|
110 | /usr/sbin/useradd -c "X Font Server" -r -s /sbin/nologin -u 43 -d /etc/X11/fs xfs || : |
---|
111 | /sbin/chkconfig --add xfs |
---|
112 | /sbin/service xfs condrestart || : |
---|
113 | } &> /dev/null || : |
---|
114 | |
---|
115 | %triggerpostun -- XOrg-xfs |
---|
116 | { |
---|
117 | /usr/sbin/useradd -c "X Font Server" -r -s /sbin/nologin -u 43 -d /etc/X11/fs xfs || : |
---|
118 | /sbin/chkconfig --add xfs |
---|
119 | /sbin/service xfs condrestart || : |
---|
120 | } &> /dev/null || : |
---|
121 | |
---|
122 | %pre |
---|
123 | { |
---|
124 | /usr/sbin/useradd -c "X Font Server" -r -s /sbin/nologin -u 43 -d /etc/X11/fs xfs || : |
---|
125 | # Upgrade path: |
---|
126 | if [ "$1" -gt "1" ] ; then |
---|
127 | if [ -e "/usr/X11R6/lib/X11/fs/config" ] ; then |
---|
128 | cat <<-EOF > "/etc/X11/fs/xfs-migrate" |
---|
129 | On upgrades, we now must determine if we are upgrading from monolithic |
---|
130 | xfs or modular xfs by checking for the existance of the old monolithic |
---|
131 | xfs config file. If found, we know it is a monolith->modular upgrade, |
---|
132 | so we set this flag file in order for xfs.init to perform a "restart" |
---|
133 | instead of a "reload" in the 'condrestart'. See bug #173271 for |
---|
134 | details. |
---|
135 | EOF |
---|
136 | fi |
---|
137 | fi |
---|
138 | } &> /dev/null || : # Silence output, and ignore errors (Bug #91822) |
---|
139 | |
---|
140 | %post |
---|
141 | { |
---|
142 | # Install section |
---|
143 | /sbin/chkconfig --add xfs |
---|
144 | #------------------------------------------------------------------------ |
---|
145 | # Upgrade section |
---|
146 | if [ "$1" -gt "1" ] ; then |
---|
147 | XORG_CONFIG=/etc/X11/xorg.conf |
---|
148 | XFSCONFIG=/etc/X11/fs/config |
---|
149 | |
---|
150 | # XFS config file upgrade munging |
---|
151 | if [ -f $XFSCONFIG ] ; then |
---|
152 | # Remove Speedo font directories from xfs config if present to avoid |
---|
153 | # bug reports about xfs complaining about empty directories in syslog. |
---|
154 | perl -p -i -e 's#^.*/.*/Speedo.*\n##' $XFSCONFIG |
---|
155 | |
---|
156 | # On upgrades, remove /usr/X11R6 font path elements from the XFS config file |
---|
157 | if grep -q "/usr/X11R6/lib/X11/fonts" $XFSCONFIG &> /dev/null ; then |
---|
158 | for fpe in misc:unscaled 75dpi:unscaled 100dpi:unscaled Type1 ; do |
---|
159 | perl -p -i -e "s#/usr/X11R6/lib/X11/fonts/${fpe}#%{_x11fontdir}/${fpe}#g" $XFSCONFIG |
---|
160 | done |
---|
161 | fi |
---|
162 | fi |
---|
163 | fi ; # End Upgrade section |
---|
164 | } |
---|
165 | |
---|
166 | %preun |
---|
167 | { |
---|
168 | if [ "$1" = "0" ]; then |
---|
169 | /sbin/service xfs stop &> /dev/null || : |
---|
170 | /sbin/chkconfig --del xfs || : |
---|
171 | fi |
---|
172 | } |
---|
173 | |
---|
174 | %postun |
---|
175 | { |
---|
176 | if [ "$1" -gt "1" ]; then |
---|
177 | /sbin/service xfs condrestart &> /dev/null || : |
---|
178 | fi |
---|
179 | } |
---|
180 | |
---|
181 | %files |
---|
182 | %defattr(-,root,root,-) |
---|
183 | %doc xfs-%{version}/AUTHORS xfs-%{version}/COPYING |
---|
184 | %doc xfs-%{version}/NEWS xfs-%{version}/README xfs-%{version}/ChangeLog |
---|
185 | %{_bindir}/xfs |
---|
186 | %dir %{_sysconfdir}/X11 |
---|
187 | %dir %{_sysconfdir}/X11/fs |
---|
188 | %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/X11/fs/config |
---|
189 | %{_mandir}/man1/xfs.1* |
---|
190 | %{_sysconfdir}/rc.d/init.d/xfs |
---|
191 | |
---|
192 | %files utils |
---|
193 | %{_bindir}/fslsfonts |
---|
194 | %{_bindir}/fstobdf |
---|
195 | %{_bindir}/showfont |
---|
196 | %{_bindir}/xfsinfo |
---|
197 | %{_mandir}/man1/fslsfonts.1* |
---|
198 | %{_mandir}/man1/fstobdf.1* |
---|
199 | %{_mandir}/man1/showfont.1* |
---|
200 | %{_mandir}/man1/xfsinfo.1* |
---|
201 | |
---|
202 | %changelog |
---|
203 | * Wed May 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.2-2 |
---|
204 | - fslsfonts-1.0.3 |
---|
205 | - fstobdf-1.0.4 |
---|
206 | |
---|
207 | * Sat Mar 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.2-1 |
---|
208 | - xfs-1.1.2 |
---|
209 | - add BuildRequires: xorg-x11-util-macros |
---|
210 | |
---|
211 | * Sun Nov 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-1 |
---|
212 | - xfs-1.1.1 |
---|
213 | - xfsinfo-1.0.3 |
---|
214 | - fslsfonts-1.0.3 |
---|
215 | - fstobdf-1.0.4 |
---|
216 | - showfont-1.0.3 |
---|
217 | |
---|
218 | * Fri Nov 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-1 |
---|
219 | - xfs-1.1.0 |
---|
220 | |
---|
221 | * Sun May 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.8-1 |
---|
222 | - new upstream release |
---|
223 | - xfs-1.0.8, xfsinfo-1.0.2, fslsfont-1.0.2, |
---|
224 | fstobdf-1.0.3, showfont-1.0.2 |
---|
225 | |
---|
226 | * Mon May 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-4 |
---|
227 | - add version-release to Obsoletes: XOrg-xfs |
---|
228 | |
---|
229 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-3 |
---|
230 | - add version-release to Provides: XOrg-xfs |
---|
231 | |
---|
232 | * Mon May 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-2 |
---|
233 | - add Provides: XOrg-xfs for compatibility |
---|
234 | |
---|
235 | * Wed Mar 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-1 |
---|
236 | - initial build for Vine Linux |
---|
237 | |
---|
238 | * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:1.0.5-2 |
---|
239 | - Autorebuild for GCC 4.3 |
---|
240 | |
---|
241 | * Tue Oct 02 2007 Adam Jackson <ajax@redhat.com> 1:1.0.5-1 |
---|
242 | - xfs 1.0.5 |
---|
243 | |
---|
244 | * Thu Aug 23 2007 Adam Jackson <ajax@redhat.com> - 1:1.0.4-2 |
---|
245 | - Rebuild for ppc toolchain bug |
---|
246 | |
---|
247 | * Fri Jul 27 2007 Bill Nottingham <notting@redhat.com> - 1:1.0.4-2 |
---|
248 | - don't run by default any more, as it's not used by default |
---|
249 | - remove explicit restorecon dependency (#215142) |
---|
250 | |
---|
251 | * Fri Jun 22 2007 Kristian H淡gsberg <krh@hinata.boston.redhat.com> - 1:1.0.4-1 |
---|
252 | - Require catalogue capable libXfont. |
---|
253 | - Drop xfs.config.in, just use catalogue font path. |
---|
254 | - Stop xorg.conf munging madness. |
---|
255 | |
---|
256 | * Sat Apr 21 2007 Matthias Clasen <mclasen@redhat.com> - 1:1.0.2-4 |
---|
257 | - Don't install INSTALL |
---|
258 | |
---|
259 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:1.0.2-3.1 |
---|
260 | - rebuild |
---|
261 | |
---|
262 | * Wed Jun 21 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.2-3 |
---|
263 | - Added xfs documentation to doc macro. |
---|
264 | - Use "make install" instead of makeinstall macro. |
---|
265 | - Clean up source file URLs. |
---|
266 | |
---|
267 | * Tue May 30 2006 Adam Jackson <ajackson@redhat.com> 1:1.0.2-2 |
---|
268 | - Fix BuildRequires (#191856). |
---|
269 | |
---|
270 | * Thu Apr 27 2006 Adam Jackson <ajackson@redhat.com> 1:1.0.2-1 |
---|
271 | - Update xfs and fstobdf |
---|
272 | |
---|
273 | * Wed Mar 01 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-4 |
---|
274 | - Fix all rpm scriptlets "upgrade" tests to only execute on upgrades. |
---|
275 | |
---|
276 | * Sat Feb 25 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-3 |
---|
277 | - Redirect output of "rm -rf fonts.dir" to /dev/null in xfs.init |
---|
278 | |
---|
279 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> 1:1.0.1-2.1 |
---|
280 | - bump again for double-long bug on ppc(64) |
---|
281 | |
---|
282 | * Thu Feb 09 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-2 |
---|
283 | - Removed invocation of fc-cache from xfs initscript for bug (#179362) |
---|
284 | - Redirect stderr to /dev/null to squelch an unwanted error xfs.init (#155349) |
---|
285 | - Replace "s#^/.*:[a-z]*$##g" with "s#:unscaled$##g" in xfs.init for (#179491) |
---|
286 | - Cosmetic cleanups to spec file to satiate the banshees. |
---|
287 | |
---|
288 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1:1.0.1-1.1 |
---|
289 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
290 | |
---|
291 | * Wed Jan 16 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-1 |
---|
292 | - Updated all tarballs to version 1.0.1 from X11R7.0 |
---|
293 | |
---|
294 | * Tue Jan 10 2006 Bill Nottingham <notting@redhat.com> 1:1.0.0-2 |
---|
295 | - fix rpm post script (#176009, <ville.skytta@iki.fi>) |
---|
296 | |
---|
297 | * Fri Dec 16 2005 Mike A. Harris <mharris@redhat.com> 1:1.0.0-1 |
---|
298 | - Updated all tarballs to version 1.0.0 from X11R7 RC4. |
---|
299 | - Get default X font directory with font-utils package 'fontdir' pkgconfig |
---|
300 | variable. |
---|
301 | - Change manpage dir from man1x back to man1 to match upstream. |
---|
302 | |
---|
303 | * Tue Nov 15 2005 Jeremy Katz <katzj@redhat.com> 1:0.99.2-4 |
---|
304 | - require initscripts instead of /etc/init.d/functions |
---|
305 | |
---|
306 | * Tue Nov 15 2005 Mike A. Harris <mharris@redhat.com> 0.99.2-3 |
---|
307 | - Updated xfs pre script to check for the existance of the old monolithic |
---|
308 | /usr/X11R6/lib/X11/fs/config xfs config file, and set a migration flag |
---|
309 | file. |
---|
310 | - Updated xfs.init to check for the existance of the migration flag file, |
---|
311 | and perform an xfs 'restart' instead of a 'reload' if migrating. Users |
---|
312 | will now have to restart their X server, or reconnect the xfs server to |
---|
313 | the X server after a migration to modular X. |
---|
314 | - Changed upgrade comparison typo from 2 to 1 in xfs post script. |
---|
315 | |
---|
316 | * Mon Nov 14 2005 Mike A. Harris <mharris@redhat.com> 0.99.2-2 |
---|
317 | - Added temporary "BuildRequires: libXfont-devel >= 0.99.2-3" and |
---|
318 | "Requires: libXfont-devel >= 0.99.2-3" to ensure early-testers of |
---|
319 | pre-rawhide modular X have installed the work around for (#172997). |
---|
320 | |
---|
321 | * Fri Nov 11 2005 Mike A. Harris <mharris@redhat.com> 0.99.2-1 |
---|
322 | - Updated to xfs-0.99.2 and fstobdf-0.99.2 from X11R7 RC2 |
---|
323 | - Added Epoch 1 to package, and set the version number to the xfs 0.99.2 |
---|
324 | version. |
---|
325 | |
---|
326 | * Thu Nov 10 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.901-2 |
---|
327 | - Added showfont-0.99.1 from X11R7 RC1 release. |
---|
328 | |
---|
329 | * Wed Nov 09 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.901-1 |
---|
330 | - Updated all packages to version 0.99.1 from X11R7 RC1. |
---|
331 | - Bump package version to 6.99.99.901 (the RC1 CVS tag). |
---|
332 | - Change manpage location to 'man1x' in file manifest. |
---|
333 | - Converted xfs.config to xfs.config.in, and added code to spec file to |
---|
334 | generate xfs.config depending on what the system _x11fontdir is. |
---|
335 | - Complete and total rewrite of xfs postinstall script to use "sed -i" |
---|
336 | and complete restructuring, which removed a lot of the super craptasticness |
---|
337 | that had been sitting there for years. |
---|
338 | |
---|
339 | * Wed Oct 03 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.0-4 |
---|
340 | - Use Fedora-Extras style BuildRoot tag |
---|
341 | - Update BuildRequires to use new library package names |
---|
342 | - Remove unnecessary BuildRequires on 'install', and fix pkgconfig dep |
---|
343 | |
---|
344 | * Thu Aug 25 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.0-3 |
---|
345 | - Install the initscript and xfs config file in the correct location as they |
---|
346 | were inadvertently interchanged in previous builds. |
---|
347 | |
---|
348 | * Wed Aug 24 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.0-2 |
---|
349 | - Ported the xfs related rpm scripts over from monolithic packaging, and |
---|
350 | added up to date Requires(*) dependencies for all of them. |
---|
351 | - Flagged xfs config file as config(noreplace) |
---|
352 | - Added build and runtime dependencies to xfs subpackage as best as could be |
---|
353 | determined by analyzing ./configure output, and building in minimalized |
---|
354 | build root environment. |
---|
355 | |
---|
356 | * Wed Aug 24 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.0-1 |
---|
357 | - Initial build. |
---|