SUNWIPython.spec
author liyuan
Sun, 02 Sep 2007 08:02:51 +0000
changeset 10419 ece4471e32c2
child 10422 5ac343fe2135
permissions -rw-r--r--
2007-09-02 Li Yuan <[email protected]> * SUNWgnome-a11y-poke.spec: replace at-poke with accerciser. * base-specs/accerciser.spec: new spec. * SUNWIPython.spec: new module required by accerciser. * base-specs/ipython.spec: new spec. * manpages/Makefile: manpage support for accerciser and ipython. * manpages/man1/accerciser.1: * manpages/man1/ipython.1: * manpages/man1/pycolor.1:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     1
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     2
# spec file for package SUNWIPython
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     3
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     4
# includes module(s): ipython
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     5
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     6
# Copyright (c) 2005 Sun Microsystems, Inc.
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     8
# package are under the same license as the package itself.
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     9
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    10
# Owner: liyuan
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    11
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    12
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    13
%include Solaris.inc
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    14
%use ipython = ipython.spec
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    15
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    16
Summary: Enhanced interactive Python shell
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    17
Name: SUNWIPython
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    18
Version: 0.8.1
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    19
Source: %{name}-manpages-0.1.tar.gz
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    20
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    21
SUNW_BaseDir:      %{_basedir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    22
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    23
%include default-depend.inc
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    24
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    25
Requires: SUNWPython
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    26
BuildRequires: SUNWPython-devel
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    27
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    28
%prep
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    29
rm -rf %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    30
mkdir %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    31
%ipython.prep -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    32
cd %{_builddir}/%name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    33
gzcat %SOURCE0 | tar xf -
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    34
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    35
%build
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    36
export PKG_CONFIG_PATH=%{_pkg_config_path}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    37
export MSGFMT="/usr/bin/msgfmt"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    38
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    39
export PYTHON="/usr/bin/python"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    40
export CPPFLAGS="-I/usr/include/python2.4"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    41
export CFLAGS="%optflags -I%{_includedir} -I/usr/include/python2.4"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    42
export RPM_OPT_FLAGS="$CFLAGS"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    43
export LDFLAGS="%_ldflags"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    44
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    45
%ipython.build -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    46
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    47
%install
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    48
%ipython.install -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    49
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    50
# install man page
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    51
rm -rf $RPM_BUILD_ROOT%{_mandir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    52
cd %{_builddir}/%name-%version/sun-manpages
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    53
make install DESTDIR=$RPM_BUILD_ROOT
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    54
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    55
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    56
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    57
%clean
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    58
rm -rf $RPM_BUILD_ROOT
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    59
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    60
%files
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    61
%defattr(-,root,bin)
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    62
%dir %attr (0755, root, bin) %{_bindir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    63
%{_bindir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    64
%dir %attr (0755, root, bin) %{_libdir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    65
%{_libdir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    66
%dir %attr(0755, root, sys) %{_datadir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    67
%dir %attr(0755, root, bin) %{_mandir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    68
%dir %attr(0755, root, bin) %{_mandir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    69
%{_mandir}/*/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    70
%dir %attr (0755, root, other) %{_docdir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    71
%{_docdir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    72
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    73
%changelog
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    74
* Sun Sep 02 2007 - [email protected]
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    75
- Initial version.