]>
Commit | Line | Data |
---|---|---|
c5b54d7b ZU |
1 | Summary: A lightweight display manager |
2 | Summary(hu.UTF-8): Egy könnyűsúlyú bejelentkezéskezelő | |
3 | Name: lightdm | |
eccfdb7d ER |
4 | Version: 1.7.0 |
5 | Release: 0.1 | |
eff0aaee ER |
6 | # library/bindings are LGPLv2 or LGPLv3, the rest GPLv3+ |
7 | License: (LGPLv2 or LGPLv3) and GPLv3+ | |
c5b54d7b | 8 | Group: X11/Applications |
eccfdb7d ER |
9 | Source0: https://launchpad.net/lightdm/1.8/%{version}/+download/%{name}-%{version}.tar.xz |
10 | # Source0-md5: 8149739fde801982cfcc8006133df21d | |
6330239a | 11 | Source1: %{name}.pamd |
0bb325b5 | 12 | Patch2: upstart-path.patch |
65a202a6 | 13 | URL: http://www.freedesktop.org/wiki/Software/LightDM |
a0bff196 | 14 | BuildRequires: QtCore-devel |
768f7b75 | 15 | BuildRequires: QtDBus-devel |
a0bff196 | 16 | BuildRequires: QtGui-devel |
17 | BuildRequires: QtNetwork-devel | |
18 | BuildRequires: autoconf | |
c5b54d7b | 19 | BuildRequires: dbus-glib-devel |
a0bff196 | 20 | BuildRequires: docbook-dtd412-xml |
c5b54d7b | 21 | BuildRequires: gettext-devel |
a0bff196 | 22 | BuildRequires: gnome-common |
c5b54d7b | 23 | BuildRequires: gnome-doc-utils |
96fe17ec | 24 | BuildRequires: gtk+2-devel >= 2:2.24 |
a0bff196 | 25 | BuildRequires: gtk-doc |
c5b54d7b ZU |
26 | BuildRequires: gtk-webkit-devel |
27 | BuildRequires: intltool | |
e8d8d6ad | 28 | BuildRequires: itstool |
a0bff196 | 29 | BuildRequires: libtool |
768f7b75 ZU |
30 | BuildRequires: libxklavier-devel |
31 | BuildRequires: pam-devel | |
c5b54d7b ZU |
32 | BuildRequires: perl-XML-Parser |
33 | BuildRequires: perl-base | |
a0bff196 | 34 | BuildRequires: pkgconfig |
96fe17ec | 35 | BuildRequires: rpmbuild(macros) >= 1.583 |
e8d8d6ad | 36 | BuildRequires: tar >= 1:1.22 |
6330239a | 37 | BuildRequires: vala |
e8d8d6ad ER |
38 | BuildRequires: xz |
39 | BuildRequires: yelp-tools | |
26ddca36 | 40 | Requires: /usr/bin/X |
e8d8d6ad | 41 | Requires: dbus-x11 |
d1bb4d34 | 42 | Requires: lightdm-greeter |
e476a337 | 43 | Provides: XDM |
d1bb4d34 JP |
44 | Provides: group(xdm) |
45 | Provides: user(xdm) | |
c5b54d7b ZU |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | An X display manager that: | |
50 | - Has a lightweight codebase | |
51 | - Is standards compliant (PAM, ConsoleKit, etc) | |
52 | - Has a well defined interface between the server and user interface | |
53 | - Fully themeable (easiest with the webkit interface) | |
54 | - Cross-desktop (greeters can be written in any toolkit) | |
55 | ||
56 | %description -l hu.UTF-8 | |
57 | Egy X bejelentkezéskezelő, amely: | |
58 | - pehelysúlyú kóddal rendelkezik | |
59 | - követi a standardokat (PAM, ConsoleKit, stb.) | |
60 | - jól-definiált felület a szerver és a felhasználói felület között | |
61 | - teljesen témázható (a legkönnyebb a webkit felülettel) | |
62 | - desktop-független (üdvözlők bármilyen eszközkészlettel írhatók) | |
63 | ||
9bc4da5d ER |
64 | %package libs |
65 | Summary: lightdm libraries | |
66 | Group: Libraries | |
67 | Conflicts: lightdm < 1.1.1-2 | |
68 | ||
69 | %description libs | |
70 | lightdm libraries. | |
71 | ||
c5b54d7b ZU |
72 | %package static |
73 | Summary: Static library for lightdm development | |
74 | Group: Development/Libraries | |
75 | ||
76 | %description static | |
77 | Static library for lightdm development. | |
78 | ||
c5b54d7b ZU |
79 | %package devel |
80 | Summary: Header files for lightdm development | |
81 | Group: Development/Libraries | |
9bc4da5d | 82 | Requires: %{name}-libs = %{version}-%{release} |
c5b54d7b ZU |
83 | |
84 | %description devel | |
85 | Header files for lightdm development. | |
86 | ||
c5b54d7b ZU |
87 | %package apidocs |
88 | Summary: lightdm API documentation | |
89 | Group: Documentation | |
90 | ||
91 | %description apidocs | |
92 | lightdm API documentation. | |
93 | ||
008e6bad ZU |
94 | %package upstart |
95 | Summary: Upstart job for lightdm | |
96 | Summary(hu.UTF-8): Upstart támogatás lightdm-hez | |
97 | Group: Daemons | |
b2e116cd ER |
98 | Requires: %{name} = %{epoch}:%{version}-%{release} |
99 | Requires: upstart >= 0.6 | |
008e6bad ZU |
100 | |
101 | %description upstart | |
102 | Upstart job for lightdm. | |
103 | ||
104 | %description upstart -l hu.UTF-8 | |
105 | Upstart támogatás lightdm-hez. | |
106 | ||
c5b54d7b ZU |
107 | %prep |
108 | %setup -q | |
0bb325b5 | 109 | %patch2 -p1 |
c5b54d7b ZU |
110 | |
111 | %build | |
768f7b75 | 112 | %{__libtoolize} |
a84ee4bd | 113 | %{__gtkdocize} |
768f7b75 ZU |
114 | %{__aclocal} |
115 | %{__autoconf} | |
116 | %{__autoheader} | |
117 | %{__automake} | |
118 | %configure \ | |
d1bb4d34 | 119 | --disable-silent-rules \ |
96fe17ec | 120 | --disable-tests \ |
d1bb4d34 | 121 | --enable-liblightdm-qt \ |
48783655 | 122 | --with-html-dir=%{_gtkdocdir} \ |
6330239a | 123 | --enable-gtk-doc \ |
862615aa | 124 | --with-greeter-session=lightdm-gtk-greeter \ |
d1bb4d34 | 125 | --with-greeter-user=xdm |
c5b54d7b ZU |
126 | %{__make} |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
c5b54d7b ZU |
130 | %{__make} install \ |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
0139fe42 | 133 | install -d $RPM_BUILD_ROOT/etc/{pam.d,security,init,dbus-1/system.d} \ |
d1bb4d34 | 134 | $RPM_BUILD_ROOT/home/services/xdm \ |
96fe17ec | 135 | $RPM_BUILD_ROOT%{_datadir}/xgreeters \ |
0139fe42 | 136 | $RPM_BUILD_ROOT/var/log/lightdm |
96fe17ec | 137 | |
0139fe42 | 138 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/lightdm |
6330239a | 139 | touch $RPM_BUILD_ROOT/etc/security/blacklist.lightdm |
0139fe42 | 140 | cp -p data/init/%{name}.conf $RPM_BUILD_ROOT/etc/init |
d1bb4d34 | 141 | |
e8d8d6ad ER |
142 | # We don't ship AppAmor |
143 | rm -rv $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d | |
144 | ||
d1bb4d34 JP |
145 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{lb,wae} |
146 | ||
a84ee4bd | 147 | %find_lang %{name} --with-gnome |
6330239a | 148 | |
c5b54d7b ZU |
149 | %clean |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
d1bb4d34 JP |
152 | %pre |
153 | %groupadd -g 55 -r -f xdm | |
154 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm | |
155 | ||
9bc4da5d ER |
156 | %post libs -p /sbin/ldconfig |
157 | %postun libs -p /sbin/ldconfig | |
6330239a | 158 | |
008e6bad ZU |
159 | %post upstart |
160 | %upstart_post lightdm | |
161 | ||
162 | %postun upstart | |
163 | %upstart_postun lightdm | |
164 | ||
d1bb4d34 | 165 | if [ "$1" = "0" ]; then |
0139fe42 ER |
166 | %userremove xdm |
167 | %groupremove xdm | |
d1bb4d34 JP |
168 | fi |
169 | ||
170 | %files -f %{name}.lang | |
c5b54d7b | 171 | %defattr(644,root,root,755) |
eff0aaee | 172 | %doc NEWS |
933e01e3 ER |
173 | %dir %{_sysconfdir}/%{name} |
174 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf | |
175 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/keys.conf | |
176 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/users.conf | |
177 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm | |
15907466 BZ |
178 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-autologin |
179 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-greeter | |
933e01e3 ER |
180 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.lightdm |
181 | /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf | |
182 | %attr(755,root,root) %{_bindir}/dm-tool | |
d1bb4d34 | 183 | %attr(755,root,root) %{_sbindir}/lightdm |
933e01e3 ER |
184 | %dir %{_libdir}/%{name} |
185 | %attr(755,root,root) %{_libdir}/%{name}/gdmflexiserver | |
96fe17ec ER |
186 | %attr(755,root,root) %{_libdir}/%{name}/lightdm-guest-session-wrapper |
187 | %attr(755,root,root) %{_libdir}/%{name}/lightdm-set-defaults | |
d1bb4d34 | 188 | %{_libdir}/girepository-1.0/LightDM-1.typelib |
d1bb4d34 | 189 | %dir %{_datadir}/xgreeters |
933e01e3 | 190 | %{_mandir}/man1/lightdm* |
d1bb4d34 JP |
191 | %attr(750,root,xdm) /var/log/lightdm |
192 | %attr(750,xdm,xdm) /home/services/xdm | |
193 | ||
9bc4da5d ER |
194 | %files libs |
195 | %defattr(644,root,root,755) | |
eccfdb7d | 196 | # -gobject |
9bc4da5d ER |
197 | %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so.*.*.* |
198 | %attr(755,root,root) %ghost %{_libdir}/liblightdm-gobject-1.so.0 | |
eccfdb7d ER |
199 | # -qt |
200 | %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so.*.*.* | |
201 | %attr(755,root,root) %ghost %{_libdir}/liblightdm-qt-3.so.0 | |
9bc4da5d | 202 | |
c5b54d7b ZU |
203 | %files static |
204 | %defattr(644,root,root,755) | |
d1bb4d34 | 205 | %{_libdir}/liblightdm-gobject-1.a |
eccfdb7d | 206 | %{_libdir}/liblightdm-qt-3.a |
c5b54d7b ZU |
207 | |
208 | %files devel | |
209 | %defattr(644,root,root,755) | |
eccfdb7d ER |
210 | # -gobject |
211 | %{_datadir}/gir-1.0/LightDM-1.gir | |
d1bb4d34 | 212 | %{_includedir}/lightdm-gobject-1 |
d1bb4d34 | 213 | %{_pkgconfigdir}/liblightdm-gobject-1.pc |
eccfdb7d ER |
214 | %{_libdir}/liblightdm-gobject-1.la |
215 | %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so | |
216 | # -vala | |
d1bb4d34 | 217 | %{_datadir}/vala/vapi/liblightdm-gobject-1.vapi |
eccfdb7d ER |
218 | # -qt |
219 | %{_libdir}/liblightdm-qt-3.la | |
220 | %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so | |
221 | %{_includedir}/lightdm-qt-3 | |
222 | %{_pkgconfigdir}/liblightdm-qt-3.pc | |
c5b54d7b ZU |
223 | |
224 | %files apidocs | |
225 | %defattr(644,root,root,755) | |
48783655 | 226 | %{_gtkdocdir}/lightdm-gobject-1 |
008e6bad ZU |
227 | |
228 | %files upstart | |
229 | %defattr(644,root,root,755) | |
0139fe42 | 230 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf |