Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
python-notify
python-notify.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-notify.spec of Package python-notify
# # spec file for package python-notify # # 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 %define pypkgname pynotify Name: python-notify Version: 0.1.1 Release: 18 Summary: Python bindings for libnotify Group: Development/Languages/Python License: LGPL-2.1+ Url: http://www.galago-project.org/specs/notification Source: http://www.galago-project.org/files/releases/source/notify-python/notify-python-%{version}.tar.bz2 Patch0: notify-python-0.1.1-fix-GTK-symbols.patch # PATCH-FIX-UPSTREAM libnotify-0.7.patch fcrozat@novell.com -- fix build with libnotify >= 0.7 (from Fedora) Patch1: libnotify07.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes %if 0%{?suse_version} <= 1130 BuildRequires: gtk2-devel %endif BuildRequires: libnotify-devel BuildRequires: python-devel BuildRequires: python-gtk-devel %py_requires %description Python bindings for libnotify. %package devel License: LGPL-2.1+ Group: Development/Libraries/Python Summary: Python bindings for libnotify Requires: %{name} = %{version} %description devel Python bindings for libnotify. %prep %setup -q -n "notify-python-%{version}" %patch0 -p1 -b .fix-GTK-symbols %patch1 -p1 -b .notify07 %build %if 0%{?suse_version} <= 1130 export CFLAGS="%{optflags} `pkg-config --cflags --libs gtk+-2.0`" %endif %configure # We touch src/pynotify.override in build because upstream did not rebuild # pynotify.c from the input definitions. This forces pynotify.c to be # regenerated. This is needed to have Notification.attach_to_status_icon touch src/pynotify.override %__make %{?jobs:-j%{jobs}} %install %makeinstall %fdupes $RPM_BUILD_ROOT/%{py_sitedir} %clean %__rm -rf "%{buildroot}" %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS %{py_sitedir}/gtk-2.0/%{pypkgname}/ %files devel %defattr(-,root,root,-) # we explicitly list the directories here to be sure we don't include something # that should live in the main package %dir %{_datadir}/pygtk %dir %{_datadir}/pygtk/2.0 %{_datadir}/pygtk/2.0/defs/ %{_libdir}/pkgconfig/notify-python.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor