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