packages: lightdm/lightdm.spec - add pam configuration file (based on gdm) ...

atler atler at pld-linux.org
Fri Jan 7 15:28:34 CET 2011


Author: atler                        Date: Fri Jan  7 14:28:34 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add pam configuration file (based on gdm)
- BR: vala
- post ldconfig
- make all binaries executable
- %files cleanup
- fix typos

---- Files affected:
packages/lightdm:
   lightdm.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/lightdm/lightdm.spec
diff -u packages/lightdm/lightdm.spec:1.4 packages/lightdm/lightdm.spec:1.5
--- packages/lightdm/lightdm.spec:1.4	Tue Jan  4 08:28:44 2011
+++ packages/lightdm/lightdm.spec	Fri Jan  7 15:28:29 2011
@@ -3,11 +3,12 @@
 Summary(hu.UTF-8):	Egy könnyűsúlyú bejelentkezéskezelő
 Name:		lightdm
 Version:	0.2.2
-Release:	0.1
+Release:	0.2
 License:	GPL v3
 Group:		X11/Applications
 Source0:	http://launchpad.net/lightdm/trunk/%{version}/+download/%{name}-%{version}.tar.gz
 # Source0-md5:	143cd786a28e93ed2728b0b4afe7068d
+Source1:	%{name}.pamd
 URL:		https://launchpad.net/lightdm
 BuildRequires:	QtDBus-devel
 BuildRequires:	dbus-glib-devel
@@ -19,6 +20,7 @@
 BuildRequires:	pam-devel
 BuildRequires:	perl-XML-Parser
 BuildRequires:	perl-base
+BuildRequires:	vala
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define         skip_post_check_so	liblightdm-qt-0.so.0.0.0
@@ -41,14 +43,14 @@
 
 %package themes-core
 Summary:	Core themes for lightdm
-Summary(hu.UTF-8):	Alap témák a ligthdm-hez
+Summary(hu.UTF-8):	Alap témák a lightdm-hez
 Group:		Themes
 
 %description themes-core
 Core themes for lightdm.
 
 %description themes-core -l hu.UTF-8
-Alap témák a ligthdm-hez.
+Alap témák a lightdm-hez.
 
 %package static
 Summary:	Static library for lightdm development
@@ -86,12 +88,15 @@
 %setup -q
 
 %build
+%{__gtkdocize}
 %{__libtoolize}
+%{__intltoolize}
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
+	--enable-gtk-doc \
 	--with-theme-dir=%{_datadir}/%{name}/themes
 %{__make}
 
@@ -101,9 +106,17 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT/etc/{pam.d,security} \
+	$RPM_BUILD_ROOT/var/log/lightdm
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/lightdm
+touch $RPM_BUILD_ROOT/etc/security/blacklist.lightdm
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %post upstart
 %upstart_post lightdm
 
@@ -114,24 +127,26 @@
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
 %attr(755,root,root) %{_bindir}/*
-# missing ldconfig post?
-# missing ghost soname link?
 %attr(755,root,root) %{_libdir}/liblightdm-gobject-0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblightdm-gobject-0.so.0
 %attr(755,root,root) %{_libdir}/liblightdm-qt-0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblightdm-qt-0.so.0
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/themes
 %{_libdir}/girepository-1.0/LightDM-0.typelib
 %{_mandir}/man1/lightdm*
 /etc/dbus-1/system.d/org.lightdm.LightDisplayManager.conf
-# missing config no replace?
-%{_sysconfdir}/%{name}.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.lightdm
+%attr(750,root,root) /var/log/lightdm
 
 %files themes-core
 %defattr(644,root,root,755)
 %{_datadir}/%{name}/themes/gnome
-%{_libdir}/ldm-gtk-greeter
+%attr(755,root,root) %{_libdir}/ldm-gtk-greeter
 %{_datadir}/%{name}/themes/webkit
-%{_libdir}/ldm-webkit-greeter
+%attr(755,root,root) %{_libdir}/ldm-webkit-greeter
 
 %files static
 %defattr(644,root,root,755)
@@ -141,12 +156,15 @@
 %files devel
 %defattr(644,root,root,755)
 %{_libdir}/liblightdm-gobject-0.la
+%attr(755,root,root) %{_libdir}/liblightdm-gobject-0.so
 %{_libdir}/liblightdm-qt-0.la
+%attr(755,root,root) %{_libdir}/liblightdm-qt-0.so
 %{_includedir}/lightdm-gobject-0
 %{_includedir}/lightdm-qt-0
 %{_pkgconfigdir}/liblightdm-gobject-0.pc
 %{_pkgconfigdir}/liblightdm-qt-0.pc
 %{_datadir}/gir-1.0/LightDM-0.gir
+%{_datadir}/vala/vapi/LightDM-0.vapi
 
 %files apidocs
 %defattr(644,root,root,755)
@@ -163,6 +181,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2011/01/07 14:28:29  atler
+- add pam configuration file (based on gdm)
+- BR: vala
+- post ldconfig
+- make all binaries executable
+- %files cleanup
+- fix typos
+
 Revision 1.4  2011/01/04 07:28:44  glen
 - libs should be executable, some todos
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lightdm/lightdm.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list