[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 |
---|
[805] | 5 | Version: 0.6.9 |
---|
[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 |
---|
[805] | 46 | Requires: libffi-devel |
---|
[521] | 47 | Requires: pkgconfig |
---|
| 48 | |
---|
| 49 | %description devel |
---|
| 50 | Libraries and headers for gobject-introspection |
---|
| 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q |
---|
| 54 | %ifarch ppc |
---|
| 55 | %patch0 -p1 -b .ppc |
---|
| 56 | %endif |
---|
| 57 | |
---|
| 58 | %build |
---|
| 59 | %configure |
---|
| 60 | make V=1 |
---|
| 61 | |
---|
| 62 | %install |
---|
| 63 | rm -rf $RPM_BUILD_ROOT |
---|
| 64 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 65 | |
---|
| 66 | # Die libtool, die. |
---|
| 67 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
---|
| 68 | find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
---|
| 69 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-{compiler,generate} |
---|
| 70 | # Mistake in upstream automake |
---|
| 71 | rm -f $RPM_BUILD_ROOT/%{_bindir}/barapp |
---|
| 72 | |
---|
| 73 | # Move the python modules to the correct location |
---|
| 74 | mkdir -p $RPM_BUILD_ROOT/%{python_sitearch} |
---|
| 75 | mv $RPM_BUILD_ROOT/%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT/%{python_sitearch}/ |
---|
| 76 | |
---|
| 77 | rm -f %{_datadir}/gobject-introspection-1.0/Makefile.introspection |
---|
| 78 | |
---|
| 79 | %clean |
---|
| 80 | rm -rf $RPM_BUILD_ROOT |
---|
| 81 | |
---|
| 82 | %post -p /sbin/ldconfig |
---|
| 83 | |
---|
| 84 | %postun -p /sbin/ldconfig |
---|
| 85 | |
---|
| 86 | %files |
---|
| 87 | %defattr(-,root,root,-) |
---|
| 88 | %doc COPYING |
---|
| 89 | |
---|
| 90 | %{_libdir}/lib*.so.* |
---|
| 91 | %dir %{_libdir}/girepository-1.0 |
---|
| 92 | %{_libdir}/girepository-1.0/*.typelib |
---|
| 93 | |
---|
| 94 | %files devel |
---|
| 95 | %defattr(-,root,root) |
---|
| 96 | %{_libdir}/lib*.so |
---|
| 97 | %{_libdir}/pkgconfig/* |
---|
| 98 | %{_includedir}/* |
---|
| 99 | %{_bindir}/g-ir-* |
---|
| 100 | %{_datadir}/gir-1.0 |
---|
| 101 | %{_datadir}/aclocal/introspection.m4 |
---|
| 102 | %{python_sitearch}/giscanner |
---|
| 103 | %{_mandir}/man1/*.gz |
---|
| 104 | |
---|
| 105 | %changelog |
---|
[805] | 106 | * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.9-1 |
---|
| 107 | - new upstream release |
---|
| 108 | - add Requires: libffi-devel (devel package) |
---|
| 109 | |
---|
[623] | 110 | * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.8-1 |
---|
[521] | 111 | - new upstream release |
---|
[623] | 112 | |
---|
| 113 | * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.7-1 |
---|
| 114 | - new upstream release |
---|
[521] | 115 | - add Patch0 for ppc |
---|
| 116 | |
---|
| 117 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.5-2 |
---|
| 118 | - rebuilt with python-2.6.4 |
---|
| 119 | |
---|
| 120 | * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.5-1 |
---|
| 121 | - initial build for Vine Linux |
---|
| 122 | |
---|
| 123 | * Fri Sep 11 2009 Colin Walters <walters@verbum.org> - 0.6.5-1 |
---|
| 124 | - New upstream |
---|
| 125 | - Drop libtool dep |
---|
| 126 | |
---|
| 127 | * Fri Aug 28 2009 Colin Walters <walters@verbum.org> - 0.6.4-2 |
---|
| 128 | - Add dep on libtool temporarily |
---|
| 129 | |
---|
| 130 | * Mon Aug 26 2009 Colin Walters <walters@verbum.org> - 0.6.4-1 |
---|
| 131 | - New upstream 0.6.4 |
---|
| 132 | - Drop upstreamed build fix patch |
---|
| 133 | |
---|
| 134 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5 |
---|
| 135 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 136 | |
---|
| 137 | * Mon Jul 6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-4 |
---|
| 138 | - Add upstream patch to fix a build crash |
---|
| 139 | |
---|
| 140 | * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-3 |
---|
| 141 | - Add -ggdb temporarily so it compiles on ppc64 |
---|
| 142 | |
---|
| 143 | * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-2 |
---|
| 144 | - Add the new source file |
---|
| 145 | |
---|
| 146 | * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-1 |
---|
| 147 | - Update to 0.6.3 |
---|
| 148 | |
---|
| 149 | * Mon Jun 1 2009 Dan Williams <dcbw@redhat.com> - 0.6.2-1 |
---|
| 150 | - Update to 0.6.2 |
---|
| 151 | |
---|
| 152 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2 |
---|
| 153 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 154 | |
---|
| 155 | * Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 0.6.1-1 |
---|
| 156 | - Update to 0.6.1 |
---|
| 157 | |
---|
| 158 | * Fri Oct 31 2008 Colin Walters <walters@verbum.org> - 0.6.0-1 |
---|
| 159 | - Create spec goo |
---|