From 91da1fd2af0e40de5b7951d18ffe651308acba15 Mon Sep 17 00:00:00 2001 From: TizenOpenSource Date: Fri, 8 Dec 2023 13:26:26 +0900 Subject: [PATCH] Bump to 3.46.0 Signed-off-by: TizenOpenSource --- packaging/pygobject-rpmlintrc | 3 ++ packaging/pygobject.changes | 2 ++ packaging/pygobject.manifest | 5 ++++ packaging/pygobject.spec | 69 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 packaging/pygobject-rpmlintrc create mode 100644 packaging/pygobject.changes create mode 100644 packaging/pygobject.manifest create mode 100644 packaging/pygobject.spec diff --git a/packaging/pygobject-rpmlintrc b/packaging/pygobject-rpmlintrc new file mode 100644 index 0000000..5e73e43 --- /dev/null +++ b/packaging/pygobject-rpmlintrc @@ -0,0 +1,3 @@ +# This line is mandatory to access the configuration functions +from Config import * +addFilter("pygobject2.* devel-file-in-non-devel-package") diff --git a/packaging/pygobject.changes b/packaging/pygobject.changes new file mode 100644 index 0000000..bfd1a0f --- /dev/null +++ b/packaging/pygobject.changes @@ -0,0 +1,2 @@ +* Wed Jul 25th 2012 Prajwal Mohan +- renaming pygobject2.spec to pygobject.spec. renamging pygobject2-rpmlintre to pygoject-rpmlintrc diff --git a/packaging/pygobject.manifest b/packaging/pygobject.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/pygobject.manifest @@ -0,0 +1,5 @@ + + + + + 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 -- 2.7.4