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