1 # 2 # spec file for package SUNWpython-notify 3 # 4 # Copyright 2009 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 %define owner jedy 9 # includes module(s): notify-python 10 # 11 12 %include Solaris.inc 13 14 %use notify_python = notify-python.spec 15 %define pythonver 2.4 16 17 Name: SUNWpython-notify 18 Summary: Python bindings for libnotify 19 URL: http://www.galago-project.org/ 20 Version: 0.1.1 21 License: LGPL v2.1 22 SUNW_BaseDir: %{_basedir} 23 SUNW_Copyright: %{name}.copyright 24 BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 %include default-depend.inc 26 Requires: SUNWgtk2 27 Requires: SUNWPython 28 Requires: SUNWgnome-panel 29 Requires: SUNWgnome-python-libs 30 BuildRequires: SUNWgtk2-devel 31 BuildRequires: SUNWPython-devel 32 BuildRequires: SUNWgnome-panel-devel 33 BuildRequires: SUNWgnome-python-libs-devel 34 BuildRequires: SUNWpython-setuptools 35 36 %package devel 37 Summary: %{summary} - development files 38 SUNW_BaseDir: %{_basedir} 39 %include default-depend.inc 40 Requires: %{name} 41 # the 2.6 devel package is required because it contains the headers 42 # (they are not duplicated in this package, since they would be identical) 43 Requires: SUNWpython26-notify-devel 44 45 %prep 46 rm -rf %name-%version 47 mkdir -p %name-%version 48 %notify_python.prep -d %name-%version 49 50 %build 51 %notify_python.build -d %name-%version 52 53 %install 54 rm -rf $RPM_BUILD_ROOT 55 %notify_python.install -d %name-%version 56 57 rm -rf $RPM_BUILD_ROOT/%{_datadir}/pygtk 58 59 # move to subdir to avoid conflict with other python packages. 60 mv $RPM_BUILD_ROOT%{_libdir}/pkgconfig \ 61 $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/ 62 63 %clean 64 rm -rf $RPM_BUILD_ROOT 65 66 %files 67 %doc -d %{notify_python.name}-%{notify_python.version} AUTHORS 68 %doc(bzip2) -d %{notify_python.name}-%{notify_python.version} ChangeLog COPYING 69 %dir %attr (0755, root, other) %{_datadir}/doc 70 %defattr (-, root, bin) 71 %dir %attr (0755, root, bin) %{_libdir} 72 %{_libdir}/python%{pythonver}/vendor-packages/gtk-2.0/pynotify 73 %dir %attr (0755, root, sys) %{_datadir} 74 75 %files devel 76 %defattr (-, root, bin) 77 %dir %attr (0755, root, bin) %{_libdir} 78 %dir %attr (0755, root, other) %{_libdir}/python2.4/pkgconfig 79 %{_libdir}/python%{pythonver}/pkgconfig/* 80 81 %changelog 82 * Thu Feb 12 2009 - brian.cameron@sun.com 83 - Now use python-notify.spec file. 84 * Wed Onv 05 2008 - jedy.wang@sun.com 85 - Update license. 86 * Tue Sep 16 2008 - jedy.wang@sun.com 87 - Add copyright files. 88 * Thu Jul 17 2008 - dave.lin@sun.com 89 - Add default file attribute for devel pkg to fix the incorrect attribute issue 90 * Mon Jun 30 2008 - jedy.wang@sun.com 91 - Rename to SUNWpython-notify 92 * Wed Jun 25 2008 - jedy.wang@sun.com 93 - Moved from spec-files-extra 94 * Sat Apr 12 2008 - brian.cameron@sun.com 95 - created 96 97