File: kiwi.spec

package info (click to toggle)
kiwi 1.9.22-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 11,976 kB
  • ctags: 5,619
  • sloc: python: 15,767; ansic: 193; xml: 77; makefile: 53; sh: 18
file content (158 lines) | stat: -rw-r--r-- 4,563 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-kiwi
Version:        1.9.22
Release:        1%{?dist}
Summary:        Framework for Python GUI applications

Name:           python-kiwi
Version:        1.9.21
Release:        1%{?dist}
Summary:        Framework for Python GUI applications

Name:           python-kiwi
Version:        1.9.20
Release:        1%{?dist}
Summary:        Framework for Python GUI applications

Name:           python-kiwi
Version:        1.9.19
Release:        1%{?dist}
Summary:        Framework for Python GUI applications

Name:           python-kiwi
Version:        1.9.18
Release:        1%{?dist}
Summary:        Framework for Python GUI applications

Name:           python-kiwi
Version:        1.9.17
Release:        1%{?dist}
Summary:        Framework for Python GUI applications

Name:           python-kiwi
Version:        1.9.16
Release:        1%{?dist}
Summary:        Framework for Python GUI applications

Group:          Development/Libraries
License:        LGPL
URL:            http://www.async.com.br/projects/kiwi/
Source0:        http://download.gnome.org/sources/kiwi/1.9/kiwi-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel, pygtk2 >= 2.8, gettext
Requires:       pygtk2 >= 2.8


%description
Kiwi consists of a set of classes and wrappers for PyGTK that were 
developed to provide a sort of framework for applications. Fully 
object-oriented, and roughly Smalltalk's MVC, Kiwi provides a simple, 
practical way to build forms, windows and widgets that transparently 
access and display your object data.


%package gazpacho
Group:          Development/Libraries
Summary:        Gazpacho integration for kiwi
Requires:       gazpacho >= 0.6.6, %{name} = %{version}-%{release}

%description gazpacho
This package contains additional files necessary for integration with
Gazpacho glade editor.


%package docs
Group:          Documentation
Summary:        Documentation related to python-kiwi
Requires:       %{name} = %{version}-%{release}

%description docs
This package contains documentation that contains APIs and related materials,
useful for reference when writing software using Kiwi.


%prep
%setup -q -n kiwi-%{version}
sed -i -e 's|share/doc/kiwi|share/doc/%{name}-%{version}|' setup.py


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}

# The install script mis-guesses where gazpacho is installed on 
# non-x86 platforms
if [ "%{python_sitearch}" != "%{python_sitelib}" ]; then
    mv $RPM_BUILD_ROOT%{python_sitearch}/gazpacho \
        $RPM_BUILD_ROOT%{python_sitelib}/
fi

%{find_lang} kiwi


%clean
rm -rf $RPM_BUILD_ROOT


%files -f kiwi.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README NEWS
%{_bindir}/*
%{_datadir}/kiwi
%{python_sitelib}/kiwi

%files gazpacho
%defattr(-,root,root,-)
%doc COPYING
%{python_sitelib}/gazpacho/widgets/*
%{_datadir}/gazpacho/catalogs/*
%{_datadir}/gazpacho/resources/*
%{_datadir}/locale/*/LC_MESSAGES/kiwi.mo

%files docs
%defattr(-,root,root,-)
%doc COPYING doc/* examples


%changelog
* Tue Jul 07 2007 Johan Dahlin <jdahlin@async.com.br> 1.9.16-1
- Upstream 1.9.13

* Tue Feb 04 2007 Johan Dahlin <jdahlin@async.com.br> 1.9.14-1
- Version 1.9.14
- Add .mo files

* Tue Feb 04 2007 Johan Dahlin <jdahlin@async.com.br> 1.9.13-1
- Upstream 1.9.13

* Sun Dec 17 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.9.11-1
- Upstream 1.9.11
- Do not manually provide python-abi
- Move docs into a subpackage
- Do a better job with gazpacho dir ownerships

* Sun Sep 03 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.9.9-1
- Version 1.9.9
- Do not ghost
- No more /etc/kiwi

* Wed Jul 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.9.8-1
- Fedora Extras rebuild.

* Fri Jul 07 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.9.8-0.4
- Build in slimmer build environments.

* Fri Jun 16 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.9.8-0.3
- Fix the incorrect gazpacho location on x86_64 (we are fully noarch)

* Fri May 19 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.9.8-0.2
- Initial packaging