summaryrefslogtreecommitdiff
path: root/packaging/pygobject.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/pygobject.spec')
-rw-r--r--packaging/pygobject.spec69
1 files changed, 69 insertions, 0 deletions
diff --git a/packaging/pygobject.spec b/packaging/pygobject.spec
new file mode 100644
index 0000000..7150dc4
--- /dev/null
+++ b/packaging/pygobject.spec
@@ -0,0 +1,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