Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWpigment-python
      3 #
      4 # includes module(s): pigment-python
      5 #
      6 # Copyright 2009 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 %define ownerjerrytan
     11 #
     12 # bugdb: https://code.fluendo.com/pigment/trac/
     13 #
     14 %include Solaris.inc
     15 %define pythonver 2.6
     16 
     17 %use pypigment= libpigment-python.spec
     18 
     19 Name:            SUNWlibpigment-python26
     20 Vendor:          Sun Microsystems, Inc.
     21 Version:         %{pypigment.version}
     22 License:         LGPL v2.1
     23 SUNW_BaseDir:    %{_basedir}
     24 SUNW_Copyright:  SUNWlibpigment-python.copyright
     25 
     26 %ifnarch sparc
     27 # disable on SPARC till X team release OpenGL on SPARC on opensolaris
     28 
     29 BuildRoot:       %{_tmppath}/%{name}-%{version}-build
     30 BuildRequires:   SUNWPython26-devel
     31 BuildRequires:   SUNWgnome-common-devel
     32 BuildRequires:   SUNWgnome-media-devel
     33 BuildRequires:   SUNWgnome-python-libs-devel
     34 BuildRequires:   SUNWgst-python
     35 BuildRequires:   SUNWlibpigment-devel
     36 BuildRequires:   SUNWpython26-setuptools
     37 Requires:        SUNWgnome-media
     38 Requires:        SUNWgnome-python-libs
     39 Requires:        SUNWlibpigment
     40 Requires:        SUNWgst-python
     41 
     42 %description
     43 pigment python binding for python %{pythonver}
     44 
     45 %include default-depend.inc
     46 
     47 %prep
     48 
     49 rm -rf %name-%version
     50 mkdir -p %name-%version
     51 %pypigment.prep -d %name-%version
     52 
     53 %build
     54 %pypigment.build -d %name-%version
     55 
     56 %install
     57 rm -rf $RPM_BUILD_ROOT
     58 %pypigment.install -d %name-%version
     59 rm -rf $RPM_BUILD_ROOT/usr/share/pigment-python
     60 
     61 
     62 %clean
     63 rm -rf $RPM_BUILD_ROOT
     64 
     65 %files
     66 %doc -d %{pypigment.name}-%{pypigment.version} README AUTHORS
     67 %doc(bzip2) -d %{pypigment.name}-%{pypigment.version} NEWS COPYING ChangeLog
     68 %defattr(-,root,bin)
     69 %dir %attr (0755, root, bin) %{_libdir}
     70 %{_libdir}/python%{pythonver}/vendor-packages/_pgmgtkmodule.so
     71 %{_libdir}/python%{pythonver}/vendor-packages/_pgmmodule.so
     72 %{_libdir}/python%{pythonver}/vendor-packages/_pgmimagingmodule.so
     73 %{_libdir}/python%{pythonver}/vendor-packages/pgm
     74 %dir %attr (0755, root, sys) %{_datadir}
     75 %dir %attr (0755, root, other) %{_datadir}/doc
     76 #%{_datadir}/pigment-python
     77 
     78 # endif for "ifnarch sparc"
     79 %endif
     80 
     81 
     82 %changelog
     83 * Thu Feb 12 2009 Brian Cameron  <brian.cameron@sun.com>
     84 - created 2.6 version based on SUNWlibpigment-python.spec.
     85 * Tus Nov 11 2008 Jerry Tan <jerry.tan@sun.com>
     86 - Bump to 0.3.9
     87 * Tue Sep 30 2008 Brian Cameron  <brian.cameron@sun.com>
     88 - Bump to 0.3.8.
     89 * Wed Sep 17 2008 Brian Cameron  <brian.cameron@sun.com>
     90 - Bump to 0.3.7.
     91 * Thu Sep 11 2008 Jerry Yu <jijun.yu@sun.com>
     92 - Bump to 0.3.6.
     93 * Thu Jul 31 2008 Brian Cameron  <brian.cameron@sun.com>
     94 - Bump to 0.3.5.
     95 * Wed Jul 23 2008 Brian Cameron  <brian.cameron@sun.com>
     96 - Bump to 0.3.4.
     97 * Wed Mar 19 2008 Brian Cameron  <brian.cameron@sun.com>
     98 - Bump to 0.3.3
     99 * Wed Feb 06 2008 Brian Cameron  <brian.cameron@sun.com>
    100 - Bump to 0.3.2.
    101 * Wed Jan 16 2008 Brian Cameron  <brian.cameron@sun.com>
    102 - Created.
    103