SPECS: python-pygobject.spec (NEW) - intial, based on pygtk spec

freetz freetz at pld-linux.org
Wed Jun 7 14:18:08 CEST 2006


Author: freetz                       Date: Wed Jun  7 12:18:07 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- intial, based on pygtk spec

---- Files affected:
SPECS:
   python-pygobject.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-pygobject.spec
diff -u /dev/null SPECS/python-pygobject.spec:1.1
--- /dev/null	Wed Jun  7 14:18:08 2006
+++ SPECS/python-pygobject.spec	Wed Jun  7 14:18:02 2006
@@ -0,0 +1,121 @@
+# $Revision$, $Date$
+#
+%define		module	pygobject
+#
+Summary:	Python bindings for GObject library
+Summary(pl):	Wiązania Pythona do biblioteki GObject
+Name:		python-%{module}
+Version:	2.10.1
+Release:	1
+License:	LGPL
+Group:		Libraries/Python
+Source0:	http://ftp.gnome.org/pub/gnome/sources/pygobject/2.10/%{module}-%{version}.tar.bz2
+# Source0-md5:	3a69a75b4dfdb52642f26a4d45fcfde8
+Source1:	%{name}-jhflags.m4
+Source2:	%{name}-python.m4
+URL:		http://www.pygtk.org/
+BuildRequires:	autoconf >= 2.52
+BuildRequires:	automake
+BuildRequires:	glib2-devel >= 1:2.11.2
+BuildRequires:	libtool
+BuildRequires:	python-devel >= 1:2.3.2
+%pyrequires_eq	python-modules
+Requires:	glib2 >= 1:2.11.2
+Conflicts:	python-pygtk < 1:1.0
+Obsoletes:	python-pygtk-glarea
+Obsoletes:	python-pygtk-gobject
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python bindings for GObject library.
+
+%description -l pl
+Wiązania Pythona do biblioteki GObject.
+
+%package devel
+Summary:	Python bindings for GObject library
+Summary(pl):	Wiązania Pythona do biblioteki GObject
+Group:		Development/Languages/Python
+Requires:	%{name} = %{version}-%{release}
+Requires:	glib2-devel >= 1:2.11.2
+Requires:	python-devel >= 1:2.3.2
+
+%description devel
+This package contains files required to build wrappers for GObject
+addon libraries so that they interoperate with Python bindings.
+
+%description devel -l pl
+Pakiet zawiera pliki wymagane do zbudowania funkcji do biblioteki
+GObject, tak by mogły te biblioteki kooperować z wiązaniami Pythona.
+
+%package examples
+Summary:	Example programs for GObject library
+Summary(pl):	Programy przykładowe dla biblioteki GObject
+Group:		Development/Languages/Python
+Requires:	%{name}-devel = %{version}-%{release}
+Obsoletes:	python-pygtk
+
+%description examples
+This package contains example programs for GObject library.
+
+%description examples -l pl
+Ten pakiet zawiera przykładowe programy dla biblioteki GObject.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+mkdir m4
+cp %{SOURCE1} m4/python.m4
+cp %{SOURCE2} m4/jhflags.m4
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/*/{*.la,*/*.la}
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/{*.py,*/*.py,*/*/*.py}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{py_sitedir}/gtk-2.0/gobject*.so
+%dir %{py_sitedir}/gtk-2.0
+%{py_sitedir}/gtk-2.0/*.py[co]
+%{py_sitedir}/*.py[co]
+%{py_sitedir}/pygtk.pth
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/pygtk-2.0
+%{_pkgconfigdir}/*.pc
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/06/07 12:18:02  freetz
+- intial, based on pygtk spec
+
================================================================


More information about the pld-cvs-commit mailing list