summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTizenOpenSource <tizenopensrc@samsung.com>2023-12-08 13:26:26 +0900
committerTizenOpenSource <tizenopensrc@samsung.com>2023-12-08 13:26:26 +0900
commit91da1fd2af0e40de5b7951d18ffe651308acba15 (patch)
treefbeb2847bd657a5a8e666a9485419fac3b3df4d6
parent454aa52f950f2348756dfffc9c26fb74d4aa3bef (diff)
downloadpygobject2-sandbox/pygobject2_3.46.0.tar.gz
pygobject2-sandbox/pygobject2_3.46.0.tar.bz2
pygobject2-sandbox/pygobject2_3.46.0.zip
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
-rw-r--r--packaging/pygobject-rpmlintrc3
-rw-r--r--packaging/pygobject.changes2
-rw-r--r--packaging/pygobject.manifest5
-rw-r--r--packaging/pygobject.spec69
4 files changed, 79 insertions, 0 deletions
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 <prajwal.karur.mohan@intel.com>
+- 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 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
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