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