lightdm-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. %bcond_with systemd
  2. Summary: A lightweight display manager
  3. Summary(ja): 軽量ディスプレイマネージャー
  4. Name: lightdm
  5. Version: 1.30.0
  6. Group: system
  7. Release: 1%{?_dist_release}%{?with_systemd:.systemd}
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: GPLv3,LGPLv2,LGPLv3
  11. URL: https://github.com/canonical/lightdm
  12. Source0: https://github.com/canonical/lightdm/releases/download/%{version}/%{name}-%{version}.tar.xz
  13. Source10: lightdm-pam
  14. Source11: lightdm-autologin-pam
  15. Source12: lightdm-tmpfiles.conf
  16. Source13: lightdm.service
  17. Source14: lightdm.logrotate
  18. Source15: lightdm.rules
  19. # .conf snippets
  20. Source20: 50-backup-logs.conf
  21. Source21: 50-minimum-vt.conf
  22. Source22: 50-session-wrapper.conf
  23. Source23: 50-user-authority-in-system-dir.conf
  24. Source24: 50-xserver-command.conf
  25. Source25: 50-disable-guest.conf
  26. Source26: 50-run-directory.conf
  27. Patch0: gcc-10.patch
  28. # Upstreamed:
  29. Patch1: lightdm-1.25.1-disable_dmrc.patch
  30. Patch101: lightdm-1.11.2-nodaemon_option.patch
  31. # for Vine Linux
  32. Patch1000: lightdm-1.17.2-vine.patch
  33. Requires(pre): shadow-utils
  34. Requires: accountsservice
  35. Requires: dbus-x11
  36. Requires: pam
  37. Requires: xorg-x11-xinit
  38. Requires: %{name}-gobject = %{version}-%{release}
  39. Requires: lightdm-greeter
  40. BuildRequires: glib2-devel >= 2.30.0
  41. BuildRequires: gobject-introspection-devel
  42. BuildRequires: libXdmcp-devel
  43. BuildRequires: libxcb-devel
  44. BuildRequires: libxklavier-devel
  45. BuildRequires: libX11-devel
  46. BuildRequires: pam-devel
  47. BuildRequires: libgcrypt-devel
  48. BuildRequires: yelp-tools
  49. Obsoletes: %{name}-qt < 1.30.0
  50. Obsoletes: %{name}-qt-devel < 1.30.0
  51. %description
  52. An display manager that:
  53. * Has a lightweight codebase
  54. * Is standards compliant (PAM, ConsoleKit, etc)
  55. * Has a well defined interface between the server and user interface
  56. * Cross-desktop (greeters can be written in any toolkit)
  57. %package gobject
  58. Summary: LightDM GObject client library
  59. Group: system
  60. %description gobject
  61. This package contains a GObject based library for LightDM clients to
  62. use to interface with LightDM.
  63. %package gobject-devel
  64. Summary: Development files and headers for %{name}-gobject
  65. Group: programming
  66. Requires: %{name}-gobject = %{version}-%{release}
  67. Requires: pkgconfig
  68. %description gobject-devel
  69. Development files and headers for %{name}-gobject.
  70. %prep
  71. %setup -q
  72. %autosetup -p 1
  73. %build
  74. autoreconf -if
  75. %configure \
  76. --disable-dmrc \
  77. --disable-silent-rules \
  78. --disable-static \
  79. --enable-liblightdm-gobject \
  80. --enable-introspection \
  81. --disable-liblightdm-qt \
  82. --disable-liblightdm-qt5 \
  83. --with-greeter-user=lightdm
  84. make %{?_smp_mflags}
  85. %install
  86. rm -rf $RPM_BUILD_ROOT
  87. make install DESTDIR=$RPM_BUILD_ROOT
  88. # We need to own these
  89. %{__mkdir_p} %{buildroot}%{_sysconfdir}/lightdm/lightdm.conf.d/ \
  90. %{buildroot}%{_datadir}/dbus-1/interfaces \
  91. %{buildroot}%{_datadir}/dbus-1/system.d \
  92. %{buildroot}%{_datadir}/lightdm/lightdm.conf.d/ \
  93. %{buildroot}%{_datadir}/lightdm/remote-sessions/ \
  94. %{buildroot}%{_datadir}/xgreeters/ \
  95. %{buildroot}%{_localstatedir}/cache/lightdm/ \
  96. %{buildroot}%{_rundir}/lightdm/ \
  97. %{buildroot}%{_localstatedir}/log/lightdm/ \
  98. %{buildroot}%{_localstatedir}/lib/lightdm/ \
  99. %{buildroot}%{_localstatedir}/lib/lightdm-data/
  100. # libtool cruft
  101. rm -fv %{buildroot}%{_libdir}/lib*.la
  102. # We don't ship AppAmor
  103. %{__rm} -rfv %{buildroot}%{_sysconfdir}/apparmor.d/
  104. # omit upstart support
  105. %{__rm} -rfv %{buildroot}%{_sysconfdir}/init
  106. # install pam file
  107. %{__install} -Dpm 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/lightdm
  108. %{__install} -Dpm 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/pam.d/lightdm-autologin
  109. %{__install} -Dpm 0644 %{SOURCE14} %{buildroot}%{_sysconfdir}/logrotate.d/lightdm
  110. %{__install} -Dpm 0644 %{SOURCE15} %{buildroot}%{_datadir}/polkit-1/rules.d/lightdm.rules
  111. %{__install} -pm 0644 %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} \
  112. %{SOURCE24} %{SOURCE25} %{SOURCE26} %{buildroot}%{_datadir}/lightdm/lightdm.conf.d/
  113. %if %{with systemd}
  114. %{__install} -Dpm 0644 %{SOURCE12} %{buildroot}%{_tmpfilesdir}/lightdm.conf
  115. %{__install} -Dpm 0644 %{SOURCE13} %{buildroot}%{_unitdir}/lightdm.service
  116. %{__install} -pm 0644 %{SOURCE26} %{buildroot}%{_datadir}/lightdm/lightdm.conf.d/
  117. %else
  118. mkdir -p %{buildroot}%{_localstatedir}/run/lightdm
  119. %endif
  120. # Move DBus config to proper location.
  121. # why is this needed? -- rex
  122. %{__mv} -f %{buildroot}%{_sysconfdir}/dbus-1/system.d/*.conf \
  123. %{buildroot}%{_datadir}/dbus-1/system.d
  124. %find_lang lightdm --with-gnome
  125. %triggerun -- lightdm < 1.30.0
  126. getent passwd lightdm >/dev/null && \
  127. /usr/sbin/usermod -d /var/lib/lightdm lightdm >/dev/null ||:
  128. %pre
  129. getent group lightdm >/dev/null || groupadd -r lightdm
  130. getent passwd lightdm >/dev/null || \
  131. /usr/sbin/useradd -g lightdm -M -d /var/lib/lightdm -s /sbin/nologin -r lightdm
  132. exit 0
  133. %if %{with systemd}
  134. %post
  135. # todo: document need/purpose for this snippet
  136. if [ $1 = 1 ] ; then
  137. %{_bindir}/killall -HUP dbus-daemon 2>&1 > /dev/null
  138. fi
  139. %systemd_post lightdm.service
  140. %preun
  141. %systemd_preun lightdm.service
  142. %postun
  143. %systemd_postun lightdm.service
  144. %endif
  145. %post gobject -p /sbin/ldconfig
  146. %postun gobject -p /sbin/ldconfig
  147. %files -f %{name}.lang
  148. %defattr(-, root, root, -)
  149. %license COPYING.GPL3
  150. %doc NEWS
  151. %dir %{_sysconfdir}/lightdm
  152. %dir %{_sysconfdir}/lightdm/lightdm.conf.d
  153. %config(noreplace) %{_sysconfdir}/pam.d/lightdm*
  154. %config(noreplace) %{_sysconfdir}/lightdm/keys.conf
  155. %config(noreplace) %{_sysconfdir}/lightdm/lightdm.conf
  156. %config(noreplace) %{_sysconfdir}/lightdm/users.conf
  157. %dir %{_sysconfdir}/logrotate.d/
  158. %{_sysconfdir}/logrotate.d/lightdm
  159. %dir %attr(-,lightdm,lightdm) %{_localstatedir}/cache/lightdm/
  160. %dir %attr(-,lightdm,lightdm) %{_localstatedir}/lib/lightdm/
  161. %dir %attr(-,lightdm,lightdm) %{_localstatedir}/lib/lightdm-data/
  162. %dir %attr(-,lightdm,lightdm) %{_localstatedir}/log/lightdm/
  163. %dir %{_datadir}/bash-completion
  164. %dir %{_datadir}/bash-completion/completions
  165. %dir %{_datadir}/xgreeters/
  166. %{_bindir}/dm-tool
  167. %{_sbindir}/lightdm
  168. %{_libexecdir}/lightdm-guest-session
  169. %{_datadir}/lightdm/
  170. %{_mandir}/man1/dm-tool.1.gz
  171. %{_mandir}/man1/lightdm.1.gz
  172. %{_datadir}/accountsservice
  173. %{_datadir}/dbus-1/interfaces/*.xml
  174. %{_datadir}/dbus-1/system.d/*.conf
  175. %{_datadir}/polkit-1/rules.d/lightdm.rules
  176. %{_datadir}/polkit-1/actions/org.freedesktop.DisplayManager.AccountsService.policy
  177. %{_datadir}/bash-completion/completions/dm-tool
  178. %{_datadir}/bash-completion/completions/lightdm
  179. %if %{with systemd}
  180. %{_unitdir}/lightdm.service
  181. %{_tmpfilesdir}/lightdm.conf
  182. %ghost %dir %{_rundir}/lightdm
  183. %else
  184. %dir %{_localstatedir}/run/lightdm
  185. %endif
  186. %files gobject
  187. %defattr(-, root, root, -)
  188. %license COPYING.LGPL2 COPYING.LGPL3
  189. %{_libdir}/liblightdm-gobject-1.so.*
  190. %{_libdir}/girepository-1.0/LightDM-1.typelib
  191. %files gobject-devel
  192. %defattr(-, root, root, -)
  193. %{_includedir}/lightdm-gobject-1
  194. %{_libdir}/liblightdm-gobject-1.so
  195. %{_libdir}/pkgconfig/liblightdm-gobject-1.pc
  196. %{_datadir}/gir-1.0/LightDM-1.gir
  197. %{_datadir}/gtk-doc/html/lightdm-gobject-1
  198. %changelog
  199. * Tue Aug 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.30.0-1
  200. - new upstream release.
  201. - added systemd support (disabled as default).
  202. - dropped subpackages: lightdm-qt{,-devel}.
  203. * Mon Jul 4 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.19.2-1
  204. - updated to 1.19.2.
  205. * Sat Nov 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.17.2-1
  206. - update to 1.17.2
  207. - update Patch1000 (lightdm-1.17.2-vine.patch)
  208. * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.3-1
  209. - update to 1.12.3
  210. * Tue Sep 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.9-1
  211. - new upstream release
  212. * Wed Aug 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.5-1
  213. - new upstream release
  214. - update Patch1000 (lightdm-1.11.5-vine.patch)
  215. * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.4-1
  216. - new upstream release
  217. * Sun Jun 01 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.2-1
  218. - initial build