]> git.pld-linux.org Git - packages/xorg-app-xfs.git/blob - xorg-app-xfs.spec
af4351c4da1c61e49e60ac74eee1dabff2279b59
[packages/xorg-app-xfs.git] / xorg-app-xfs.spec
1 Summary:        Font server for X Window System
2 Summary(pl.UTF-8):      Serwer fontów dla X Window System
3 Summary(ru.UTF-8):      Фонтсервер для X Window System
4 Summary(uk.UTF-8):      Фонтсервер для X Window System
5 Name:           xorg-app-xfs
6 Version:        1.1.4
7 Release:        1
8 License:        MIT
9 Group:          X11/Applications
10 Source0:        http://xorg.freedesktop.org/releases/individual/app/xfs-%{version}.tar.bz2
11 # Source0-md5:  12adb259ee5e3df9633783e21b7a7a82
12 Source1:        xfs.config
13 Source2:        xfs.init
14 Source3:        xfs.sysconfig
15 URL:            http://xorg.freedesktop.org/
16 BuildRequires:  autoconf >= 2.60
17 BuildRequires:  automake
18 BuildRequires:  pkgconfig >= 1:0.19
19 BuildRequires:  rpmbuild(macros) >= 1.268
20 BuildRequires:  xmlto >= 0.0.20
21 BuildRequires:  xorg-font-font-util >= 1.1
22 BuildRequires:  xorg-lib-libFS-devel
23 BuildRequires:  xorg-lib-libXfont-devel >= 1.4.5
24 BuildRequires:  xorg-lib-xtrans-devel
25 BuildRequires:  xorg-proto-xproto-devel >= 7.0.17
26 BuildRequires:  xorg-sgml-doctools >= 1.5
27 BuildRequires:  xorg-util-util-macros >= 1.10
28 Requires(post,preun):   /sbin/chkconfig
29 Requires(postun):       /usr/sbin/groupdel
30 Requires(postun):       /usr/sbin/userdel
31 Requires(pre):  /bin/id
32 Requires(pre):  /usr/bin/getgid
33 Requires(pre):  /usr/sbin/groupadd
34 Requires(pre):  /usr/sbin/useradd
35 Requires:       rc-scripts
36 Requires:       xorg-lib-libXfont >= 1.4.5
37 Provides:       group(xfs)
38 Provides:       user(xfs)
39 Obsoletes:      X11-xfs < 1:7.0.0
40 Obsoletes:      XFree86-xfs < 1:7.0.0
41 Obsoletes:      xfs < 1:7.0.0
42 Obsoletes:      xfsft
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 This is a font server for X Window System. You can serve fonts to
47 other X servers remotely with this package, and the remote system will
48 be able to use all fonts installed on the font server, even if they
49 are not installed on the remote computer.
50
51 %description -l pl.UTF-8
52 Pakiet zawiera serwer fontów dla X Window System. Może udostępniać
53 fonty dla X serwerów lokalnych lub zdalnych.
54
55 %description -l ru.UTF-8
56 xfs содержит сервер шрифтов для X Window System. Xfs также может
57 предоставлять шрифты удаленным X-серверам. Удаленная система будет
58 способна использовать все шрифты, установленные на сервере шрифтов,
59 даже если они не установлены на удаленном компьютере.
60
61 %description -l uk.UTF-8
62 xfs містить сервер шрифтів для X Window System. Xfs також може
63 надавати шрифти віддаленим X-серверам. Віддалена система зможе
64 використовувати усі шрифти, які встановлені на сервері шрифтів, навіть
65 якщо вони не встановлені на віддаленому комп'ютері.
66
67 %prep
68 %setup -q -n xfs-%{version}
69
70 %build
71 %{__aclocal} -I m4
72 %{__autoconf}
73 %{__autoheader}
74 %{__automake}
75 %configure \
76         --enable-devel-docs \
77         --with-default-config-file=%{_sysconfdir}/X11/fs/config
78
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/fs/config
88 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/xfs
89 install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/xfs
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %pre
95 %groupadd -P %{name}-xfs -g 56 -r -f xfs
96 %useradd -P %{name}-xfs -u 56 -r -d /etc/X11/fs -s /bin/false -c "X Font Server" -g xfs xfs
97
98 %post
99 /sbin/chkconfig --add xfs
100 %service xfs restart "font server"
101
102 %preun
103 if [ "$1" = "0" ]; then
104         %service xfs stop
105         /sbin/chkconfig --del xfs
106 fi
107
108 %postun
109 if [ "$1" = "0" ]; then
110         %userremove xfs
111         %groupremove xfs
112 fi
113
114 %triggerpostun -- xfs
115 %groupadd -P %{name}-xfs -g 56 -r -f xfs
116 %useradd -P %{name}-xfs -u 56 -r -d /etc/X11/fs -s /bin/false -c "X Font Server" -g xfs xfs
117 /sbin/chkconfig --add xfs
118 /sbin/service xfs start >&2
119
120 %triggerpostun -- X11-xfs
121 /sbin/chkconfig --add xfs
122 /sbin/service xfs start >&2
123
124 %files
125 %defattr(644,root,root,755)
126 %doc COPYING ChangeLog README doc/xfs-design.html
127 %attr(755,root,root) %{_bindir}/xfs
128 %dir %{_sysconfdir}/X11/fs
129 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/fs/config
130 %attr(754,root,root) /etc/rc.d/init.d/xfs
131 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xfs
132 %{_mandir}/man1/xfs.1*
This page took 0.093751 seconds and 2 git commands to generate.