File qnotify.spec of Package qnotify

#
# spec file for package qnotify
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

# norootforbuild


Name:           qnotify
BuildRequires:  libdrm-devel libjpeg-devel qt3-devel update-desktop-files
Summary:        Notifications for multiple workspaces
Version:        0.6
Release:        90
License:        GPL v2 or later
Url:            http://qnotify.homac.de
Group:          System/GUI/Other
Source:         %{name}-%{version}.tar.bz2
Patch1:         qnotify-warn.dif
Patch2:         qnotify-header.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
QNotify is a small and windowmanager independent utility to inform you
of events of any kind. When a specific event occurres, a small window
will pop up showing a message or an image. The window does not take
away the focus of any other application. Additionally, it stays on top
of the Desktop and does not disappear when changing workspaces. The
graphical look can be controlled by a lot of option like colors, geome-
try, time shown, flickering or transparency.

The tool is especially designed for those who are not using KDE, but it
is written with the framework QT from Trolltech and so it usable any
windowmanager.

Since version 0.3, there is a daemon called qnotifyd which stays in
background and keeps track of all shown windows. It manages the
alignment of all qnotify windows and therefor avoids overlapping of
events. For further information about the daemon look at man qnotifyd.



Authors:
--------
    Holger Macht

%package libs
License:        GPL v2 or later
Summary:        Library to be used by other applications for displaying nice popups
Group:          Development/Libraries/C and C++

%description libs
LibQNotify is a library intended for use with other Qt or KDE
applications. It provides an easy to use API for displaying highly
configurable popups and even animations on the desktop. The commandline
application QNotify supports all of its features.



Authors:
--------
    Holger Macht <holger@homac.de>

%prep
%setup -q
%patch1
%patch2 -p1

%build
autoreconf -fiv
%configure --x-libraries=%{_libdir} --with-qtdir=%_libdir/qt3 --with-pic --disable-static
%{__make} %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
sed -e "s,$RPM_BUILD_DIR,/," $RPM_BUILD_ROOT%{_libdir}/libqnotify.la > $RPM_BUILD_ROOT%{_libdir}/libqnotify.la.1
mv $RPM_BUILD_ROOT%{_libdir}/libqnotify.la.1 $RPM_BUILD_ROOT%{_libdir}/libqnotify.la

%clean
rm -rf %{buildroot}

%post libs -p /sbin/ldconfig

%postun libs -p /sbin/ldconfig

%files
%defattr(-,root,root)
/usr/bin/qnotify
%_libdir/qnotify/
%_mandir/man1/qnotify.1.gz

%files libs
%defattr(-,root,root)
%_libdir/lib*.so*
%_libdir/lib*.la
%_includedir/*

%changelog
openSUSE Build Service is sponsored by