diff --git a/.cvsignore b/.cvsignore index e69de29..2fa6581 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pygtksourceview-1.90.1.tar.bz2 diff --git a/pygtksourceview.spec b/pygtksourceview.spec new file mode 100644 index 0000000..caba972 --- /dev/null +++ b/pygtksourceview.spec @@ -0,0 +1,73 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%define pygtk_version 2.8.0 +%define pygobject_version 2.8.0 +%define gtksourceview_version 1.90.1 + +Name: pygtksourceview +Version: 1.90.1 +Release: 2%{?dist} +Summary: Python bindings for gtksourceview + +Group: Development/Languages +License: LGPL +URL: http://download.gnome.org/sources/pygtksourceview/ +Source0: http://download.gnome.org/sources/pygtksourceview/1.90/pygtksourceview-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python-devel +BuildRequires: pygtk2-devel >= %{pygtk_version} +BuildRequires: pygobject2-devel >= %{pyobject_version} +BuildRequires: gtksourceview-devel >= %{gtksourceview_version} + +%description +The %{name} package contains Python bindings for the gtksourceview +library. + +%package devel +Summary: Development files for using %{name} in Python programs +Group: Development/Languages +Requires: %{name} = %{version}-%{release} +Requires: pygtk2-devel >= %{pygtk_version} +Requires: gtksourceview-devel >= %{gtksourceview_version} +Requires: pkgconfig + +%description devel +This package contains files required to build Python programs that +use the %{name} bindings. + +%prep +%setup -q + + +%build +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +rm $RPM_BUILD_ROOT%{python_sitearch}/gtksourceview2module.la + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING AUTHORS README NEWS +%{python_sitearch}/* + +%files devel +%defattr(-,root,root,-) +%{_datadir}/gtk-doc/html/pygtksourceview2 +%{_datadir}/pygtk/2.0/defs/gtksourceview2.defs +%{_libdir}/pkgconfig/pygtksourceview-2.0.pc + +%changelog +* Tue Jun 26 2007 Matthias Clasen 1.90.1-2 +- Incorporate package review feedback + +* Mon Jun 25 2007 Matthias Clasen 1.90.1-1 +- Initial package diff --git a/sources b/sources index e69de29..951524b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +dcace16cfe05f7436c1c6c7f9b04f6fb pygtksourceview-1.90.1.tar.bz2