lightdm-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. Summary: A lightweight display manager
  2. Summary(ja): 軽量ディスプレイマネージャー
  3. Name: lightdm
  4. Version: 1.11.4
  5. Release: 1%{?_dist_release}
  6. License: GPLv3,LGPLv2,LGPLv3
  7. Group: User Interface/X
  8. URL: http://www.freedesktop.org/wiki/Software/LightDM/
  9. Source0: https://launchpad.net/%{name}/1.11/%{version}/+download/%{name}-%{version}.tar.xz
  10. Source1: lightdm-pam
  11. Source2: lightdm-autologin-pam
  12. Source4: lightdm.rules
  13. Patch0: lightdm-1.11.2-no_dmrc_save.patch
  14. Patch1: lightdm-1.11.2-nodaemon_option.patch
  15. # for Vine Linux
  16. Patch1000: lightdm-1.11.2-vine.patch
  17. Requires(pre): shadow-utils
  18. Requires: accountsservice
  19. Requires: dbus-x11
  20. Requires: pam
  21. Requires: xorg-x11-xinit
  22. Requires: %{name}-gobject = %{version}-%{release}
  23. Requires: lightdm-greeter
  24. BuildRequires: glib2-devel >= 2.30.0
  25. BuildRequires: gobject-introspection-devel
  26. BuildRequires: libXdmcp-devel
  27. BuildRequires: libxcb-devel
  28. BuildRequires: libxklavier-devel
  29. BuildRequires: libX11-devel
  30. BuildRequires: pam-devel
  31. BuildRequires: libgcrypt-devel
  32. BuildRequires: qt4-devel
  33. BuildRequires: yelp-tools
  34. Vendor: Project Vine
  35. Distribution: Vine Linux
  36. Packager: Takemikaduchi
  37. %description
  38. An display manager that:
  39. * Has a lightweight codebase
  40. * Is standards compliant (PAM, ConsoleKit, etc)
  41. * Has a well defined interface between the server and user interface
  42. * Cross-desktop (greeters can be written in any toolkit)
  43. %package gobject
  44. Summary: LightDM GObject client library
  45. %description gobject
  46. This package contains a GObject based library for LightDM clients to
  47. use to interface with LightDM.
  48. %package gobject-devel
  49. Summary: Development files and headers for %{name}-gobject
  50. Group: Development/Libraries
  51. Requires: %{name}-gobject = %{version}-%{release}
  52. Requires: pkgconfig
  53. %description gobject-devel
  54. Development files and headers for %{name}-gobject.
  55. %package qt
  56. Summary: LightDM QT client library
  57. %description qt
  58. This package contains a QT based library for LightDM clients to use
  59. to interface with LightDM.
  60. %package qt-devel
  61. Summary: Development files and headers for %{name}-qt
  62. Group: Development/Libraries
  63. Requires: %{name}-qt = %{version}-%{release}
  64. Requires: pkgconfig
  65. %description qt-devel
  66. Development files and headers for %{name}-qt.
  67. %prep
  68. %setup -q
  69. %patch0 -p1 -b .dmrc
  70. %patch1 -p1 -b .nodaemon_option
  71. %patch1000 -p1 -b .vine
  72. %build
  73. autoreconf -if
  74. %configure \
  75. --enable-liblightdm-gobject \
  76. --enable-liblightdm-qt \
  77. --disable-liblightdm-qt5 \
  78. --enable-introspection \
  79. --with-greeter-user=lightdm
  80. make %{?_smp_mflags}
  81. %install
  82. rm -rf $RPM_BUILD_ROOT
  83. make install DESTDIR=$RPM_BUILD_ROOT
  84. install -m 0644 -p -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/lightdm
  85. install -m 0644 -p -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/lightdm-autologin
  86. install -m 0644 -p -D %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/polkit-1/rules.d/lightdm.rules
  87. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/lightdm
  88. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/lightdm
  89. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lightdm
  90. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/lightdm-data
  91. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/lightdm
  92. # remove unused files
  93. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/init/lightdm.conf
  94. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/lightdm-guest-session
  95. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/abstractions/lightdm
  96. # remove unused files
  97. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/init/lightdm.conf
  98. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/lightdm-guest-session
  99. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/abstractions/lightdm
  100. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/abstractions/lightdm_chromium-browser
  101. find $RPM_BUILD_ROOT -name '*.a' -delete
  102. find $RPM_BUILD_ROOT -name '*.la' -delete
  103. %find_lang %{name} --with-gnome
  104. %pre
  105. getent group lightdm >/dev/null || groupadd -r lightdm
  106. getent passwd lightdm >/dev/null || \
  107. /usr/sbin/useradd -g lightdm -M -d /var/lightdm -s /sbin/nologin -r lightdm
  108. exit 0
  109. %post gobject -p /sbin/ldconfig
  110. %postun gobject -p /sbin/ldconfig
  111. %post qt -p /sbin/ldconfig
  112. %postun qt -p /sbin/ldconfig
  113. %files -f %{name}.lang
  114. %defattr(-, root, root, -)
  115. %doc COPYING.GPL3 COPYING.LGPL2 COPYING.LGPL3 NEWS
  116. %dir %{_sysconfdir}/lightdm
  117. %config(noreplace) %{_sysconfdir}/lightdm/keys.conf
  118. %config(noreplace) %{_sysconfdir}/lightdm/lightdm.conf
  119. %config(noreplace) %{_sysconfdir}/lightdm/users.conf
  120. %config %{_sysconfdir}/pam.d/lightdm
  121. %config %{_sysconfdir}/pam.d/lightdm-autologin
  122. %config %{_sysconfdir}/pam.d/lightdm-greeter
  123. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.DisplayManager.conf
  124. %{_bindir}/dm-tool
  125. %{_sbindir}/lightdm
  126. %{_libexecdir}/lightdm-guest-session
  127. %{_datadir}/polkit-1/rules.d/lightdm.rules
  128. %{_mandir}/man1/dm-tool.1.gz
  129. %{_mandir}/man1/lightdm.1.gz
  130. %dir %{_localstatedir}/log/lightdm
  131. %dir %{_localstatedir}/run/lightdm
  132. %dir %attr(1770,lightdm,lightdm) %{_localstatedir}/lightdm
  133. %dir %attr(-,lightdm,lightdm) %{_localstatedir}/cache/lightdm
  134. %dir %attr(-,lightdm,lightdm) %{_localstatedir}/lib/lightdm-data/
  135. %files gobject
  136. %defattr(-, root, root, -)
  137. %{_libdir}/liblightdm-gobject-1.so.*
  138. %{_libdir}/girepository-1.0/LightDM-1.typelib
  139. %files gobject-devel
  140. %defattr(-, root, root, -)
  141. %{_includedir}/lightdm-gobject-1
  142. %{_libdir}/liblightdm-gobject-1.so
  143. %{_libdir}/pkgconfig/liblightdm-gobject-1.pc
  144. %{_datadir}/gir-1.0/LightDM-1.gir
  145. %{_datadir}/vala/vapi/liblightdm-gobject-1.vapi
  146. %{_datadir}/gtk-doc/html/lightdm-gobject-1
  147. %files qt
  148. %defattr(-, root, root, -)
  149. %{_libdir}/liblightdm-qt-3.so.*
  150. %files qt-devel
  151. %defattr(-, root, root, -)
  152. %{_includedir}/lightdm-qt-3
  153. %{_libdir}/liblightdm-qt-3.so
  154. %{_libdir}/pkgconfig/liblightdm-qt-3.pc
  155. %changelog
  156. * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.4-1
  157. - new upstream release
  158. * Sun Jun 01 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.2-1
  159. - initial build