14644
|
1 |
|
9397
|
2 |
# spec file for package pyorbit
|
|
3 |
#
|
14644
|
4 |
# Copyright 2008 Sun Microsystems, Inc.
|
9397
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
# Owner: laca
|
|
9 |
#
|
16429
|
10 |
|
|
11 |
%define OSR gnome.org:0
|
|
12 |
|
9397
|
13 |
Name: pyorbit
|
|
14 |
License: LGPL
|
|
15 |
Group: System/Library
|
13823
|
16 |
Version: 2.24.0
|
9397
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
|
19 |
Vendor: Sun Microsystems, Inc.
|
|
20 |
Summary: Python bindings for ORBit2
|
13830
|
21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/pyorbit/2.24/pyorbit-%{version}.tar.bz2
|
9397
|
22 |
URL: http://www.gnome.org
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Docdir: %{_defaultdocdir}/doc
|
|
25 |
Autoreqprov: on
|
|
26 |
|
|
27 |
%define ORBit2_version 2.10.1
|
14644
|
28 |
%{?!python_version:%define python_version 2.4}
|
9397
|
29 |
|
|
30 |
Requires: ORBit2 >= %{ORBit2_version}
|
|
31 |
Requires: python >= %{python_version}
|
|
32 |
BuildRequires: ORBit2-devel >= %{ORBit2_version}
|
|
33 |
|
|
34 |
%description
|
|
35 |
PyORBit is a Python language binding for the ORBit2 CORBA implementation.
|
|
36 |
It aims to take advantage of new features found in ORBit2 to make language
|
|
37 |
bindings more efficient.
|
|
38 |
|
|
39 |
%package devel
|
|
40 |
Summary: Files needed to build applications using the Python bindings for ORBit2
|
|
41 |
Group: Development/Languages
|
|
42 |
Requires: %{name} = %{version}
|
|
43 |
|
|
44 |
%description devel
|
|
45 |
This package contains files required to build Python applications that need
|
|
46 |
to interoperate with pyorbit.
|
|
47 |
|
|
48 |
%prep
|
|
49 |
%setup -q -n pyorbit-%{version}
|
|
50 |
|
|
51 |
%build
|
|
52 |
CFLAGS="$RPM_OPT_FLAGS"
|
|
53 |
./configure --prefix=%{_prefix} \
|
|
54 |
--sysconfdir=%{_sysconfdir}
|
|
55 |
make \
|
|
56 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
57 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
58 |
|
|
59 |
%install
|
|
60 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
|
61 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
62 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
63 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
64 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
65 |
|
|
66 |
%clean
|
|
67 |
rm -rf $RPM_BUILD_ROOT
|
|
68 |
|
|
69 |
%post
|
|
70 |
|
|
71 |
%postun
|
|
72 |
|
|
73 |
%files
|
|
74 |
%defattr(-,root,root)
|
|
75 |
%{_libdir}/python?.?/vendor-packages/CORBA.py*
|
|
76 |
%{_libdir}/python?.?/vendor-packages/PortableServer.py*
|
|
77 |
%{_libdir}/python?.?/vendor-packages/ORBit.so
|
|
78 |
|
|
79 |
%doc AUTHORS NEWS README ChangeLog
|
|
80 |
|
|
81 |
%files devel
|
|
82 |
%defattr(-, root, root)
|
|
83 |
%dir %{_includedir}/pyorbit-2
|
|
84 |
%{_includedir}/pyorbit-2/pyorbit.h
|
|
85 |
%{_libdir}/pkgconfig/*
|
|
86 |
|
|
87 |
%changelog
|
14644
|
88 |
* Mon Nov 24 2008 - [email protected]
|
|
89 |
- use %{pythonver} macro to select which version of Python to build with
|
13823
|
90 |
* Mon Sep 29 2008 - [email protected]
|
|
91 |
- Bump to 2.24.0.
|
9949
|
92 |
* Mon May 28 2007 - [email protected]
|
|
93 |
- Bump to 2.14.3.
|
9439
|
94 |
* Mon Mar 05 2007 - [email protected]
|
|
95 |
- Bump to 2.14.2.
|
9397
|
96 |
* Fri Jul 21 2006 - [email protected]
|
|
97 |
- Bump to 2.14.1.
|
|
98 |
* Mon Mar 13 2006 - [email protected]
|
|
99 |
- Bump to 2.14.0.
|
|
100 |
* Tue Dec 20 2005 - [email protected]
|
|
101 |
- Bump to 2.13.1
|
|
102 |
* Thu Oct 27 2005 - [email protected]
|
|
103 |
- move from site-packages to vendor-packages
|
|
104 |
* Fri Aug 12 2005 - [email protected]
|
|
105 |
- Initial Sun release
|