#define git 33b232a %define git 816c8f1 Name: antico Version: 0.2 Release: %mkrel -c git 3 Summary: Antico Desktop/Window Manager License: GPLv2 Url: https://github.com/pasmatt/%{name} Source: pasmatt-%{name}-%{git}.zip Patch0: %{name}-mageia_icon.patch Group: Graphical desktop/Other BuildRequires: qt4-devel Requires: desktop-common-data Requires: mageia-theme-Default %description Antico is a Qt4/X11 Desktop/Window Manager. The goal is to create a Window/Desktop manager simple and fast. All parameters must be configured from few files, avoiding unnecessary complications, following the K.I.S.S. philosophy. The whole project is be based only on Qt4 libraries, without any other external dependencies. %prep %setup -q -n pasmatt-%{name}-%{git} %apply_patches %build %{qmake_qt4} %make %install rm -fr %{buildroot} install -D -d -m 755 %{buildroot}%{_bindir} install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} install -D -d -m 755 %{buildroot}%{_datadir}/%{name} cp -R theme %{buildroot}%{_datadir}/%{name}/ # ----------- patch wmsession.d ---------------------------- %__install -D -d -m 755 %{buildroot}%{_sysconfdir}/X11/wmsession.d file=%{name}-kdm.desktop name="$(sed -n 's,^Name=,,p' "$file")" comment="$(sed -n 's,^Comment=,,p' "$file")" tryexec="$(sed -n 's,^TryExec=,,p' "$file")" exec="$(sed -n 's,^Exec=,,p' "$file")" [ -n "$name" ] && [ -n "$comment" ] && [ -n "$exec" ] || exit 1 # EXEC needs to be absolute for chksession case $tryexec in */*) ;; *) tryexec=%{_bindir}/$tryexec;; esac outfile=%{buildroot}%{_sysconfdir}/X11/wmsession.d/14$(basename $file .desktop) echo "NAME=$name" > $outfile [ -n "$tryexec" ] && echo "EXEC=$tryexec" >> $outfile echo "DESC=$comment" >> $outfile echo "SCRIPT:" >> $outfile echo "exec %{_bindir}/$exec" >> $outfile # --------- end patch ------------------------------------------ install -D -d -m 755 %{buildroot}%{_datadir}/%{name} cp -R language %{buildroot}%{_datadir}/%{name}/ chmod -R 755 %{buildroot}%{_datadir}/%{name}/theme chmod -R 755 %{buildroot}%{_datadir}/%{name}/language %clean rm -fr %{buildroot} %files %defattr(-,root,root,-) %doc CHANGELOG COPYING README %{_bindir}/antico %{_sysconfdir}/X11/wmsession.d %{_datadir}/%{name}