diff --git a/.gitignore b/.gitignore index e69de29..6bb5e9d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/dexter_0.18.tar.gz diff --git a/dexter.spec b/dexter.spec new file mode 100644 index 0000000..5eff5ac --- /dev/null +++ b/dexter.spec @@ -0,0 +1,82 @@ +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 - 0.18-2 +- Update Summary tag. + +* Fri Mar 18 2011 Thomas Moschny - 0.18-1 +- New package. diff --git a/sources b/sources index e69de29..67f1678 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +740a7781477afad1492f9aa362ff2cee dexter_0.18.tar.gz