base-specs/gobject-introspection.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 16424 5252dcba3f38
child 16439 66c528eeee1d
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     1
#
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     2
# spec file for package gobject-introspection
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     3
#
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     4
# Copyright 2009 Sun Microsystems, Inc.
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     6
# package are under the same license as the package itself.
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16424
diff changeset
     8
%define owner yippi
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     9
#
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    10
%{?!pythonver:%define pythonver 2.6}
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    11
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    12
Name:         gobject-introspection
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    13
License:      LGPL v2+ (giscanner) and GPL v2+ (tools)
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    14
Group:        Libraries
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    15
Version:      0.6.4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    16
Release:      1
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    17
Distribution: Java Desktop System
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    18
Vendor:       Sun Microsystems, Inc.
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    19
Summary:      Introspection for GObject libraries
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    20
URL:          http://live.gnome.org/GObjectIntrospection
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    21
Source:       http://download.gnome.org/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
16411
8be1d5b39cf4 2009-08-29 Halton Huo <[email protected]>
halton
parents: 16339
diff changeset
    22
#owner:halton date:2009-08-25 type:bug bugzilla:592968 status:upstreamed
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    23
Patch1:       gobject-introspection-01-libtool.diff
16411
8be1d5b39cf4 2009-08-29 Halton Huo <[email protected]>
halton
parents: 16339
diff changeset
    24
# This patch is only need with CBE 1.6.x.
8be1d5b39cf4 2009-08-29 Halton Huo <[email protected]>
halton
parents: 16339
diff changeset
    25
# CBE 1.6.x set LD, while CBE 1.7 does not.
8be1d5b39cf4 2009-08-29 Halton Huo <[email protected]>
halton
parents: 16339
diff changeset
    26
# When LD is set, the dumper will crash
16420
911c5deb268b 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16411
diff changeset
    27
#owner:halton date:2009-08-29 type:bug bugzilla:593599
16411
8be1d5b39cf4 2009-08-29 Halton Huo <[email protected]>
halton
parents: 16339
diff changeset
    28
Patch2:       gobject-introspection-02-LD.diff
16424
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    29
#owner:halton date:2009-08-31 type:bug bugzilla:593639
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    30
Patch3:       gobject-introspection-03-64bit.diff
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    31
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    32
BuildRequires:  autoconf >= 2.59
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    33
BuildRequires:  automake >= 1:1.8
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    34
BuildRequires:  bison
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    35
BuildRequires:  glib2-devel >= 1:2.16.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    36
BuildRequires:  libffi-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    37
BuildRequires:  libtool
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    38
BuildRequires:  pkgconfig
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    39
BuildRequires:  python >= 1:2.5
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    40
BuildRequires:  python-devel >= 1:2.5
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    41
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    42
%description
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    43
Tools for introspecting GObject-based frameworks.
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    44
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    45
%package devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    46
Summary:        Header files for gobject-introspection
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    47
Group:          Development/Libraries
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    48
Requires:       %{name}-libs = %{version}-%{release}
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    49
Requires:       glib2-devel >= 2.16.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    50
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    51
%description devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    52
Header files for gobject-introspection.
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    53
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    54
%package static
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    55
Summary:        Static gobject-introspection library
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    56
Group:          Development/Libraries
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    57
Requires:       %{name}-devel = %{version}-%{release}
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    58
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    59
%description static
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    60
Static gobject-introspection library.
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    61
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    62
%prep
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    63
%setup -q
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    64
%patch1 -p1
16411
8be1d5b39cf4 2009-08-29 Halton Huo <[email protected]>
halton
parents: 16339
diff changeset
    65
%patch2 -p1
16424
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    66
%patch3 -p1
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    67
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    68
#FIXME: When #590802 fixed in next release, remove following lines 
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    69
rm -f m4/lt~obsolete.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    70
rm -f m4/ltoptions.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    71
rm -f m4/libtool.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    72
rm -f m4/ltsugar.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    73
rm -f m4/ltversion.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    74
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    75
%build
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    76
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    77
if test "x$CPUS" = "x" -o $CPUS = 0; then
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    78
    CPUS=1
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    79
fi
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    80
16424
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    81
export PYTHON=%{_bindir}/python%{pythonver}
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    82
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    83
libtoolize --copy --force
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    84
aclocal $ACLOCAL_FLAGS -I m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    85
autoheader
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    86
automake -a -c -f
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    87
autoconf
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    88
16424
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    89
./configure --prefix=%{_prefix}         \
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    90
            --bindir=%{_bindir}         \
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    91
            --libdir=%{_libdir}         \
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    92
            --includedir=%{_includedir} \
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    93
            --sysconfdir=%{_sysconfdir} \
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    94
            --mandir=%{_mandir}
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    95
16424
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
    96
make -j $CPU
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    97
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    98
%install
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    99
make install DESTDIR=$RPM_BUILD_ROOT
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   100
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   101
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   102
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   103
%clean
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   104
rm -rf $RPM_BUILD_ROOT
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   105
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   106
%post   libs -p /sbin/ldconfig
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   107
%postun libs -p /sbin/ldconfig
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   108
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   109
%files
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   110
%defattr(-,root,root)
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   111
%doc AUTHORS ChangeLog README
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   112
%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so.1.0.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   113
%attr(755,root,root) %ghost %{_libdir}/libgirepository-everything-1.0.so.1
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   114
%attr(755,root,root) %{_libdir}/libgirepository-1.0.so.0.0.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   115
%attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   116
%dir %{_libdir}/girepository-1.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   117
%{_libdir}/girepository-1.0/*.typelib
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   118
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   119
%defattr(-,root,root)
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   120
%attr(755,root,root) %{_bindir}/g-ir-compiler
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   121
%attr(755,root,root) %{_bindir}/g-ir-generate
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   122
%attr(755,root,root) %{_bindir}/g-ir-scanner
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   123
%{_mandir}/man1/g-ir-compiler.1*
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   124
%{_mandir}/man1/g-ir-generate.1*
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   125
%{_mandir}/man1/g-ir-scanner.1*
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   126
%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   127
%attr(755,root,root) %{_libdir}/libgirepository-1.0.so
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   128
%{_libdir}/pkgconfig/gobject-introspection-1.0.pc
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   129
%{_includedir}/gobject-introspection-1.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   130
%{_libdir}/libgirepository-1.0.la
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   131
%{_libdir}/libgirepository-everything-1.0.la
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   132
%{_datadir}/aclocal/introspection.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   133
%dir %{_datadir}/gir-1.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   134
%{_datadir}/gir-1.0/*.gir
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   135
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   136
%files static
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   137
%defattr(-,root,root)
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   138
%{_libdir}/libgirepository-1.0.a
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   139
%{_libdir}/libgirepository-everything-1.0.a
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   140
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   141
%changelog
16424
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
   142
* Mon Aug 31 2009 - [email protected]
5252dcba3f38 2009-08-31 Halton Huo <[email protected]>
halton
parents: 16420
diff changeset
   143
- Add patch -64bit to fix 64 bit issue. Bugzilla #593639.
16411
8be1d5b39cf4 2009-08-29 Halton Huo <[email protected]>
halton
parents: 16339
diff changeset
   144
* Sat Aug 29 2009 - [email protected]
8be1d5b39cf4 2009-08-29 Halton Huo <[email protected]>
halton
parents: 16339
diff changeset
   145
- Add patch -LD.diff to fix build issue with CBE 1.6.x
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   146
* Mon Aug 24 2009 - [email protected]
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   147
- Initial version.