gobject-introspection.spec revision 17171
17090N/A#
17090N/A# spec file for package gobject-introspection
17090N/A#
17090N/A# Copyright 2009 Sun Microsystems, Inc.
17090N/A# This file and all modifications and additions to the pristine
17090N/A# package are under the same license as the package itself.
17090N/A#
17090N/A# Owner: yippi
17090N/A#
17090N/A%{?!pythonver:%define pythonver 2.6}
17090N/A
17090N/AName: gobject-introspection
17090N/ALicense: LGPL v2+ (giscanner) and GPL v2+ (tools)
17090N/AGroup: Libraries
17090N/AVersion: 0.6.4
17090N/ARelease: 1
17090N/ADistribution: Java Desktop System
17090N/AVendor: Sun Microsystems, Inc.
17090N/ASummary: Introspection for GObject libraries
17090N/AURL: http://live.gnome.org/GObjectIntrospection
17090N/ASource: http://download.gnome.org/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
17162N/A#owner:halton date:2009-08-25 type:bug bugzilla:592968 status:upstreamed
17090N/APatch1: gobject-introspection-01-libtool.diff
17162N/A# This patch is only need with CBE 1.6.x.
17162N/A# CBE 1.6.x set LD, while CBE 1.7 does not.
17162N/A# When LD is set, the dumper will crash
17171N/A#owner:halton date:2009-08-29 type:bug bugzilla:593599
17162N/APatch2: gobject-introspection-02-LD.diff
17090N/A
17090N/ABuildRequires: autoconf >= 2.59
17090N/ABuildRequires: automake >= 1:1.8
17090N/ABuildRequires: bison
17090N/ABuildRequires: glib2-devel >= 1:2.16.0
17090N/ABuildRequires: libffi-devel
17090N/ABuildRequires: libtool
17090N/ABuildRequires: pkgconfig
17090N/ABuildRequires: python >= 1:2.5
17090N/ABuildRequires: python-devel >= 1:2.5
17090N/A
17090N/A%description
17090N/ATools for introspecting GObject-based frameworks.
17090N/A
17090N/A%package devel
17090N/ASummary: Header files for gobject-introspection
17090N/AGroup: Development/Libraries
17090N/ARequires: %{name}-libs = %{version}-%{release}
17090N/ARequires: glib2-devel >= 2.16.0
17090N/A
17090N/A%description devel
17090N/AHeader files for gobject-introspection.
17090N/A
17090N/A%package static
17090N/ASummary: Static gobject-introspection library
17090N/AGroup: Development/Libraries
17090N/ARequires: %{name}-devel = %{version}-%{release}
17090N/A
17090N/A%description static
17090N/AStatic gobject-introspection library.
17090N/A
17090N/A%prep
17090N/A%setup -q
17090N/A%patch1 -p1
17162N/A%patch2 -p1
17090N/A
17090N/A#FIXME: When #590802 fixed in next release, remove following lines
17090N/Arm -f m4/lt~obsolete.m4
17090N/Arm -f m4/ltoptions.m4
17090N/Arm -f m4/libtool.m4
17090N/Arm -f m4/ltsugar.m4
17090N/Arm -f m4/ltversion.m4
17090N/A
17090N/A%build
17090N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
17090N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
17090N/A CPUS=1
17090N/Afi
17090N/A
17090N/Aexport PYTHON=/usr/bin/python%{pythonver}
17090N/A
17090N/Alibtoolize --copy --force
17090N/Aaclocal $ACLOCAL_FLAGS -I m4
17090N/Aautoheader
17090N/Aautomake -a -c -f
17090N/Aautoconf
17090N/A
17090N/A./configure --prefix=%{_prefix} \
17090N/A --mandir=%{_mandir}
17090N/A
17090N/Amake
17090N/A
17090N/A%install
17090N/Arm -rf $RPM_BUILD_ROOT
17090N/Amake install DESTDIR=$RPM_BUILD_ROOT
17090N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
17090N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
17090N/A
17090N/A%clean
17090N/Arm -rf $RPM_BUILD_ROOT
17090N/A
17090N/A%post libs -p /sbin/ldconfig
17090N/A%postun libs -p /sbin/ldconfig
17090N/A
17090N/A%files
17090N/A%defattr(-,root,root)
17090N/A%doc AUTHORS ChangeLog README
17090N/A%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so.1.0.0
17090N/A%attr(755,root,root) %ghost %{_libdir}/libgirepository-everything-1.0.so.1
17090N/A%attr(755,root,root) %{_libdir}/libgirepository-1.0.so.0.0.0
17090N/A%attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.0
17090N/A%dir %{_libdir}/girepository-1.0
17090N/A%{_libdir}/girepository-1.0/*.typelib
17090N/A
17090N/A%defattr(-,root,root)
17090N/A%attr(755,root,root) %{_bindir}/g-ir-compiler
17090N/A%attr(755,root,root) %{_bindir}/g-ir-generate
17090N/A%attr(755,root,root) %{_bindir}/g-ir-scanner
17090N/A%{_mandir}/man1/g-ir-compiler.1*
17090N/A%{_mandir}/man1/g-ir-generate.1*
17090N/A%{_mandir}/man1/g-ir-scanner.1*
17090N/A%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so
17090N/A%attr(755,root,root) %{_libdir}/libgirepository-1.0.so
17090N/A%{_libdir}/pkgconfig/gobject-introspection-1.0.pc
17090N/A%{_includedir}/gobject-introspection-1.0
17090N/A%{_libdir}/libgirepository-1.0.la
17090N/A%{_libdir}/libgirepository-everything-1.0.la
17090N/A%{_datadir}/aclocal/introspection.m4
17090N/A%dir %{_datadir}/gir-1.0
17090N/A%{_datadir}/gir-1.0/*.gir
17090N/A
17090N/A%files static
17090N/A%defattr(-,root,root)
17090N/A%{_libdir}/libgirepository-1.0.a
17090N/A%{_libdir}/libgirepository-everything-1.0.a
17090N/A
17090N/A%changelog
17162N/A* Sat Aug 29 2009 - halton.huo@sun.com
17162N/A- Add patch -LD.diff to fix build issue with CBE 1.6.x
17090N/A* Mon Aug 24 2009 - halton.huo@sun.com
17090N/A- Initial version.