gobject-introspection.spec revision 18265
10139N/A#
16398N/A# spec file for package gobject-introspection
10139N/A#
10139N/A# Copyright 2010 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
15573N/A#
10139N/A%define owner yippi
10139N/A#
15291N/A%{?!pythonver:%define pythonver 2.6}
16996N/A
10139N/AName: gobject-introspection
10139N/ALicense: LGPL v2+ (giscanner) and GPL v2+ (tools)
10139N/AGroup: Libraries
10139N/AVersion: 0.6.7
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Introspection for GObject libraries
10139N/AURL: http://live.gnome.org/GObjectIntrospection
14355N/ASource: http://download.gnome.org/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
10139N/A# date:2009-12-18 owner:yippi type:bug state:upstream
14355N/APatch1: %{name}-01-ginvoke.diff
10139N/A# date:2009-12-18 owner:halton type:bug bugzilla:605108
16569N/APatch2: %{name}-02-glib-compilation.diff
16569N/A# date:2010-01-08 owner:halton type:bug bugzilla:604074 state:upstream
16569N/APatch3: %{name}-03-ginfo.diff
10139N/A# date:2010-01-08 owner:halton type:bug bugzilla:606180
10139N/APatch4: %{name}-04-big-ending.diff
10139N/A
10139N/ABuildRequires: autoconf >= 2.59
10139N/ABuildRequires: automake >= 1:1.8
10139N/ABuildRequires: bison
10139N/ABuildRequires: glib2-devel >= 1:2.16.0
10139N/ABuildRequires: libffi-devel
10139N/ABuildRequires: libtool
10139N/ABuildRequires: pkgconfig
10139N/ABuildRequires: python >= 1:2.5
10139N/ABuildRequires: python-devel >= 1:2.5
10139N/A
10139N/A%description
10139N/ATools for introspecting GObject-based frameworks.
10139N/A
10139N/A%package devel
10139N/ASummary: Header files for gobject-introspection
10139N/AGroup: Development/Libraries
10139N/ARequires: %{name}-libs = %{version}-%{release}
10139N/ARequires: glib2-devel >= 2.16.0
10139N/A
10139N/A%description devel
10139N/AHeader files for gobject-introspection.
10139N/A
10139N/A%package static
10139N/ASummary: Static gobject-introspection library
10139N/AGroup: Development/Libraries
10139N/ARequires: %{name}-devel = %{version}-%{release}
10139N/A
10139N/A%description static
10139N/AStatic gobject-introspection library.
16569N/A
10139N/A%prep
10139N/A%setup -q
10139N/A%patch1 -p1
10139N/A%patch2 -p1
10139N/A%patch3 -p1
10139N/A%patch4 -p1
10139N/A
10139N/A#FIXME: When #590802 fixed in next release, remove following lines
10139N/Arm -f m4/lt~obsolete.m4
10139N/Arm -f m4/ltoptions.m4
10139N/Arm -f m4/libtool.m4
10139N/Arm -f m4/ltsugar.m4
10139N/Arm -f m4/ltversion.m4
10374N/A
10374N/A%build
10374N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12298N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
14355N/A CPUS=1
14355N/Afi
14355N/A
16569N/Aexport PYTHON=%{_bindir}/python%{pythonver}
10374N/A
10374N/A#substitute python to 2.6, CR6924142
10374N/Apyfiles="
10374N/Agiscanner/shlibs.py
10374N/Agiscanner/scannermain.py
10374N/A"
10374N/A
10374N/Afor i in $pyfiles
13389N/Ado
10374N/A sed -e s,/usr/bin/env\ python,$PYTHON, $i > $i.new
10374N/A mv $i.new $i
10139N/Adone
10139N/A
10374N/Alibtoolize --copy --force
10139N/Aaclocal $ACLOCAL_FLAGS -I m4
10139N/Aautoheader
10139N/Aautomake -a -c -f
10139N/Aautoconf
10374N/A
10374N/A./configure --prefix=%{_prefix} \
10374N/A --bindir=%{_bindir} \
10374N/A --libdir=%{_libdir} \
10139N/A --includedir=%{_includedir} \
10374N/A --sysconfdir=%{_sysconfdir} \
10374N/A --mandir=%{_mandir}
16578N/A
10374N/Agmake -j $CPU
10374N/A
10374N/A%install
10374N/Agmake install DESTDIR=$RPM_BUILD_ROOT
10374N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
10374N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
10139N/A
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.pyc" -exec rm -f {} ';'
16996N/Afind $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
16996N/A
16641N/A%clean
16641N/Arm -rf $RPM_BUILD_ROOT
16578N/A
16578N/A%post libs -p /sbin/ldconfig
16569N/A%postun libs -p /sbin/ldconfig
16569N/A
16569N/A%files
16455N/A%defattr(-,root,root)
16455N/A%doc AUTHORS ChangeLog README
16398N/A%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so.1.0.0
16398N/A%attr(755,root,root) %ghost %{_libdir}/libgirepository-everything-1.0.so.1
15823N/A%attr(755,root,root) %{_libdir}/libgirepository-1.0.so.0.0.0
15823N/A%attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.0
15823N/A%dir %{_libdir}/girepository-1.0
15748N/A%{_libdir}/girepository-1.0/*.typelib
15748N/A
15573N/A%defattr(-,root,root)
15573N/A%attr(755,root,root) %{_bindir}/g-ir-compiler
15340N/A%attr(755,root,root) %{_bindir}/g-ir-generate
15340N/A%attr(755,root,root) %{_bindir}/g-ir-scanner
15340N/A%{_mandir}/man1/g-ir-compiler.1*
15340N/A%{_mandir}/man1/g-ir-generate.1*
15291N/A%{_mandir}/man1/g-ir-scanner.1*
15291N/A%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so
13702N/A%attr(755,root,root) %{_libdir}/libgirepository-1.0.so
13702N/A%{_libdir}/pkgconfig/gobject-introspection-1.0.pc
13405N/A%{_includedir}/gobject-introspection-1.0
13405N/A%{_libdir}/libgirepository-1.0.la
13389N/A%{_libdir}/libgirepository-everything-1.0.la
13389N/A%{_datadir}/aclocal/introspection.m4
13351N/A%dir %{_datadir}/gir-1.0
13389N/A%{_datadir}/gir-1.0/*.gir
12314N/A
13389N/A%files static
12298N/A%defattr(-,root,root)
12299N/A%{_libdir}/libgirepository-1.0.a
12299N/A%{_libdir}/libgirepository-everything-1.0.a
11998N/A
11998N/A%changelog
11998N/A* Mon Feb 08 2010 - halton.huo@sun.com
11865N/A- Use python2.6 to scannermain.py and shlibs.py, fixes CR #6924142.
11865N/A- Remove .pyc and .pyo files.
11860N/A* Tue Jan 26 2010 - brian.cameron@sun.com
11861N/A- Use gmake instead of make, fixes doo bug #14155.
11861N/A* Fri Jan 08 2010 - halton.huo@sun.com
11860N/A- Add patch ginfo.diff and big-ending.diff to fix bugzilla #606180
11860N/A* Wed Dec 23 2009 - halton.huo@sun.com
10894N/A- Bump to 0.6.7
10894N/A- Add patch -glib-compilation.dif to fix bugzilla #605108.
10374N/A* Fri Dec 11 2009 - halton.huo@sun.com
10374N/A- Bump to 0.6.6. Remove upstream patch 64bit.diff.
10139N/A* Sat Sep 05 2009 - brian.cameron@sun.com
10139N/A- Bump to 0.6.5. Remove upstream patches.
10139N/A* Mon Aug 31 2009 - halton.huo@sun.com
10139N/A- Add patch -64bit to fix 64 bit issue. Bugzilla #593639.
10139N/A* Sat Aug 29 2009 - halton.huo@sun.com
10139N/A- Add patch -LD.diff to fix build issue with CBE 1.6.x.
10139N/A* Mon Aug 24 2009 - halton.huo@sun.com
10139N/A- Initial version.
10139N/A