[fedmsg-notify] Initial import

Luke Macken lmacken at fedoraproject.org
Sat Oct 6 06:05:30 UTC 2012


commit 221f4dc9120acb8b035cb56691320b37b81aa428
Author: Luke Macken <lmacken at redhat.com>
Date:   Sat Oct 6 02:05:14 2012 -0400

    Initial import

 .gitignore         |    1 +
 fedmsg-notify.spec |   69 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..86b3111 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fedmsg-notify-0.2.0.tar.gz
diff --git a/fedmsg-notify.spec b/fedmsg-notify.spec
new file mode 100644
index 0000000..04901a2
--- /dev/null
+++ b/fedmsg-notify.spec
@@ -0,0 +1,69 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
+
+%global modname fedmsg_notify
+%global busname org.fedoraproject.fedmsg.notify
+
+Name:           fedmsg-notify
+Version:        0.2.0
+Release:        1%{?dist}
+Summary:        Fedmsg Desktop Notifications
+
+License:        GPLv3+
+URL:            https://github.com/lmacken/fedmsg-notify
+Source0:        https://github.com/downloads/lmacken/%{name}/%{name}-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools-devel
+BuildRequires:  pygobject3
+BuildRequires:  desktop-file-utils
+
+Requires:       fedmsg >= 0.5.3
+Requires:       pygobject3
+
+%description
+fedmsg-notify provides a dbus-activated daemon that subscribes to realtime
+messages from Fedora Infrastructure and displays them as desktop
+notifications. It also comes with a fedmsg-notify-config tool to enable/disable
+the service.
+
+%prep
+%setup -q
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install -O1 --skip-build \
+    --install-data=%{_datadir} --root %{buildroot}
+
+mkdir -p %{buildroot}%{_datadir}/dbus-1/services/
+install -m 0644 conf/%{busname}.service \
+    %{buildroot}%{_datadir}/dbus-1/services/%{busname}.service
+mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
+install -m 0644 conf/%{busname}.conf \
+    %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{busname}.conf
+
+desktop-file-install \
+    --dir=%{buildroot}%{_datadir}/applications \
+    conf/%{name}-config.desktop
+
+
+%files
+%doc README.rst LICENSE
+%{_bindir}/%{name}-daemon
+%{_bindir}/%{name}-config
+%{python_sitelib}/%{modname}/
+%{python_sitelib}/%{modname}-%{version}-py%{pyver}.egg-info/
+%{_datadir}/dbus-1/services/%{busname}.service
+%{_datadir}/applications/%{name}-config.desktop
+%{_sysconfdir}/dbus-1/system.d/%{busname}.conf
+
+
+%changelog
+* Thu Oct 04 2012 Luke Macken <lmacken at redhat.com> - 0.2.0-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..cc70764 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+73094a85b368746295ef7ff2f8034563  fedmsg-notify-0.2.0.tar.gz


More information about the scm-commits mailing list