Sophie

Sophie

distrib > Mandriva > 2008.0 > i586 > by-pkgid > c65678c8b967c1da0ce29035c4f34ff8 > files > 2

ccsm-0.5.2-2mdv2008.0.src.rpm

%define name ccsm
%define version 0.5.2
%define rel 2
%define git 0

%if  %{git}
%define srcname %{name}-%{git}
%define distname %{name}
%define release %mkrel 0.%{git}.%{rel}
%else
%define srcname %{name}-%{version}
%define distname %{name}-%{version}
%define release %mkrel %{rel}
%endif

Name: %name
Version: %version
Release: %release
Summary: Compiz Config Settings Manager
Group: System/X11
URL: http://www.compiz-fusion.org/
Source: %{srcname}.tar.bz2
License: GPL
BuildRoot: %{_tmppath}/%{name}-root
BuildArch: noarch
BuildRequires: compiz-devel
BuildRequires: compizconfig-python-devel
BuildRequires: pygtk2.0-devel
BuildRequires: intltool
BuildRequires: desktop-file-utils
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils

Requires: compizconfig-python
Requires: pygtk2.0

Obsoletes: gset-compiz
Obsoletes: beryl-settings
Obsoletes: beryl-settings-simple

%description
Compiz Config Settings Manager

#----------------------------------------------------------------------------

%prep
%setup -q -n %{distname}

%build
python setup.py build --prefix=%{_prefix}

%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -f %{buildroot}%{py_puresitedir}/*.egg-info
%find_lang %{name}


desktop-file-install \
  --vendor="" \
  --remove-category="Compiz" \
  --add-category="GTK" \
  --add-category="Settings" \
  --add-category="DesktopSettings" \
  --add-category="X-MandrivaLinux-CrossDesktop" \
  --dir %{buildroot}%{_datadir}/applications \
  %{buildroot}%{_datadir}/applications/%{name}.desktop

%clean
rm -rf %{buildroot}

%post
%update_menus
%{update_desktop_database}

%postun
%clean_menus
%{clean_desktop_database}

#----------------------------------------------------------------------------

%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/images
%{_datadir}/%{name}/images/*.svg
%dir %{py_puresitedir}/ccm
%{py_puresitedir}/ccm/*.py
%{py_puresitedir}/ccm/*.pyc
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop


%changelog
* Sun Sep 02 2007 Colin Guthrie <cguthrie@mandriva.org> 0.5.2-2mdv2008.0
+ Revision: 78197
- Fixes #33074 - fix .desktop categories
- Fix typo in desktop file handling

* Mon Aug 13 2007 Colin Guthrie <cguthrie@mandriva.org> 0.5.2-1mdv2008.0
+ Revision: 62613
- Official Release: 0.5.2

* Sun Aug 12 2007 Colin Guthrie <cguthrie@mandriva.org> 0.1.0-0.20070811.1mdv2008.0
+ Revision: 62128
- Update snapshot
- Make noarch now that the invalid configure is gone
- Install properly (fixes image display)

* Wed Aug 01 2007 Colin Guthrie <cguthrie@mandriva.org> 0.1.0-0.20070801.1mdv2008.0
+ Revision: 57837
- Updated snapshot

* Wed Jul 25 2007 Colin Guthrie <cguthrie@mandriva.org> 0.1.0-0.20070724.1mdv2008.0
+ Revision: 55251
- Update Snapshot

* Sat Jul 14 2007 Colin Guthrie <cguthrie@mandriva.org> 0.1.0-0.20070714.1mdv2008.0
+ Revision: 52119
- Update snapshot

* Sat Jul 07 2007 Colin Guthrie <cguthrie@mandriva.org> 0.1.0-0.20070707.1mdv2008.0
+ Revision: 49552
- Update Snapshot to 20070707
- Obsolete Beryl Settings and GSet Compiz
- Import ccsm