#define git 33b232a %define git 74aa84c Name: antico Version: 0.2 Release: %mkrel -c git 2 Summary: Antico Desktop/Window Manager License: GPLv2 Url: http://www.giuseppecigala.it/Antico.html #Source0: https://github.com/antico/antico/tarball/master Source: pasmatt-%{name}-%{git}.zip #Source: %{name}-%{name}-%{git}.tar.gz Patch0: %{name}-mageia_icon.patch Group: Graphical desktop/Other BuildRequires: qt4-devel Requires: desktop-common-data %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 # patch to make antico more modular # fixed upstream (pasmatt fork on github) #find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/antico.cfg"|QDir::homePath() + "/.antico.cfg"|g' {} \; #find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/theme|QDir::rootPath() + "usr/share/antico/theme|g' {} \; #find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/language|QDir::rootPath() + "usr/share/antico/language|g' {} \; %build %{qmake_qt4} # FIXED - workaround to allow compilation on mga2 (why?) #%make SUBLIBS="-lXext -lX11" %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}