Blob Blame History Raw
Name:           dexter
Version:        0.18
Release:        2%{?dist}
Summary:        Address Book that goes hand in hand with Postler
Group:          Applications/Internet
License:        GPLv3
URL:            http://launchpad.net/dexter-rolodex
Source0:        http://launchpad.net/dexter-rolodex/0.x/%{version}/+download/%{name}_%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-distutils-extra
BuildRequires:  pygtk2 python-storm python-vobject 
BuildRequires:  dbus-python pygobject2 python-enchant
BuildRequires:  intltool
BuildRequires:  Xvfb xauth
BuildRequires:  desktop-file-utils
Requires:       pygtk2 python-storm python-vobject
Requires:       dbus-python pygobject2 python-enchant


%description
Dexter is a very simple, easy to use address book, designed with the
home user in mind. This personal contact manager integrates with
Postler, and can import and export contacts in vCard format.


%prep
%setup -q -n dexter-rolodex

# apport is ubuntu-specific
rm -rf apport etc/apport

# remove shebangs and fix permissions
find . -type f -a \( -name '*.py' -o -name 'py.*' \) \
   -exec sed -i '1{/^#!/d}' {} \; \
   -exec chmod u=rw,go=r {} \;


%build
xvfb-run -a -w 1 %{__python} setup.py build


%install
rm -rf %{buildroot}
# --skip-build prevents message catalogs from being installed
xvfb-run -a -w 1 %{__python} setup.py install -O1  --root %{buildroot}

desktop-file-validate %{buildroot}%{_datadir}/applications/dexter.desktop

%find_lang %{name}


%clean
rm -rf %{buildroot}


%post
update-desktop-database &>/dev/null || :


%postun
update-desktop-database &> /dev/null || :


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING
%{_bindir}/dexter
%{_bindir}/dexter-server
%{_datadir}/dexter
%{python_sitelib}/dexter*
%{_datadir}/dbus-1/services/org.elementary.dexterserver.service
%{_datadir}/applications/dexter.desktop


%changelog
* Mon Mar 28 2011 Thomas Moschny <thomas.moschny@gmx.de> - 0.18-2
- Update Summary tag.

* Fri Mar 18 2011 Thomas Moschny <thomas.moschny@gmx.de> - 0.18-1
- New package.