diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 02:21:24 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 02:21:24 +0900 |
commit | c6b9e84f2f7f8c85939a8e5ff5d8a5aa067cecf3 (patch) | |
tree | 1436172370a45714687122f914354ad167a2f528 /packaging | |
parent | f7d643cbb2184346b6f8d26091eb7eb38c6bbfe1 (diff) | |
download | pygobject2-c6b9e84f2f7f8c85939a8e5ff5d8a5aa067cecf3.tar.gz pygobject2-c6b9e84f2f7f8c85939a8e5ff5d8a5aa067cecf3.tar.bz2 pygobject2-c6b9e84f2f7f8c85939a8e5ff5d8a5aa067cecf3.zip |
Tizen 2.1 basesubmit/tizen_2.1/20130425.060530submit/tizen_2.1/20130424.235900submit/tizen/20130517.051955accepted/tizen_2.1/20130425.021253accepted/tizen/20130520.1018302.1b_releasetizen_2.1
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/pygobject-rpmlintrc | 3 | ||||
-rw-r--r-- | packaging/pygobject.changes | 2 | ||||
-rw-r--r-- | packaging/pygobject.spec | 119 |
3 files changed, 124 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.spec b/packaging/pygobject.spec new file mode 100644 index 0000000..b75e029 --- /dev/null +++ b/packaging/pygobject.spec @@ -0,0 +1,119 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +# Last updated for version 2.19.0 +%define glib2_version 2.16.0 +%define python2_version 2.3.5 + +### Abstract ### + +Name: pygobject +Version: 2.21.3 +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 + + +### Build Dependencies ### + +BuildRequires: automake +BuildRequires: glib2-devel >= %{glib2_version} +BuildRequires: libtool +BuildRequires: python-devel >= %{python2_version} + +%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. + +%package doc +Summary: Documentation files for %{name} +Group: Development/Languages + +%description doc +This package contains documentation files for %{name}. + +%prep +%setup -q + +%build +%configure --enable-thread +export tagname=CC +make LIBTOOL=/usr/bin/libtool + +%install +rm -rf $RPM_BUILD_ROOT +export tagname=CC +make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install +find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f + +rm examples/Makefile* + +%clean +rm -fr $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(644, root, root, 755) +%doc AUTHORS NEWS README + +%{_libdir}/libpyglib-2.0-python.so* +%dir %{python_sitearch}/gtk-2.0 +%{python_sitearch}/gtk-2.0/dsextras.* +%{python_sitearch}/pygtk.* + +%defattr(755, root, root, 755) +%{python_sitearch}/gtk-2.0/gio +#%{python_sitearch}/gtk-2.0/girepository +%{python_sitearch}/gtk-2.0/glib +%{python_sitearch}/gtk-2.0/gobject + +%files codegen +%defattr(755, root, root, 755) +%{_bindir}/pygobject-codegen-2.0 +%defattr(644, root, root, 755) +%dir %{_datadir}/pygobject/2.0 +%{_datadir}/pygobject/2.0/codegen + +%files devel +%defattr(644, root, root, 755) +%dir %{_datadir}/pygobject +%dir %{_includedir}/pygtk-2.0 +%{_datadir}/pygobject/2.0/defs +#%{_includedir}/pygobject/bank.h +%{_includedir}/pygtk-2.0/pyglib.h +%{_includedir}/pygtk-2.0/pygobject.h +%{_libdir}/pkgconfig/pygobject-2.0.pc + +%files doc +%defattr(644, root, root, 755) +%doc examples +%{_datadir}/gtk-doc/html/pygobject +%{_datadir}/pygobject/xsl + |