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