File qingy.spec of Package qingy
#
# spec file for package qingy (Version 0.9.9)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
%define sforge http://downloads.sourceforge.net/project
Summary: A replacement for getty with nice graphics and X session manager alike features
Name: qingy
Version: 0.9.9
Release: 1
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-develwarn-rpmlintrc
#Source2: %{sforge}/qingy/qingy/qingy%200.9.9/%{name}-%{version}.tar.gz
Vendor: %{vendor}
URL: http://qingy.sourceforge.net/
License: GPLv2
Group: System/GUI/Other
BuildRequires: pam-devel ncurses-devel libopenssl-devel
BuildRequires: xorg-x11-libX11-devel xorg-x11-devel
BuildRequires: DirectFB-devel >= 0.9.18
BuildRoot: %{_builddir}/%{name}-%{version}-build
%description
Written in C, qingy is a replacement for getty.
It uses DirectFB to provide a fast, nice GUI
without the overhead of the X Windows System.
It allows the user to log in and start the
session of his choice (text console, gnome, kde,
wmaker, ...)
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
	--includedir=%{_includedir} \
	--libdir=%{_libdir} \
	--datadir=%{_datadir} \
	--sysconfdir=%{_sysconfdir} \
	--docdir=%{_docdir}/%{name} \
	--mandir=%{_mandir} \
	--enable-pam \
	--disable-gpm-lock \
	--disable-optimizations
%{__make} %{?jobs:-j%jobs}
%debug_package
%install
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%{__install} -d -m 0755 %{buildroot}%{_docdir}/%{name}
%{__install} -m 0644 \
ChangeLog COPYING NEWS README TODO AUTHORS INSTALL THANKS \
%{buildroot}%{_docdir}/%{name}
find %{buildroot} -name "*.so" -exec strip {} \;
find %{buildroot} -name "*.qss" -exec strip {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_sbindir}/qingy
%{_sbindir}/qingy-DirectFB
%{_sbindir}/qingy-reset-console
%dir %{_sysconfdir}/qingy
%config %{_sysconfdir}/pam.d/qingy
%config %{_sysconfdir}/qingy/settings
%config %{_sysconfdir}/qingy/welcomes
%dir %{_libdir}/qingy
%{_libdir}/qingy/libqingy-0.9.9.so
%{_libdir}/qingy/libqingy.a
%{_libdir}/qingy/libqingy.la
%{_libdir}/qingy/libqingy.so
%dir %{_libdir}/qingy/screensavers
%{_libdir}/qingy/screensavers/*.qss
%dir %{_datadir}/qingy
%dir %{_datadir}/qingy/themes
%{_datadir}/qingy/themes/*
%doc /usr/share/info/qingy.info.gz
%doc ChangeLog COPYING NEWS README TODO AUTHORS
%doc INSTALL THANKS
%exclude /usr/lib/debug/*
%exclude /usr/lib/debug/.*
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%changelog
* Wed Jul 29 2009 Mario GarcĂa H. <code933k@gmail.com> - 0.9.9
- Initial package.