]>
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 | |
c0be6886 | 4 | Version: 1.1.4 |
e476a337 | 5 | Release: 2 |
c5b54d7b ZU |
6 | License: GPL v3 |
7 | Group: X11/Applications | |
96fe17ec | 8 | Source0: https://launchpad.net/lightdm/trunk/%{version}/+download/%{name}-%{version}.tar.gz |
c0be6886 | 9 | # Source0-md5: 1834ad416b338cf16edfbb9c5cde9afa |
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 | |
a0bff196 | 27 | BuildRequires: libtool |
768f7b75 ZU |
28 | BuildRequires: libxklavier-devel |
29 | BuildRequires: pam-devel | |
c5b54d7b ZU |
30 | BuildRequires: perl-XML-Parser |
31 | BuildRequires: perl-base | |
a0bff196 | 32 | BuildRequires: pkgconfig |
96fe17ec | 33 | BuildRequires: rpmbuild(macros) >= 1.583 |
6330239a | 34 | BuildRequires: vala |
d1bb4d34 | 35 | Requires: lightdm-greeter |
e476a337 | 36 | Provides: XDM |
d1bb4d34 JP |
37 | Provides: group(xdm) |
38 | Provides: user(xdm) | |
c5b54d7b ZU |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
96fe17ec ER |
41 | # TODO: fix this |
42 | #Unresolved symbols found in: liblightdm-qt-2.so.0.0.0 | |
43 | # QPixmap::~QPixmap() | |
44 | # QPixmap::operator QVariant() const | |
45 | # QPixmap::QPixmap(QString const&, char const*, QFlags<Qt::ImageConversionFlag>) | |
46 | %define skip_post_check_so liblightdm-qt-2.so.0.0.0 | |
47 | ||
c5b54d7b ZU |
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 | |
b287a3ee | 112 | install -d m4 |
6330239a | 113 | %{__gtkdocize} |
768f7b75 | 114 | %{__libtoolize} |
6330239a | 115 | %{__intltoolize} |
768f7b75 ZU |
116 | %{__aclocal} |
117 | %{__autoconf} | |
118 | %{__autoheader} | |
119 | %{__automake} | |
120 | %configure \ | |
d1bb4d34 | 121 | --disable-silent-rules \ |
96fe17ec | 122 | --disable-tests \ |
d1bb4d34 | 123 | --enable-liblightdm-qt \ |
48783655 | 124 | --with-html-dir=%{_gtkdocdir} \ |
6330239a | 125 | --enable-gtk-doc \ |
862615aa | 126 | --with-greeter-session=lightdm-gtk-greeter \ |
d1bb4d34 | 127 | --with-greeter-user=xdm |
c5b54d7b ZU |
128 | %{__make} |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
c5b54d7b ZU |
132 | %{__make} install \ |
133 | DESTDIR=$RPM_BUILD_ROOT | |
134 | ||
0139fe42 | 135 | install -d $RPM_BUILD_ROOT/etc/{pam.d,security,init,dbus-1/system.d} \ |
d1bb4d34 | 136 | $RPM_BUILD_ROOT/home/services/xdm \ |
96fe17ec | 137 | $RPM_BUILD_ROOT%{_datadir}/xgreeters \ |
0139fe42 | 138 | $RPM_BUILD_ROOT/var/log/lightdm |
96fe17ec | 139 | |
0139fe42 | 140 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/lightdm |
6330239a | 141 | touch $RPM_BUILD_ROOT/etc/security/blacklist.lightdm |
0139fe42 | 142 | cp -p data/init/%{name}.conf $RPM_BUILD_ROOT/etc/init |
d1bb4d34 JP |
143 | |
144 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{lb,wae} | |
145 | ||
146 | %find_lang %{name} | |
6330239a | 147 | |
c5b54d7b ZU |
148 | %clean |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
d1bb4d34 JP |
151 | %pre |
152 | %groupadd -g 55 -r -f xdm | |
153 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm | |
154 | ||
9bc4da5d ER |
155 | %post libs -p /sbin/ldconfig |
156 | %postun libs -p /sbin/ldconfig | |
6330239a | 157 | |
008e6bad ZU |
158 | %post upstart |
159 | %upstart_post lightdm | |
160 | ||
161 | %postun upstart | |
162 | %upstart_postun lightdm | |
163 | ||
d1bb4d34 | 164 | if [ "$1" = "0" ]; then |
0139fe42 ER |
165 | %userremove xdm |
166 | %groupremove xdm | |
d1bb4d34 JP |
167 | fi |
168 | ||
169 | %files -f %{name}.lang | |
c5b54d7b | 170 | %defattr(644,root,root,755) |
96fe17ec | 171 | %doc AUTHORS ChangeLog NEWS README TODO |
933e01e3 ER |
172 | %dir %{_sysconfdir}/%{name} |
173 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf | |
174 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/keys.conf | |
175 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/users.conf | |
176 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm | |
177 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.lightdm | |
96fe17ec ER |
178 | # XXX: move /etc/apparmor.d to filesystem package or make apparmor subpackage here |
179 | %dir /etc/apparmor.d | |
180 | /etc/apparmor.d/lightdm-guest-session | |
933e01e3 ER |
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) | |
196 | %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so.*.*.* | |
197 | %attr(755,root,root) %ghost %{_libdir}/liblightdm-gobject-1.so.0 | |
198 | %attr(755,root,root) %{_libdir}/liblightdm-qt-2.so.*.*.* | |
199 | %attr(755,root,root) %ghost %{_libdir}/liblightdm-qt-2.so.0 | |
200 | ||
c5b54d7b ZU |
201 | %files static |
202 | %defattr(644,root,root,755) | |
d1bb4d34 | 203 | %{_libdir}/liblightdm-gobject-1.a |
96fe17ec | 204 | %{_libdir}/liblightdm-qt-2.a |
c5b54d7b ZU |
205 | |
206 | %files devel | |
207 | %defattr(644,root,root,755) | |
d1bb4d34 JP |
208 | %{_libdir}/liblightdm-gobject-1.la |
209 | %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so | |
96fe17ec ER |
210 | %{_libdir}/liblightdm-qt-2.la |
211 | %attr(755,root,root) %{_libdir}/liblightdm-qt-2.so | |
d1bb4d34 | 212 | %{_includedir}/lightdm-gobject-1 |
96fe17ec | 213 | %{_includedir}/lightdm-qt-2 |
d1bb4d34 | 214 | %{_pkgconfigdir}/liblightdm-gobject-1.pc |
96fe17ec | 215 | %{_pkgconfigdir}/liblightdm-qt-2.pc |
d1bb4d34 JP |
216 | %{_datadir}/gir-1.0/LightDM-1.gir |
217 | %{_datadir}/vala/vapi/liblightdm-gobject-1.vapi | |
c5b54d7b ZU |
218 | |
219 | %files apidocs | |
220 | %defattr(644,root,root,755) | |
48783655 | 221 | %{_gtkdocdir}/lightdm-gobject-1 |
008e6bad ZU |
222 | |
223 | %files upstart | |
224 | %defattr(644,root,root,755) | |
0139fe42 | 225 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf |