base-specs/gir-repository.spec
author convert-repo
Tue, 28 Sep 2010 11:41:29 +0000
changeset 20122 34a34bffcb68
parent 19973 f05dadadf325
permissions -rw-r--r--
update tags
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 gir-repository
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
     3
#
19973
f05dadadf325 Fix copyright lines.
yippi
parents: 18144
diff changeset
     4
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
16339
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: 16433
diff changeset
     8
%define owner yippi
17881
1eaaaad29d9a 2010-04-20 Christian Kelly <[email protected]>
chrisk
parents: 17842
diff changeset
     9
1eaaaad29d9a 2010-04-20 Christian Kelly <[email protected]>
chrisk
parents: 17842
diff changeset
    10
%define OSR LFI#105446 (gnome Exec. summary):N/A
1eaaaad29d9a 2010-04-20 Christian Kelly <[email protected]>
chrisk
parents: 17842
diff changeset
    11
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    12
#
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    13
%{?!pythonver:%define pythonver 2.6}
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    14
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    15
Name:         gir-repository
16433
765dc2e61cbf Fix License info. This is LGPL not GPL.
yippi
parents: 16354
diff changeset
    16
License:      LGPL v2
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    17
Group:        Libraries
16519
fa398a28210e 2009-09-10 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    18
Version:      0.6.5
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    19
Release:      1
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    20
Distribution: Java Desktop System
17842
1cc615f41f16 2010-04-15 Christian Kelly <[email protected]>
chrisk
parents: 17799
diff changeset
    21
Vendor:       Gnome Community
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    22
Summary:      GObject Introspection repository
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    23
URL:          http://live.gnome.org/GObjectIntrospection
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    24
Source:       http://download.gnome.org/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
16354
845563bdb688 2009-08-25 Brian Cameron <[email protected]>
yippi
parents: 16339
diff changeset
    25
# This patch fixes gir-repository so that the GStreamer GIR files build.
845563bdb688 2009-08-25 Brian Cameron <[email protected]>
yippi
parents: 16339
diff changeset
    26
Patch1:       gir-repository-01-gst.diff
18144
e1e05806b1f1 update babl version to 0.1
davelam
parents: 17881
diff changeset
    27
# This patch fixes babl version issue so that the Babl files build.
e1e05806b1f1 update babl version to 0.1
davelam
parents: 17881
diff changeset
    28
Patch2:       gir-repository-02-babl.diff
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    29
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    30
BuildRequires:  GConf2-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    31
BuildRequires:  autoconf
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    32
BuildRequires:  automake
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    33
BuildRequires:  avahi-gobject-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    34
BuildRequires:  babl-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    35
BuildRequires:  clutter-gtk-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    36
BuildRequires:  gnome-keyring-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    37
BuildRequires:  gobject-introspection-devel >= 0.6.3
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    38
BuildRequires:  goocanvas-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    39
BuildRequires:  gssdp-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    40
BuildRequires:  gstreamer-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    41
BuildRequires:  gtk+2-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    42
BuildRequires:  gtk-webkit-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    43
BuildRequires:  gtksourceview2-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    44
BuildRequires:  gupnp-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    45
BuildRequires:  libnotify-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    46
BuildRequires:  libsoup-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    47
BuildRequires:  libtool
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    48
BuildRequires:  poppler-glib-devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    49
BuildRequires:  vte-devel
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
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    52
Introspection system for GNOME libraries; see the
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    53
gobject-introspection package.
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    54
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    55
%package devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    56
Summary:        Header files for gir-repository
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    57
Group:          Development/Libraries
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    58
Requires:       %{name}-libs = %{version}-%{release}
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    59
Requires:       glib2-devel >= 2.16.0
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    60
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    61
%description devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    62
Header files for gir-repository.
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    63
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    64
%prep
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    65
%setup -q
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    66
%patch1 -p1
18144
e1e05806b1f1 update babl version to 0.1
davelam
parents: 17881
diff changeset
    67
%patch2 -p1
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    68
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    69
#FIXME: remove uncompatible m4 files
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    70
rm -f m4/lt~obsolete.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    71
rm -f m4/ltoptions.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    72
rm -f m4/libtool.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    73
rm -f m4/ltsugar.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    74
rm -f m4/ltversion.m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    75
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    76
%build
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    77
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    78
if test "x$CPUS" = "x" -o $CPUS = 0; then
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    79
    CPUS=1
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    80
fi
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    81
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    82
export PYTHON=/usr/bin/python%{pythonver}
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    83
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    84
libtoolize --copy --force
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    85
aclocal $ACLOCAL_FLAGS -I m4
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    86
autoheader
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    87
automake -a -c -f
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    88
autoconf
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    89
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    90
./configure --prefix=%{_prefix}                     \
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    91
            --mandir=%{_mandir}
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    92
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    93
make -j$CPUS
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    94
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    95
%install
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    96
rm -rf $RPM_BUILD_ROOT
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    97
make install DESTDIR=$RPM_BUILD_ROOT
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    98
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
    99
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   100
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   101
%clean
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   102
rm -rf $RPM_BUILD_ROOT
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   103
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   104
%post   libs -p /sbin/ldconfig
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   105
%postun libs -p /sbin/ldconfig
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   106
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   107
%files
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   108
%defattr(-,root,root)
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   109
%doc AUTHORS ChangeLog NEWS README
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   110
%{_libdir}/girepository-1.0/*.typelib
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   111
%attr(755,root,root) %{_libdir}/libgirepo-Clutter-custom.so
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   112
%attr(755,root,root) %{_libdir}/libgirepo-DBus-custom.so
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   113
%attr(755,root,root) %{_libdir}/libgirepo-Gdk-custom.so
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   114
%attr(755,root,root) %{_libdir}/libgirepo-Gtk-custom.so
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   115
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   116
%files devel
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   117
%defattr(-,root,root)
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   118
%{_datadir}/gir-1.0/*.gir
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   119
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   120
%changelog
16519
fa398a28210e 2009-09-10 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   121
* Thu Sep 10 2009 - [email protected]
fa398a28210e 2009-09-10 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   122
- Bump to 0.6.5
16339
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   123
* Mon Aug 24 2009 - [email protected]
abbb0052893a 2009-08-25 Halton Huo <[email protected]>
halton
parents:
diff changeset
   124
- Initial version.