orca.spec
author dcarbery
Mon, 23 Oct 2006 12:46:17 +0000
branchgnome-2-14
changeset 19195 352a4716f1f3
parent 7625 edfa83a1fde8
child 7743 b9bc3fb4d8b2
permissions -rw-r--r--
2006-10-23 Damien Carbery <[email protected]> * docs/ssa/*: Remove these, as they're now up on the JDS project pages under 'Tasks/Single Sys Admin'.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     1
#
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     2
# spec file for package orca
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     3
#
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     6
# package are under the same license as the package itself.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     7
#
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     8
Name:           orca
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     9
License:        LGPL
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    10
Group:          System/Library
7625
edfa83a1fde8 Bump Orca to 0.2.6
wwalker
parents: 7448
diff changeset
    11
Version:        0.2.6
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    12
Release:        1
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    13
Distribution:   Java Desktop System
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    14
Vendor:	        Sun Microsystems, Inc.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    15
Summary:        Orca Screen Reader/Magnifier
6830
a0a04b9021a4 2006-02-23 Damien Carbery <[email protected]>
dc144907
parents: 6825
diff changeset
    16
Source:         http://ftp.gnome.org/pub/GNOME/sources/orca/0.2/orca-%{version}.tar.bz2
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    17
URL:            http://www.gnome.org
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    18
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    19
Docdir:         %{_defaultdocdir}/doc
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    20
Autoreqprov:    on
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    21
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5884
diff changeset
    22
%define python_version 2.4
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    23
%define pyorbit_version 2.0.1
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    24
%define pygtk2_version 2.6.2
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    25
%define gnome_python_version 2.6.2
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    26
%define brltty_version 3.6.1
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    27
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    28
Requires: pygtk2 >= %{pygtk2_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    29
Requires: pyorbit >= %{pyorbit_version}
5586
8f112d717719 s/gnome_python/gnome-python/
laca
parents: 5580
diff changeset
    30
Requires: gnome-python >= %{gnome_python_version}
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    31
Requires: brltty >= %{brltty_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    32
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    33
BuildRequires: pygtk2-devel >= %{pygtk2_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    34
BuildRequires: pyorbit-devel >= %{pyorbit_version}
5586
8f112d717719 s/gnome_python/gnome-python/
laca
parents: 5580
diff changeset
    35
BuildRequires: gnome-python-devel >= %{gnome_python_version}
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    36
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    37
%description
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    38
Orca a scriptable screen reader/magnifier that is under development.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    39
As such it is highly unstable and undergoes frequent changes.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    40
To read more about Orca, please refer to the "Programmer's Guide" in
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    41
the docs/programmers-guide directory.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    42
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    43
%prep
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    44
%setup -q -n orca-%{version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    45
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    46
%build
5884
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    47
libtoolize --force
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    48
glib-gettextize --copy --force
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    49
aclocal $ACLOCAL_FLAGS -I .
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    50
autoconf
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    51
autoheader
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    52
automake -a -c -f
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    53
CFLAGS="$RPM_OPT_FLAGS"                         \
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    54
./configure     --prefix=%{_prefix}             \
5884
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    55
                --libdir=%{_libdir}             \
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    56
                --bindir=%{_bindir}             \
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
    57
                --datadir=%{_datadir}           \
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    58
                --sysconfdir=%{_sysconfdir}
6749
e58132c906b2 2006-02-14 Damien Carbery <[email protected]>
dc144907
parents: 6312
diff changeset
    59
e58132c906b2 2006-02-14 Damien Carbery <[email protected]>
dc144907
parents: 6312
diff changeset
    60
# FIXME: hack: stop the build from looping
e58132c906b2 2006-02-14 Damien Carbery <[email protected]>
dc144907
parents: 6312
diff changeset
    61
touch po/stamp-it
e58132c906b2 2006-02-14 Damien Carbery <[email protected]>
dc144907
parents: 6312
diff changeset
    62
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5884
diff changeset
    63
make \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5884
diff changeset
    64
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5884
diff changeset
    65
    pythondir=%{_libdir}/python%{python_version}/vendor-packages
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    66
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    67
%install
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    68
rm -rf $RPM_BUILD_ROOT
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5884
diff changeset
    69
make DESTDIR=$RPM_BUILD_ROOT install \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5884
diff changeset
    70
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5884
diff changeset
    71
    pythondir=%{_libdir}/python%{python_version}/vendor-packages
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    72
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    73
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    74
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    75
%clean
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    76
rm -rf $RPM_BUILD_ROOT
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    77
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    78
%post
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    79
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    80
%postun
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    81
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    82
%files
6923
45fbffcf5f44 2006-03-13 Laszlo Peter <[email protected]>
laca
parents: 6830
diff changeset
    83
%defattr(-, root, root)
45fbffcf5f44 2006-03-13 Laszlo Peter <[email protected]>
laca
parents: 6830
diff changeset
    84
%{_libdir}/python?.?/vendor-packages/orca
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    85
%{_bindir}/orca
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    86
%{_bindir}/orca-setup
5608
85dd2599668a add %{_datadir}/locale to %files
laca
parents: 5607
diff changeset
    87
%{_datadir}/locale
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    88
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    89
%doc AUTHORS NEWS README ChangeLog
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    90
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    91
%changelog
7625
edfa83a1fde8 Bump Orca to 0.2.6
wwalker
parents: 7448
diff changeset
    92
* Wed Jul 12 2006 - [email protected]
edfa83a1fde8 Bump Orca to 0.2.6
wwalker
parents: 7448
diff changeset
    93
- Update to 0.2.6
7448
16a870a0050d Bump Orca to 0.2.5
wwalker
parents: 7195
diff changeset
    94
* Wed Jun 14 2006 - [email protected]
16a870a0050d Bump Orca to 0.2.5
wwalker
parents: 7195
diff changeset
    95
- Update to 0.2.5
7195
5b8f665d11f7 2006-05-02 Damien Carbery <[email protected]>
dc144907
parents: 6960
diff changeset
    96
* Tue May 02 2006 - [email protected]
5b8f665d11f7 2006-05-02 Damien Carbery <[email protected]>
dc144907
parents: 6960
diff changeset
    97
- Remove unneeded intltoolize call.
6960
c624067a4abc 2006-03-18 Damien Carbery <[email protected]>
dc144907
parents: 6923
diff changeset
    98
* Sat Mar 18 2006 - [email protected]
c624067a4abc 2006-03-18 Damien Carbery <[email protected]>
dc144907
parents: 6923
diff changeset
    99
- Bump to 0.2.2.
6830
a0a04b9021a4 2006-02-23 Damien Carbery <[email protected]>
dc144907
parents: 6825
diff changeset
   100
* Thu Feb 23 2006 - [email protected]
a0a04b9021a4 2006-02-23 Damien Carbery <[email protected]>
dc144907
parents: 6825
diff changeset
   101
- Use bzip source tarball. It's smaller.
6825
390de7c7415b Bump to orca-0.2.1.
wwalker
parents: 6749
diff changeset
   102
* Thu Feb 23 2006 - [email protected]
390de7c7415b Bump to orca-0.2.1.
wwalker
parents: 6749
diff changeset
   103
- Update to orca-0.2.1
6749
e58132c906b2 2006-02-14 Damien Carbery <[email protected]>
dc144907
parents: 6312
diff changeset
   104
* Tue Feb 14 2006 - [email protected]
e58132c906b2 2006-02-14 Damien Carbery <[email protected]>
dc144907
parents: 6312
diff changeset
   105
- Add hack to fix infinite loop problem in po/Makefile.
6312
d44814f70c67 Upgrade to orca-0.2.0.
wwalker
parents: 6200
diff changeset
   106
* Wed Nov 30 2005 - [email protected]
d44814f70c67 Upgrade to orca-0.2.0.
wwalker
parents: 6200
diff changeset
   107
- Update to orca-0.2.0
6200
19ff8721b8f2 add %changelog entries (:
laca
parents: 6193
diff changeset
   108
* Thu Oct 27 2005 - [email protected]
19ff8721b8f2 add %changelog entries (:
laca
parents: 6193
diff changeset
   109
- move from site-packages to vendor-packages
5884
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
   110
* Thu Sep 15 2005 - [email protected]
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
   111
- autotoolize
31178e137f09 2005-09-15 Laszlo Peter <[email protected]>
laca
parents: 5608
diff changeset
   112
- add patch bindir.diff
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
   113
* Mon Aug 15 2005 - [email protected]
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
   114
- Initial Sun release