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