b02c344
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
b02c344
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
b02c344
b02c344
Name:           gobject-introspection
8af9d9b
Version:        0.9.0
8af9d9b
Release:        1%{?dist}
b02c344
Summary:        Introspection system for GObject-based libraries
b02c344
6f92c2f
Group:      Development/Libraries
b02c344
License:        GPLv2+, LGPLv2+, MIT
b02c344
URL:            http://live.gnome.org/GObjectIntrospection
8df8bdc
#VCS:		git:git://git.gnome.org/gobject-introspection
8af9d9b
Source0:        ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.6/%{name}-%{version}.tar.gz
b02c344
0265fd9
Obsoletes:	gir-repository
0265fd9
b02c344
BuildRequires:  glib2-devel
b02c344
BuildRequires:  python-devel >= 2.5
b02c344
BuildRequires:  gettext
b02c344
BuildRequires:  flex
b02c344
BuildRequires:  bison
b02c344
BuildRequires:  libffi-devel
5fb9f5b
BuildRequires:  mesa-libGL-devel
90c97af
BuildRequires:  cairo-devel
96d8968
BuildRequires:  libxml2-devel
96d8968
BuildRequires:  libXfixes-devel
96d8968
BuildRequires:  libX11-devel
96d8968
BuildRequires:  fontconfig-devel
96d8968
BuildRequires:  libXft-devel
96d8968
BuildRequires:  freetype-devel
8af9d9b
# Bootstrap requirements
8af9d9b
BuildRequires:  gnome-common
8af9d9b
BuildRequires:  intltool
8af9d9b
BuildRequires:  gtk-doc
b02c344
b02c344
%description
b02c344
GObject Introspection can scan C header and source files in order to
b02c344
generate introspection "typelib" files.  It also provides an API to examine
b02c344
typelib files, useful for creating language bindings among other
b02c344
things.
b02c344
b02c344
%package devel
b02c344
Summary: Libraries and headers for gobject-introspection
b02c344
Group: Development/Libraries
b02c344
Requires: %name = %{version}-%{release}
b02c344
Requires: glib2-devel
b02c344
Requires: pkgconfig
0265fd9
Obsoletes: gir-repository-devel
b02c344
b02c344
%description devel
b02c344
Libraries and headers for gobject-introspection
b02c344
b02c344
%prep
6f92c2f
%setup -q
b02c344
b02c344
%build
8af9d9b
(if ! test -x configure; then AUTOGEN_SUBDIR_MODE=1 NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
8af9d9b
 %configure $CONFIGFLAGS)
8af9d9b
make V=1 %{?_smp_mflags}
b02c344
b02c344
%install
b02c344
make install DESTDIR=$RPM_BUILD_ROOT
b02c344
b02c344
# Die libtool, die.
b02c344
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
b02c344
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
e509cf3
b02c344
%post -p /sbin/ldconfig
b02c344
b02c344
%postun -p /sbin/ldconfig
b02c344
b02c344
%files
b02c344
%defattr(-,root,root,-)
b02c344
%doc COPYING
b02c344
b02c344
%{_libdir}/lib*.so.*
5fb9f5b
%dir %{_libdir}/girepository-1.0
5fb9f5b
%{_libdir}/girepository-1.0/*.typelib
b02c344
b02c344
%files devel
b02c344
%defattr(-,root,root)
b02c344
%{_libdir}/lib*.so
97685c9
%dir %{_libdir}/gobject-introspection
97685c9
%{_libdir}/gobject-introspection/*
b02c344
%{_libdir}/pkgconfig/*
b02c344
%{_includedir}/*
b02c344
%{_bindir}/g-ir-*
5fb9f5b
%{_datadir}/gir-1.0
6f92c2f
%dir %{_datadir}/gobject-introspection-1.0
6f92c2f
%{_datadir}/gobject-introspection-1.0/*
e509cf3
%{_datadir}/aclocal/introspection.m4
b02c344
%{_mandir}/man1/*.gz
b02c344
b02c344
%changelog
8af9d9b
* Tue Jun 29 2010 Colin Walters <walters@verbum.org> - 0.9.0-1
8af9d9b
- New upstream development release
8af9d9b
- Update to support building git snapshot directly
8af9d9b
f2d9379
* Thu Jun 24 2010 Colin Walters <walters@pocket> - 0.6.14-3
f2d9379
- rebuild to pick up new glib changes
f2d9379
0265fd9
* Thu Jun 10 2010 Colin Walters <walters@pocket> - 0.6.14-2
0265fd9
- Obsolete gir-repository{,-devel}
0265fd9
565a474
* Tue Jun  8 2010 Matthias Clasen <mclasen@redhat.com> - 0.6.14-1
565a474
- Update to 0.6.14
565a474
41a5bd9
* Wed May 24 2010 Colin Walters <walters@verbum.org> - 0.6.12-1
41a5bd9
- Update to latest upstream release 0.6.12
41a5bd9
97685c9
* Thu Mar 25 2010 Colin Walters <walters@verbum.org> - 0.6.9-3
97685c9
- Move python library back into /usr/lib/gobject-introspection.  I put
97685c9
  it there upstream for a reason, namely that apps need to avoid
97685c9
  polluting the global Python site-packages with bits of their internals.
97685c9
  It's not a public API.
97685c9
  
97685c9
  Possibly resolves bug #569885
97685c9
6f92c2f
* Wed Mar 24 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.6.9-2
6f92c2f
- Added newly owned files (gobject-introspection-1.0 directory)
6f92c2f
6f92c2f
* Wed Mar 24 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.6.9-1
6f92c2f
- Update to latest upstream release 0.6.9
6f92c2f
6f92c2f
* Thu Mar 11 2010 Colin Walters <walters@verbum.org> - 0.6.8-0.3.20100311git2cc97351
6f92c2f
- rebuilt
6f92c2f
392c252
* Thu Mar 11 2010 Colin Walters <walters@verbum.org>
392c252
- New upstream snapshot
392c252
- rm unneeded rm
392c252
04100db
* Thu Jan 28 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.6.8-0.1.20100128git
760be0b
- Update to new git snapshot
760be0b
- Fix Version tag to comply with correct naming use with alphatag
760be0b
76682b8
* Thu Jan 15 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.6.7.20100115git-1
76682b8
- Update to git snapshot for rawhide 
76682b8
8787ae9
* Tue Dec 22 2009 Matthias Clasen <mclasen@redhat.com> - 0.6.7-1
8787ae9
- Update to 0.6.7
8787ae9
e6bf0c8
* Fri Sep 11 2009 Colin Walters <walters@verbum.org> - 0.6.5-1
e6bf0c8
- New upstream
e6bf0c8
- Drop libtool dep 
e6bf0c8
85768da
* Fri Aug 28 2009 Colin Walters <walters@verbum.org> - 0.6.4-2
85768da
- Add dep on libtool temporarily
85768da
6b5a95e
* Mon Aug 26 2009 Colin Walters <walters@verbum.org> - 0.6.4-1
6b5a95e
- New upstream 0.6.4
6b5a95e
- Drop upstreamed build fix patch 
6b5a95e
7f39aa2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
7f39aa2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7f39aa2
4689f25
* Mon Jul  6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-4
4689f25
- Add upstream patch to fix a build crash
4689f25
8a14410
* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-3
8a14410
- Add -ggdb temporarily so it compiles on ppc64
8a14410
8714ba7
* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-2
8714ba7
- Add the new source file
8714ba7
e509cf3
* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-1
e509cf3
- Update to 0.6.3
e509cf3
5fb9f5b
* Mon Jun  1 2009 Dan Williams <dcbw@redhat.com> - 0.6.2-1
5fb9f5b
- Update to 0.6.2
5fb9f5b
b096c4d
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
b096c4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b096c4d
b02c344
* Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 0.6.1-1
b02c344
- Update to 0.6.1
b02c344
b02c344
* Fri Oct 31 2008 Colin Walters <walters@verbum.org> - 0.6.0-1
b02c344
- Create spec goo