18110
|
1 |
#
|
|
2 |
# spec file for package pigment-python
|
|
3 |
#
|
|
4 |
# includes module(s): pigment-python
|
|
5 |
#
|
19973
|
6 |
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
|
18110
|
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 owner yippi
|
|
11 |
#
|
|
12 |
# bugdb: https://code.fluendo.com/pigment/trac/
|
|
13 |
#
|
|
14 |
%{?!pythonver:%define pythonver 2.6}
|
|
15 |
%define OSR 9492:0.3.6
|
|
16 |
|
|
17 |
Name: pigment-python
|
|
18 |
Summary: Python interfaces for pigment
|
|
19 |
Vendor: fluendo.com
|
|
20 |
Version: 0.3.12
|
|
21 |
License: LGPL v2.1
|
|
22 |
URL: https://core.fluendo.com/pigment/trac
|
|
23 |
Source0: http://elisa.fluendo.com/static/download/pigment/pigment-python-%{version}.tar.bz2
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
|
|
26 |
%description
|
|
27 |
Python interfaces for pigment. Pigment is a library designed to easily
|
|
28 |
build user interfaces with embedded multimedia. Its design allows to use
|
|
29 |
it on several platforms, thanks to a plugin system allowing to choose
|
|
30 |
the underlying graphical API. Pigment is the rendering engine of Elisa,
|
|
31 |
the Fluendo Media Center project.
|
|
32 |
|
|
33 |
%prep
|
|
34 |
%setup -q -n pigment-python-%version
|
|
35 |
|
|
36 |
%build
|
|
37 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
38 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
39 |
CPUS=1
|
|
40 |
fi
|
|
41 |
|
|
42 |
export PYTHON=/usr/bin/python%{pythonver}
|
|
43 |
libtoolize --copy --force
|
|
44 |
aclocal $ACLOCAL_FLAGS
|
|
45 |
autoheader
|
|
46 |
automake -a -c -f
|
|
47 |
autoconf
|
|
48 |
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
|
|
49 |
--libdir=%{_libdir} \
|
|
50 |
--libexecdir=%{_libexecdir} \
|
|
51 |
--sysconfdir=%{_sysconfdir}
|
|
52 |
make
|
|
53 |
|
|
54 |
%install
|
|
55 |
rm -rf $RPM_BUILD_ROOT
|
|
56 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
57 |
|
|
58 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
|
|
59 |
|
|
60 |
# move to vendor-packages
|
|
61 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
|
62 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
|
|
63 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
|
|
64 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
|
|
65 |
|
|
66 |
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{pythonver}/vendor-packages/*.la
|
|
67 |
|
|
68 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
69 |
|
|
70 |
%clean
|
|
71 |
rm -rf $RPM_BUILD_ROOT
|
|
72 |
|
|
73 |
%files
|
|
74 |
%doc README AUTHORS
|
|
75 |
%doc(bzip2) NEWS COPYING ChangeLog
|
|
76 |
%defattr(-,root,bin)
|
|
77 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
78 |
%{_libdir}/python%{pythonver}/vendor-packages/_pgmgtkmodule.so
|
|
79 |
%{_libdir}/python%{pythonver}/vendor-packages/_pgmmodule.so
|
|
80 |
%{_libdir}/python%{pythonver}/vendor-packages/_pgmimagingmodule.so
|
|
81 |
%{_libdir}/python%{pythonver}/vendor-packages/pgm
|
|
82 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
83 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
84 |
%{_datadir}/pigment-python
|
|
85 |
|
|
86 |
%changelog
|
|
87 |
* Tue Oct 13 2009 - Brian Cameron <[email protected]>
|
|
88 |
- Do not install .pyo files.
|
|
89 |
* Tue Nov 11 2008 Jerry Tan <[email protected]>
|
|
90 |
- Bump to 0.3.9
|
|
91 |
* Tue Sep 30 2008 Brian Cameron <[email protected]>
|
|
92 |
- Bump to 0.3.8.
|
|
93 |
* Wed Sep 17 2008 Brian Cameron <[email protected]>
|
|
94 |
- Bump to 0.3.7.
|
|
95 |
* Thu Sep 11 2008 Jerry Yu <[email protected]>
|
|
96 |
- Bump to 0.3.6.
|
|
97 |
* Thu Jul 31 2008 Brian Cameron <[email protected]>
|
|
98 |
- Bump to 0.3.5.
|
|
99 |
* Wed Jul 23 2008 Brian Cameron <[email protected]>
|
|
100 |
- Bump to 0.3.4.
|
|
101 |
* Wed Mar 19 2008 Brian Cameron <[email protected]>
|
|
102 |
- Bump to 0.3.3
|
|
103 |
* Wed Feb 06 2008 Brian Cameron <[email protected]>
|
|
104 |
- Bump to 0.3.2.
|
|
105 |
* Wed Jan 16 2008 Brian Cameron <[email protected]>
|
|
106 |
- Created.
|