1 Name: xorg-x11-server-misc
2 Summary: X.Org X11 X server misc packages
8 Source0: xserver-xorg-misc-%{version}.tar.gz
11 Description: %{summary}
15 Summary: X11 X server misc files for emulfb
17 Requires: xorg-x11-server-core
20 Xorg server misc package which contains startx, xinitrc and xorg.conf file for emulfb
24 %setup -q -n xserver-xorg-misc-%{version}
29 for f in `find arm-common/ -name "*.in"`; do
31 sed -i -e "s#@PREFIX@#/usr#g" ${f%.in};
32 sed -i -e "s#@DATADIR@#/opt#g" ${f%.in};
39 --with-conf-prefix=/opt
47 rm -fr %{buildroot}/opt/etc/X11/xorg.conf.d*
48 mkdir -p %{buildroot}/etc/rc.d/init.d/
49 mkdir -p %{buildroot}/etc/rc.d/rc3.d/
50 mkdir -p %{buildroot}/etc/rc.d/rc4.d/
51 mkdir -p %{buildroot}/etc/profile.d/
52 mkdir -p %{buildroot}/%{_prefix}/etc/X11/
53 cp -af arm-common/xserver %{buildroot}/etc/rc.d/init.d/
54 cp -af arm-common/xresources %{buildroot}/etc/rc.d/init.d/
55 cp -af arm-common/xinitrc %{buildroot}/%{_prefix}/etc/X11/
56 ln -s /etc/rc.d/init.d/xserver %{buildroot}/etc/rc.d/rc3.d/S20xserver
57 ln -s /etc/rc.d/init.d/xserver %{buildroot}/etc/rc.d/rc4.d/S20xserver
58 ln -s /etc/rc.d/init.d/xresources %{buildroot}/etc/rc.d/rc3.d/S80xresources
59 ln -s /etc/rc.d/init.d/xresources %{buildroot}/etc/rc.d/rc4.d/S80xresources
60 cp -af arm-common/Xorg.sh %{buildroot}/etc/profile.d/
62 cp -rf arm-emulfb %{buildroot}/opt/etc/X11/
65 ln -s /opt/etc/X11/arm-emulfb/* /opt/etc/X11/
68 rm -f /opt/etc/X11/Xmodmap
69 rm -f /opt/etc/X11/xorg.conf.d.*
72 %defattr(-,root,root,-)
73 %{_sysconfdir}/profile.d/Xorg.sh
74 %{_sysconfdir}/rc.d/init.d/*
75 %{_sysconfdir}/rc.d/rc3.d/*
76 %{_sysconfdir}/rc.d/rc4.d/*
77 %attr(-,5000,5000) /opt/etc/X11/Xresources
78 /opt/etc/X11/xorg.conf
79 %{_prefix}/etc/X11/xinitrc
80 /opt/etc/X11/arm-emulfb/xorg.conf.d.*/*.conf