specs/SUNWpython-notify.spec
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 18110 93461edb1490
child 19985 62e3256a8655
child 20169 269b1e9ef64e
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca

#
# spec file for package SUNWpython-notify
#
# Copyright 2009 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner jedy
# includes module(s): notify-python
#

%include Solaris.inc

%use notify_python = notify-python.spec
%define pythonver 2.4

Name:                    SUNWpython-notify
IPS_package_name:        library/python-2/python-notify-24
Meta(info.classification): %{classification_prefix}:Development/Python
Summary:                 Python bindings for libnotify
URL:                     http://www.galago-project.org/
Version:                 0.1.1
License:                 LGPL v2.1
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:          %{name}.copyright
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires:                SUNWgtk2
Requires:                SUNWPython
Requires:                SUNWgnome-panel
Requires:                SUNWgnome-python-libs
BuildRequires:           SUNWgtk2-devel
BuildRequires:           SUNWPython-devel
BuildRequires:           SUNWgnome-panel-devel
BuildRequires:           SUNWgnome-python-libs-devel
BuildRequires:           SUNWpython-setuptools

%package devel
Summary:                 %{summary} - development files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires:                %{name}
# the 2.6 devel package is required because it contains the headers
# (they are not duplicated in this package, since they would be identical)
Requires: SUNWpython26-notify-devel

%prep
rm -rf %name-%version
mkdir -p %name-%version
%notify_python.prep -d %name-%version

%build
%notify_python.build -d %name-%version

%install
rm -rf $RPM_BUILD_ROOT
%notify_python.install -d %name-%version

rm -rf $RPM_BUILD_ROOT/%{_datadir}/pygtk

# move to subdir to avoid conflict with other python packages.
mv $RPM_BUILD_ROOT%{_libdir}/pkgconfig \
   $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc -d %{notify_python.name}-%{notify_python.version} AUTHORS
%doc(bzip2) -d %{notify_python.name}-%{notify_python.version} ChangeLog COPYING
%dir %attr (0755, root, other) %{_datadir}/doc
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/python%{pythonver}/vendor-packages/gtk-2.0/pynotify
%dir %attr (0755, root, sys) %{_datadir}

%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, other) %{_libdir}/python2.4/pkgconfig
%{_libdir}/python%{pythonver}/pkgconfig/*

%changelog
* Thu Feb 12 2009 - [email protected]
- Now use python-notify.spec file.
* Wed Onv 05 2008 - [email protected]
- Update license.
* Tue Sep 16 2008 - [email protected]
- Add copyright files.
* Thu Jul 17 2008 - [email protected]
- Add default file attribute for devel pkg to fix the incorrect attribute issue
* Mon Jun 30 2008 - [email protected]
- Rename to SUNWpython-notify
* Wed Jun 25 2008 - [email protected]
- Moved from spec-files-extra
* Sat Apr 12 2008 - [email protected]
- created