Name: simple-ccsm Version: 0.9.2.2 Release: 0.1.gita5096d34bd%{?dist} Summary: Simplified configuration tool for Compiz Group: User Interface/Desktops License: GPLv2+ URL: http://www.compiz.org #Source0: http://releases.compiz-fusion.org/components/%{name}/%{name}-%{version}.tar.bz2 # This is the compiz++ branch of upstream simple-ccsm git # git clone git://anongit.compiz.org/fusion/compizconfig/simple-ccsm # cd simple-ccsm # git branch compiz++ origin/compiz++ # git archive --format=tar compiz++ > simple-ccsm-(commitid).tar # bzip2 simple-ccsm-(commitid).tar Source0: simple-ccsm-28dc57076fd11be48f8b90c679d251a5096d34bd.tar.bz2 # 'Compiz' is not a standard desktop category: will submit upstream Patch0: simple-ccsm-0.9.2.2-desktop.patch # libdrm is not available on these arches ExcludeArch: s390 s390x ppc64 BuildArch: noarch BuildRequires: python-setuptools BuildRequires: intltool Requires: compizconfig-python >= 0.9.2.1 # Does nothing useful without this Requires: compiz-plugins-main Requires: pygtk2 %description simple-ccsm aims to provide a simpler configuration interface for the Compiz compositing manager than is provided by ccsm. %prep %setup -q -c %{name}-%{version} %patch0 -p1 %build CFLAGS="%{optflags}" %{__python} setup.py build --prefix=%{_usr} %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --prefix=%{buildroot}%{_usr} # put the scalable icon in...the scalable...place... # not removing the svg copies in size-specific dirs as things may # know to use the 22x22 (simple) one for smaller sizes and the 32x32 # (complex) one for larger sizes mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps cp %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %find_lang %{name} %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING LICENSE NEWS %{_bindir}/%{name} %{python_sitelib}/simple_ccsm-*.egg-info %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_datadir}/%{name} %changelog * Thu Jan 20 2011 Adam Williamson - 0.9.2.2-0.1.gita5096d34bd - initial build