da589bc
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
da589bc
da589bc
%define pygtk_version 2.8.0
60c09bd
%define pygobject_version 2.15.2
60c09bd
%define gtksourceview_version 2.3.0
da589bc
da589bc
Name:           pygtksourceview
431f6c6
Version:        2.6.0
431f6c6
Release:        1%{?dist}
da589bc
Summary:        Python bindings for gtksourceview
da589bc
da589bc
Group:          Development/Languages
06b7319
# No version specified.
06b7319
License:        LGPLv2+
da589bc
URL:            http://download.gnome.org/sources/pygtksourceview/
431f6c6
Source0:        http://download.gnome.org/sources/pygtksourceview/2.6/pygtksourceview-%{version}.tar.bz2
da589bc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
da589bc
dcf7f3b
BuildRequires:  gtksourceview2-devel >= %{gtksourceview_version}
d83d617
BuildRequires:  pygobject2-devel >= %{pygobject_version}
d83d617
BuildRequires:  pygtk2-devel >= %{pygtk_version}
d83d617
BuildRequires:  python-devel
da589bc
da589bc
%description
da589bc
The %{name} package contains Python bindings for the gtksourceview
da589bc
library. 
da589bc
da589bc
%package devel
da589bc
Summary: Development files for using %{name} in Python programs
da589bc
Group: Development/Languages
da589bc
Requires: %{name} = %{version}-%{release}
d83d617
Requires: %{name}-doc = %{version}-%{release}
dcf7f3b
Requires: gtksourceview2-devel >= %{gtksourceview_version}
da589bc
Requires: pkgconfig
d83d617
Requires: pygtk2-devel >= %{pygtk_version}
da589bc
da589bc
%description devel
da589bc
This package contains files required to build Python programs that
da589bc
use the %{name} bindings.
da589bc
d83d617
%package doc
d83d617
Summary: Documentation files for %{name}
d83d617
Group: Development/Languages
d83d617
d83d617
%description doc
d83d617
This package contains documentation files for %{name}.
d83d617
da589bc
%prep
da589bc
%setup -q
da589bc
da589bc
%build
da589bc
%configure 
da589bc
make
da589bc
da589bc
%install
da589bc
rm -rf $RPM_BUILD_ROOT
da589bc
make install DESTDIR=$RPM_BUILD_ROOT
da589bc
4af2e30
rm $RPM_BUILD_ROOT%{python_sitearch}/gtksourceview2.la
da589bc
 
da589bc
%clean
da589bc
rm -rf $RPM_BUILD_ROOT
da589bc
da589bc
%files
da589bc
%defattr(-,root,root,-)
da589bc
%doc COPYING AUTHORS README NEWS 
da589bc
%{python_sitearch}/*
da589bc
da589bc
%files devel
da589bc
%defattr(-,root,root,-)
da589bc
%{_datadir}/pygtk/2.0/defs/gtksourceview2.defs
da589bc
%{_libdir}/pkgconfig/pygtksourceview-2.0.pc
da589bc
d83d617
%files doc
4450631
%defattr(-,root,root,-)
d83d617
%{_datadir}/gtk-doc/html/pygtksourceview2
d83d617
da589bc
%changelog
431f6c6
* Mon Jun  1 2009 Matthias Clasen <mclasne@redhat.com> - 2.6.0-1
431f6c6
- Update to 2.6.0
431f6c6
d54953b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-3
d54953b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d54953b
5b17714
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.4.0-2
5b17714
- Rebuild for Python 2.6
5b17714
60c09bd
* Sun Sep 21 2008 Matthias Clasen <mclasen@redhat.com> - 2.4.0-1
60c09bd
- Update to 2.4.0
60c09bd
06b7319
* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.0-2
06b7319
- fix license tag
06b7319
c5bea00
* Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> - 2.2.0-1
c5bea00
- Update to 2.2.0
c5bea00
80f0b79
* Wed Feb  6 2008 Matthias Clasen <mclasen@redhat.com> - 2.1.1-1
80f0b79
- Update to 2.1.1
80f0b79
4450631
* Tue Jan 22 2008 Matthew Barnes <mbarnes@redhat.com> - 2.1.0-2.fc9
4450631
- Fix a typo.
4450631
ad8396d
* Mon Jan 21 2008 Matthew Barnes <mbarnes@redhat.com> - 2.1.0-1.fc9
ad8396d
- Update to 2.1.0
ad8396d
d83d617
* Fri Oct 26 2007 Matthew Barnes <mbarnes@redhat.com> - 2.0.0-2.fc9
d83d617
- Add subpackage pygtksourceview-doc (bug #342991).
d83d617
8fc5434
* Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 2.0.0-1
8fc5434
- Update to 2.0.0
8fc5434
52102e9
* Tue Sep 11 2007 Matthew Barnes <mbarnes@redhat.com> - 1.90.5-1
52102e9
- Update to 1.90.5
52102e9
ed16879
* Tue Sep  4 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.4-1
ed16879
- Update to 1.90.4
ed16879
de08963
* Wed Aug  1 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.3-1
de08963
- Update to 1.90.3
de08963
dcf7f3b
* Tue Jul 10 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.2-2
dcf7f3b
- Rebuild against the gtksourceview2 package
dcf7f3b
d5e5f7b
* Fri Jul 06 2007 Matthew Barnes <mbarnes@redhat.com> - 1.90.2-1.fc8
d5e5f7b
- Update to 1.90.2
5f1a647
- Bump gtksourceview requirement to 1.90.2.
d5e5f7b
Florian La Roche 6c41248
* Tue Jul 03 2007 Florian La Roche <laroche@redhat.com> 1.90.1-3
Florian La Roche 6c41248
- fix macro typo
Florian La Roche 6c41248
da589bc
* Tue Jun 26 2007 Matthias Clasen <mclasen@redhat.com> 1.90.1-2
da589bc
- Incorporate package review feedback
da589bc
da589bc
* Mon Jun 25 2007 Matthias Clasen <mclasen@redhat.com> 1.90.1-1
da589bc
- Initial package