File xwrited.spec of Package xwrited
#
# spec file for package xwrited
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: xwrited
Version: 2
Release: 0
License: MIT
Summary: Display Write and Wall Messages as Desktop Notifications
Url: https://code.guido-berhoerster.org/projects/xwrited/
Group: System/Daemons
Source: https://code.guido-berhoerster.org/projects/xwrited/downloads/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libnotify)
BuildRequires: utempter-devel
BuildRequires: intltool
BuildRequires: docbook_5
BuildRequires: docbook5-xsl-stylesheets
BuildRequires: update-desktop-files
BuildRequires: libxslt-tools
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The xwrited utility displays write(1) and wall(1) messages as desktop
notifications. A notification daemon compliant to the freedesktop.org Desktop
Notification Specification draft needs to be running in order to display the
notifications.
%lang_package
%prep
%setup -q
%build
make %{?_smp_mflags} \
CFLAGS='%{optflags}'
%install
%make_install prefix=/usr
%find_lang %{name}
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc README
%{_sysconfdir}/xdg/autostart/xwrited.desktop
%{_bindir}/xwrited
%{_mandir}/man1/xwrited.1%{ext_man}
%files lang -f %{name}.lang
%changelog