LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File eggwm.spec of Package eggwm (Project X11:windowmanagers)

# vim: set sw=4 ts=4 et nu:

Name:               eggwm
Version:            0.2
Release:            0
Summary:            Lightweight Qt4 Window Manager
Source:             http://eggwm.googlecode.com/files/eggwm-%{version}.tar.gz
Source1:            eggwm.desktop
URL:                http://code.google.com/p/eggwm/
Group:              System/GUI/Other
License:            GNU General Public License version 3 (GPL v3)
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildRequires:      libqt4-devel
BuildRequires:      gcc-c++ make glibc-devel pkgconfig
%if 0%{?suse_version} >= 1120
BuildRequires:      fdupes
%endif

%description
EggWM is a lightweight window manager written in Qt4.

%prep
%setup -q
find . -type f -exec %__chmod 0644 {} \;

%build
qmake
%__make %{?_smp_flags}

%install
%__make INSTALL_ROOT="%{buildroot}" install

%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/xsessions/%{name}.desktop"

%if 0%{?suse_version} >= 1120
%fdupes -s "%{buildroot}%{_datadir}/eggwm/themes"
%endif

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%{_bindir}/eggwm
%{_datadir}/eggwm
%{_datadir}/xsessions/%{name}.desktop