gobject-introspection/gobject-introspection.spec

171 lines
5.1 KiB
RPMSpec
Raw Normal View History

2008-12-11 21:55:55 +00:00
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: gobject-introspection
2010-01-28 20:54:14 +00:00
Version: 0.6.8
Release: 0.2.20100311git2cc97351
2008-12-11 21:55:55 +00:00
Summary: Introspection system for GObject-based libraries
Group: Development/Libraries
License: GPLv2+, LGPLv2+, MIT
URL: http://live.gnome.org/GObjectIntrospection
#VCS: git:git://git.gnome.org/gobject-introspection
2010-01-15 17:26:48 +00:00
#Source0: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
# git clone git://git.gnome.org/gobject-introspection
# rm -fr gobject-introspection/.git
# tar -cvzf gobject-introspection.tar.gz gobject-introspection/
Source0: gobject-introspection-0.6.8git2cc97351.tar.bz2
2008-12-11 21:55:55 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2010-01-15 17:26:48 +00:00
# git snapshot requires some other fun stuff
BuildRequires: autoconf >= 2.53
BuildRequires: libtool
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: gnome-common
2010-01-15 17:26:48 +00:00
BuildRequires: automake >= 1.10
BuildRequires: gnome-common >= 2.2.0
BuildRequires: libtool >= 1.4.3
2008-12-11 21:55:55 +00:00
BuildRequires: glib2-devel
BuildRequires: python-devel >= 2.5
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: gtk-doc
BuildRequires: flex
BuildRequires: bison
BuildRequires: libffi-devel
BuildRequires: chrpath
2009-06-02 16:02:42 +00:00
BuildRequires: mesa-libGL-devel
2009-06-02 16:14:01 +00:00
BuildRequires: cairo-devel
2009-06-02 16:29:29 +00:00
BuildRequires: libxml2-devel
BuildRequires: libXfixes-devel
BuildRequires: libX11-devel
BuildRequires: fontconfig-devel
BuildRequires: libXft-devel
BuildRequires: freetype-devel
2008-12-11 21:55:55 +00:00
%description
GObject Introspection can scan C header and source files in order to
generate introspection "typelib" files. It also provides an API to examine
typelib files, useful for creating language bindings among other
things.
%package devel
Summary: Libraries and headers for gobject-introspection
Group: Development/Libraries
Requires: %name = %{version}-%{release}
Requires: glib2-devel
Requires: libffi-devel
2008-12-11 21:55:55 +00:00
Requires: pkgconfig
%description devel
Libraries and headers for gobject-introspection
%prep
2010-01-15 17:26:48 +00:00
#%setup -q
# git snapshot has a different directory name:
%setup -q -n gobject-introspection-0.6.8git2cc97351
2008-12-11 21:55:55 +00:00
%build
./autogen.sh && %configure
make V=1
2008-12-11 21:55:55 +00:00
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Die libtool, die.
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-{compiler,generate}
2009-07-02 09:03:14 +00:00
# Move the python modules to the correct location
mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}
mv $RPM_BUILD_ROOT/%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT/%{python_sitearch}/
2008-12-11 21:55:55 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/lib*.so.*
2009-06-02 16:02:42 +00:00
%dir %{_libdir}/girepository-1.0
%{_libdir}/girepository-1.0/*.typelib
2008-12-11 21:55:55 +00:00
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_bindir}/g-ir-*
2009-06-02 16:02:42 +00:00
%{_datadir}/gir-1.0
2009-12-22 15:35:37 +00:00
%{_datadir}/gobject-introspection-1.0
2009-07-02 09:03:14 +00:00
%{_datadir}/aclocal/introspection.m4
2008-12-11 21:55:55 +00:00
%{python_sitearch}/giscanner
%{_mandir}/man1/*.gz
%changelog
* Thu Mar 11 2010 Colin Walters <walters@verbum.org>
- New upstream snapshot
- rm unneeded rm
* Tue Feb 23 2010 Colin Walters <walters@verbum.org>
- devel pkg should require libffi-devel
2010-01-28 20:54:14 +00:00
* Thu Jan 28 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.6.8-0.1.20100128git
- Update to new git snapshot
- Fix Version tag to comply with correct naming use with alphatag
2010-01-15 17:26:48 +00:00
* Thu Jan 15 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.6.7.20100115git-1
- Update to git snapshot for rawhide
2009-12-22 15:08:09 +00:00
* Tue Dec 22 2009 Matthias Clasen <mclasen@redhat.com> - 0.6.7-1
- Update to 0.6.7
2009-09-04 21:43:34 +00:00
* Fri Sep 11 2009 Colin Walters <walters@verbum.org> - 0.6.5-1
- New upstream
- Drop libtool dep
2009-08-28 17:11:38 +00:00
* Fri Aug 28 2009 Colin Walters <walters@verbum.org> - 0.6.4-2
- Add dep on libtool temporarily
* Mon Aug 26 2009 Colin Walters <walters@verbum.org> - 0.6.4-1
- New upstream 0.6.4
- Drop upstreamed build fix patch
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Mon Jul 6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-4
- Add upstream patch to fix a build crash
* Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-3
- Add -ggdb temporarily so it compiles on ppc64
2009-07-02 09:09:42 +00:00
* Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-2
- Add the new source file
2009-07-02 09:03:14 +00:00
* Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-1
- Update to 0.6.3
2009-06-02 16:02:42 +00:00
* Mon Jun 1 2009 Dan Williams <dcbw@redhat.com> - 0.6.2-1
- Update to 0.6.2
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-11 21:55:55 +00:00
* Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 0.6.1-1
- Update to 0.6.1
* Fri Oct 31 2008 Colin Walters <walters@verbum.org> - 0.6.0-1
- Create spec goo