[521] | 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
| 2 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 3 | |
---|
| 4 | Name: gobject-introspection |
---|
[623] | 5 | Version: 0.6.8 |
---|
[521] | 6 | Release: 1%{?_dist_release} |
---|
| 7 | Summary: Introspection system for GObject-based libraries |
---|
| 8 | |
---|
| 9 | Group: Development/Libraries |
---|
| 10 | License: GPLv2+, LGPLv2+, MIT |
---|
| 11 | URL: http://live.gnome.org/GObjectIntrospection |
---|
| 12 | Source0: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.6/%{name}-%{version}.tar.bz2 |
---|
| 13 | Patch0: gobject-introspection-0.6.7-ginfo-ppc.patch |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 15 | |
---|
| 16 | BuildRequires: glib2-devel |
---|
| 17 | BuildRequires: python-devel >= 2.5 |
---|
| 18 | BuildRequires: gettext |
---|
| 19 | BuildRequires: intltool |
---|
| 20 | BuildRequires: gtk-doc |
---|
| 21 | BuildRequires: flex |
---|
| 22 | BuildRequires: bison |
---|
| 23 | BuildRequires: libffi-devel |
---|
| 24 | BuildRequires: chrpath |
---|
| 25 | BuildRequires: mesa-libGL-devel |
---|
| 26 | BuildRequires: cairo-devel |
---|
| 27 | BuildRequires: libxml2-devel |
---|
| 28 | BuildRequires: libXfixes-devel |
---|
| 29 | BuildRequires: libX11-devel |
---|
| 30 | BuildRequires: fontconfig-devel |
---|
| 31 | BuildRequires: libXft-devel |
---|
| 32 | BuildRequires: freetype2-devel |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | GObject Introspection can scan C header and source files in order to |
---|
| 36 | generate introspection "typelib" files. It also provides an API to examine |
---|
| 37 | typelib files, useful for creating language bindings among other |
---|
| 38 | things. |
---|
| 39 | |
---|
| 40 | %package devel |
---|
| 41 | Summary: Libraries and headers for gobject-introspection |
---|
| 42 | Summary(ja): %{name} の開発用ファイル |
---|
| 43 | Group: Development/Libraries |
---|
| 44 | Requires: %name = %{version}-%{release} |
---|
| 45 | Requires: glib2-devel |
---|
| 46 | Requires: pkgconfig |
---|
| 47 | |
---|
| 48 | %description devel |
---|
| 49 | Libraries and headers for gobject-introspection |
---|
| 50 | |
---|
| 51 | %prep |
---|
| 52 | %setup -q |
---|
| 53 | %ifarch ppc |
---|
| 54 | %patch0 -p1 -b .ppc |
---|
| 55 | %endif |
---|
| 56 | |
---|
| 57 | %build |
---|
| 58 | %configure |
---|
| 59 | make V=1 |
---|
| 60 | |
---|
| 61 | %install |
---|
| 62 | rm -rf $RPM_BUILD_ROOT |
---|
| 63 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 64 | |
---|
| 65 | # Die libtool, die. |
---|
| 66 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
---|
| 67 | find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
---|
| 68 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-{compiler,generate} |
---|
| 69 | # Mistake in upstream automake |
---|
| 70 | rm -f $RPM_BUILD_ROOT/%{_bindir}/barapp |
---|
| 71 | |
---|
| 72 | # Move the python modules to the correct location |
---|
| 73 | mkdir -p $RPM_BUILD_ROOT/%{python_sitearch} |
---|
| 74 | mv $RPM_BUILD_ROOT/%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT/%{python_sitearch}/ |
---|
| 75 | |
---|
| 76 | rm -f %{_datadir}/gobject-introspection-1.0/Makefile.introspection |
---|
| 77 | |
---|
| 78 | %clean |
---|
| 79 | rm -rf $RPM_BUILD_ROOT |
---|
| 80 | |
---|
| 81 | %post -p /sbin/ldconfig |
---|
| 82 | |
---|
| 83 | %postun -p /sbin/ldconfig |
---|
| 84 | |
---|
| 85 | %files |
---|
| 86 | %defattr(-,root,root,-) |
---|
| 87 | %doc COPYING |
---|
| 88 | |
---|
| 89 | %{_libdir}/lib*.so.* |
---|
| 90 | %dir %{_libdir}/girepository-1.0 |
---|
| 91 | %{_libdir}/girepository-1.0/*.typelib |
---|
| 92 | |
---|
| 93 | %files devel |
---|
| 94 | %defattr(-,root,root) |
---|
| 95 | %{_libdir}/lib*.so |
---|
| 96 | %{_libdir}/pkgconfig/* |
---|
| 97 | %{_includedir}/* |
---|
| 98 | %{_bindir}/g-ir-* |
---|
| 99 | %{_datadir}/gir-1.0 |
---|
| 100 | %{_datadir}/aclocal/introspection.m4 |
---|
| 101 | %{python_sitearch}/giscanner |
---|
| 102 | %{_mandir}/man1/*.gz |
---|
| 103 | |
---|
| 104 | %changelog |
---|
[623] | 105 | * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.8-1 |
---|
[521] | 106 | - new upstream release |
---|
[623] | 107 | |
---|
| 108 | * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.7-1 |
---|
| 109 | - new upstream release |
---|
[521] | 110 | - add Patch0 for ppc |
---|
| 111 | |
---|
| 112 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.5-2 |
---|
| 113 | - rebuilt with python-2.6.4 |
---|
| 114 | |
---|
| 115 | * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.5-1 |
---|
| 116 | - initial build for Vine Linux |
---|
| 117 | |
---|
| 118 | * Fri Sep 11 2009 Colin Walters <walters@verbum.org> - 0.6.5-1 |
---|
| 119 | - New upstream |
---|
| 120 | - Drop libtool dep |
---|
| 121 | |
---|
| 122 | * Fri Aug 28 2009 Colin Walters <walters@verbum.org> - 0.6.4-2 |
---|
| 123 | - Add dep on libtool temporarily |
---|
| 124 | |
---|
| 125 | * Mon Aug 26 2009 Colin Walters <walters@verbum.org> - 0.6.4-1 |
---|
| 126 | - New upstream 0.6.4 |
---|
| 127 | - Drop upstreamed build fix patch |
---|
| 128 | |
---|
| 129 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5 |
---|
| 130 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 131 | |
---|
| 132 | * Mon Jul 6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-4 |
---|
| 133 | - Add upstream patch to fix a build crash |
---|
| 134 | |
---|
| 135 | * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-3 |
---|
| 136 | - Add -ggdb temporarily so it compiles on ppc64 |
---|
| 137 | |
---|
| 138 | * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-2 |
---|
| 139 | - Add the new source file |
---|
| 140 | |
---|
| 141 | * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-1 |
---|
| 142 | - Update to 0.6.3 |
---|
| 143 | |
---|
| 144 | * Mon Jun 1 2009 Dan Williams <dcbw@redhat.com> - 0.6.2-1 |
---|
| 145 | - Update to 0.6.2 |
---|
| 146 | |
---|
| 147 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2 |
---|
| 148 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 149 | |
---|
| 150 | * Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 0.6.1-1 |
---|
| 151 | - Update to 0.6.1 |
---|
| 152 | |
---|
| 153 | * Fri Oct 31 2008 Colin Walters <walters@verbum.org> - 0.6.0-1 |
---|
| 154 | - Create spec goo |
---|