blob: 36e05e78e4ab7f11a12ee9e02921c64fb62109f5 (
plain)
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
|
%define module pygtksourceview
%define pygtk_req 2:2.14.0
#
Summary: GtkSourceView2 bindings for Python
Summary(pl.UTF-8): Wiązania Pythona do biblioteki GtkSourceView2
Name: python-gtksourceview2
Version: 2.10.1
Release: 3
License: LGPL
Group: Libraries/Python
Source0: http://ftp.gnome.org/pub/GNOME/sources/pygtksourceview/2.10/%{module}-%{version}.tar.bz2
# Source0-md5: 2654354d61422fb79d8375fc3a3b5393
BuildRequires: autoconf >= 2.52
BuildRequires: automake >= 1:1.7
BuildRequires: docbook-dtd412-xml
BuildRequires: gtk-doc >= 1.4
BuildRequires: gtksourceview2-devel >= 2.10.0
BuildRequires: libtool
BuildRequires: libxslt-progs
BuildRequires: pkgconfig
BuildRequires: python-devel >= 1:2.3.2
# for style.css
BuildRequires: python-pygobject-apidocs >= 2.16.0
BuildRequires: python-pygobject-devel >= 2.16.0
BuildRequires: python-pygtk-devel >= %{pygtk_req}
BuildRequires: rpm-pythonprov
BuildRequires: sed >= 4.0
Requires: python-pygobject >= 2.16.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define pydefsdir %(pkg-config --variable=defsdir pygtk-2.0)
%description
GtkSourceView2 bindings for Python.
%description -l pl.UTF-8
Wiązania Pythona do biblioteki GtkSourceView2.
%package devel
Summary: GtkSourceView2 bindings for Python - development files
Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do biblioteki GtkSourceView2
Group: Development/Languages/Python
Requires: %{name} = %{version}-%{release}
Requires: gtksourceview2-devel >= 2.10.0
Requires: python-pygtk-devel >= %{pygtk_req}
%description devel
GtkSourceView2 bindings for Python - development files.
%description devel -l pl.UTF-8
Pliki programistyczne wiązań Pythona do biblioteki GtkSourceView2.
%package apidocs
Summary: pygtksourceview2 API documentation
Summary(pl.UTF-8): Dokumentacja API pygtksourceview2
Group: Documentation
Requires: gtk-doc-common
%description apidocs
pygtksourceview2 API documentation.
%description apidocs -l pl.UTF-8
Dokumentacja API pygtksourceview2.
%prep
%setup -q -n %{module}-%{version}
%build
sed -i 's/codegen\.py/codegen.pyc/' configure.ac
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
--enable-gtk-doc \
--with-html-dir=%{_gtkdocdir}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
HTMLdir=%{_gtkdocdir}/pygtksourceview2
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{py_sitedir}/gtksourceview2.so
%files devel
%defattr(644,root,root,755)
%{pydefsdir}/gtksourceview2.defs
%{_pkgconfigdir}/pygtksourceview-2.0.pc
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/pygtksourceview2
|