gobject-introspection.spec revision 18904
17090N/A#
17090N/A# spec file for package gobject-introspection
17090N/A#
18610N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
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#
17185N/A%define owner yippi
18632N/A
18632N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
18632N/A
17090N/A#
17090N/A%{?!pythonver:%define pythonver 2.6}
17090N/A
17090N/AName: gobject-introspection
18761N/ALicense: LGPL v2+ (giscanner), GPL v2+ (tools), some MIT (giscanner)
17090N/AGroup: Libraries
18904N/AVersion: 0.6.14
17090N/ARelease: 1
17090N/ADistribution: Java Desktop System
18615N/AVendor: Gnome Community
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
18572N/A# We only deliver one set of the Python files, so it is necessary to modify
18572N/A# /usr/bin/amd64/g-ir-scanner to point to the right python files.
18572N/A# date:2010-04-09 owner:yippi type:feature
18572N/APatch1: gobject-introspection-01-amd64.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
18572N/A%patch1 -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
17175N/Aexport PYTHON=%{_bindir}/python%{pythonver}
17090N/A
18265N/A#substitute python to 2.6, CR6924142
18265N/Apyfiles="
18265N/Agiscanner/shlibs.py
18265N/Agiscanner/scannermain.py
18265N/A"
18265N/A
18265N/Afor i in $pyfiles
18265N/Ado
18265N/A sed -e s,/usr/bin/env\ python,$PYTHON, $i > $i.new
18265N/A mv $i.new $i
18265N/Adone
18265N/A
17090N/Alibtoolize --copy --force
17090N/Aaclocal $ACLOCAL_FLAGS -I m4
17090N/Aautoheader
17090N/Aautomake -a -c -f
17090N/Aautoconf
17090N/A
17175N/A./configure --prefix=%{_prefix} \
17175N/A --bindir=%{_bindir} \
17175N/A --libdir=%{_libdir} \
17175N/A --includedir=%{_includedir} \
17175N/A --sysconfdir=%{_sysconfdir} \
17090N/A --mandir=%{_mandir}
17090N/A
18620N/A# disable parallel builds as it's broken for 0.6.10
18620N/A#gmake -j $CPU
18620N/Agmake
17090N/A
17090N/A%install
18201N/Agmake 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
18265N/Afind $RPM_BUILD_ROOT -type f -name "*.pyc" -exec rm -f {} ';'
18265N/Afind $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
18265N/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
18904N/A* Mon Jun 21 2010 - brian.cameron@oracle.com
18904N/A- Bump to 0.6.14.
18804N/A* Fri May 28 2010 - brian.cameron@oracle.com
18806N/A- Bump to 0.6.12. I found a clutter patch to fix the build problem so it
18806N/A builds okay with the latest gobject-introspection.
18806N/A* Fri May 28 2010 - brian.cameron@oracle.com
18804N/A- Unbump to 0.6.10. Turns out that the new version causes clutter to not
18804N/A compile. I noticed 0.6.12 came out and tried that version, but it also fails
18804N/A to build clutter.
18761N/A* Fri May 21 2010 - brian.cameron@oracle.com
18761N/A- Bump to 0.6.11.
18610N/A* Mon Apr 19 2010 - halton.huo@sun.com
18761N/A- Bump to 0.6.10.
18572N/A* Fri Apr 09 2010 - brian.cameron@sun.com
18572N/A- Add patch gobject-introspection-01-amd64.diff.
18479N/A* Fri Mar 19 2010 - halton.huo@sun.com
18761N/A- Bump to 0.6.9.
18416N/A* Thu Mar 11 2010 - halton.huo@sun.com
18761N/A- Bump to 0.6.8.
18416N/A- Remove upstreamed patches: 01-ginvoke.diff, 02-glib-compilation.dif
18761N/A 03-ginfo.diff, 04-big-ending.diff.
18265N/A* Mon Feb 08 2010 - halton.huo@sun.com
18265N/A- Use python2.6 to scannermain.py and shlibs.py, fixes CR #6924142.
18265N/A- Remove .pyc and .pyo files.
18201N/A* Tue Jan 26 2010 - brian.cameron@sun.com
18201N/A- Use gmake instead of make, fixes doo bug #14155.
18032N/A* Fri Jan 08 2010 - halton.huo@sun.com
18761N/A- Add patch ginfo.diff and big-ending.diff to fix bugzilla #606180.
17991N/A* Wed Dec 23 2009 - halton.huo@sun.com
18761N/A- Bump to 0.6.7.
17991N/A- Add patch -glib-compilation.dif to fix bugzilla #605108.
17916N/A* Fri Dec 11 2009 - halton.huo@sun.com
17916N/A- Bump to 0.6.6. Remove upstream patch 64bit.diff.
17232N/A* Sat Sep 05 2009 - brian.cameron@sun.com
17232N/A- Bump to 0.6.5. Remove upstream patches.
17175N/A* Mon Aug 31 2009 - halton.huo@sun.com
17175N/A- Add patch -64bit to fix 64 bit issue. Bugzilla #593639.
17162N/A* Sat Aug 29 2009 - halton.huo@sun.com
17960N/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.