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