summaryrefslogtreecommitdiff
path: root/packaging/pygobject.spec
blob: 7150dc467c565a1375964fb4e36f29e9808f1b60 (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
Name:              pygobject
Version:           3.46.0
Release:           1.1
License:           LGPLv2+
Group:             Development/Languages
Summary:           Python bindings for GObject
URL:               http://www.pygtk.org/
Source0:           %{name}-%{version}.tar.bz2
Source101:         %{name}-rpmlintrc
Source1001:        pygobject.manifest


### Build Dependencies ###

BuildRequires:     automake
BuildRequires:     glib2-devel
BuildRequires:     python3-devel
BuildRequires:     gobject-introspection-devel
BuildRequires:     python3-cairo-devel
BuildRequires:     python3-setuptools

%description
The %{name} package provides a convenient wrapper for the GObject library
for use in Python programs.

%package codegen
Summary: The code generation program for PyGObject
Group: Development/Languages

%description codegen
The package contains the C code generation program for PyGObject.

%package devel
Summary: Development files for building add-on libraries
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
Requires: %{name}-codegen = %{version}-%{release}
Requires: %{name}-doc = %{version}-%{release}
Requires: glib2-devel
Requires: pkgconfig

%description devel
This package contains files required to build wrappers for %{name}-based
libraries such as pygtk2.

%prep
%setup -q
cp %{SOURCE1001} .

%build
%{_bindir}/python3 setup.py build

%install
%{_bindir}/python3 setup.py install --prefix=%{_prefix} --install-lib=%{python3_sitelib} --root=%{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%{python3_sitelib}/pygtkcompat/*
%{python3_sitelib}/gi/*
%{python3_sitelib}/PyGObject-%{version}-py*.egg-info

%files devel
%manifest %{name}.manifest
%{_libdir}/pkgconfig/pygobject-3.0.pc
%{_includedir}/pygobject-3.0/pygobject.h