2009-07-04 10:21:10 +02:00
|
|
|
#
|
2011-04-22 13:36:48 +02:00
|
|
|
# spec file for package gobject-introspection
|
2009-07-04 10:21:10 +02:00
|
|
|
#
|
2014-04-03 22:45:13 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-07-04 10:21:10 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-11 18:45:31 +01:00
|
|
|
|
2009-07-04 10:21:10 +02:00
|
|
|
Name: gobject-introspection
|
2014-04-03 22:45:13 +02:00
|
|
|
Version: 1.40.0
|
2011-12-21 05:15:50 +01:00
|
|
|
Release: 0
|
Accepting request 158549 from GNOME:Next
- Simplify gi-find-deps.sh to make it easier to add other 64bit
architectures. Include aarch64 in the list.
- Update to version 1.35.8:
+ Bugs fixed: bgo#660698, bgo#687522, bgo#691873, bgo#692084,
bgo#693040, bgo#693096, bgo#693097, bgo#693098, bgo#693598,
bgo#693742, bgo#693838, bgo#693876, bgo#693939.
- Update to version 1.35.4:
+ Update glib annotations.
+ Various mallardwriter improvements and fixes
+ Bugs fixed: bgo#690514, bgo#686388, bgo#656312, bgo#691030,
bgo#690850, bgo#690851, bgo#691524, bgo#678401, bgo#684059,
bgo#682355.
- Eliminate lines which contain "from gi.repository import Foo"
(incl. quotes) as possible matches... this phrase is commonly
used in multiline documentation blobs (like for example in
python-gobject >= 3.7.3).
- Modify gi-find-deps.sh: in case of python scripts, do not add
python-gobject Requires: we do not know if the scripts is meant
for python3, which would require python3-gobject.
- Update to version 1.35.3:
+ scanner: Deprecate using identifier prefixes in GINames.
+ giscanner: Don't prefer identifier prefixes over namespaces in
deps.
+ Build system enhancements / fixes.
+ Update glib annotations.
OBS-URL: https://build.opensuse.org/request/show/158549
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=116
2013-03-13 23:42:28 +01:00
|
|
|
# FIXME: Find a way to identify if we need python3-gobject or python-gobject from gi-find-deps.sh.
|
2010-09-18 15:19:53 +02:00
|
|
|
# FIXME: when bgo#629930 gets fixed, move the appropriate pkg-config files to the main package and rename the devel package to libgirepository-devel
|
|
|
|
Summary: GObject Introspection Tools
|
2012-06-06 17:42:38 +02:00
|
|
|
License: LGPL-2.1+ and GPL-2.0+
|
2010-09-18 15:19:53 +02:00
|
|
|
Group: Development/Libraries/GNOME
|
2011-12-21 05:15:50 +01:00
|
|
|
Url: http://live.gnome.org/GObjectIntrospection
|
2014-04-03 22:45:13 +02:00
|
|
|
Source0: http://download.gnome.org/sources/gobject-introspection/1.40/%{name}-%{version}.tar.xz
|
2011-04-27 16:49:19 +02:00
|
|
|
# gi-find-deps.sh is a rpm helper for Provides and Requires. Script creates typelib()-style Provides/Requires.
|
2011-04-27 16:45:13 +02:00
|
|
|
Source1: gi-find-deps.sh
|
2011-05-27 10:44:43 +02:00
|
|
|
Source2: gobjectintrospection.attr
|
2011-05-31 10:01:33 +02:00
|
|
|
Source3: gobject-introspection-typelib.template
|
2011-04-27 16:45:13 +02:00
|
|
|
Source99: %{name}-rpmlintrc
|
2011-12-12 16:44:10 +01:00
|
|
|
# PATCH-FIX-UPSTREAM g-ir-dep-tool.patch bgo#665672 dimstar@opensuse.org -- Add g-ir-dep-tool to get further automatic dependencies.
|
|
|
|
Patch0: g-ir-dep-tool.patch
|
2009-07-04 10:21:10 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
Accepting request 158549 from GNOME:Next
- Simplify gi-find-deps.sh to make it easier to add other 64bit
architectures. Include aarch64 in the list.
- Update to version 1.35.8:
+ Bugs fixed: bgo#660698, bgo#687522, bgo#691873, bgo#692084,
bgo#693040, bgo#693096, bgo#693097, bgo#693098, bgo#693598,
bgo#693742, bgo#693838, bgo#693876, bgo#693939.
- Update to version 1.35.4:
+ Update glib annotations.
+ Various mallardwriter improvements and fixes
+ Bugs fixed: bgo#690514, bgo#686388, bgo#656312, bgo#691030,
bgo#690850, bgo#690851, bgo#691524, bgo#678401, bgo#684059,
bgo#682355.
- Eliminate lines which contain "from gi.repository import Foo"
(incl. quotes) as possible matches... this phrase is commonly
used in multiline documentation blobs (like for example in
python-gobject >= 3.7.3).
- Modify gi-find-deps.sh: in case of python scripts, do not add
python-gobject Requires: we do not know if the scripts is meant
for python3, which would require python3-gobject.
- Update to version 1.35.3:
+ scanner: Deprecate using identifier prefixes in GINames.
+ giscanner: Don't prefer identifier prefixes over namespaces in
deps.
+ Build system enhancements / fixes.
+ Update glib annotations.
OBS-URL: https://build.opensuse.org/request/show/158549
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=116
2013-03-13 23:42:28 +01:00
|
|
|
BuildRequires: gtk-doc
|
2009-07-04 10:21:10 +02:00
|
|
|
BuildRequires: libffi-devel
|
2011-12-12 16:46:25 +01:00
|
|
|
# needed for patch0
|
2011-12-12 16:44:10 +01:00
|
|
|
BuildRequires: libtool
|
2014-04-03 22:45:13 +02:00
|
|
|
BuildRequires: python-Mako
|
2009-07-04 10:21:10 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-xml
|
2010-08-09 16:39:08 +02:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
2012-09-07 17:51:51 +02:00
|
|
|
BuildRequires: pkgconfig(cairo-gobject)
|
2013-03-26 21:13:04 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.36.0
|
2010-08-09 16:39:08 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
2012-11-14 16:43:43 +01:00
|
|
|
# gi-find-deps makes use of 'file' to identify the types.
|
|
|
|
Requires: file
|
2010-08-09 16:39:08 +02:00
|
|
|
Requires: libgirepository-1_0-1 = %{version}
|
2013-08-13 14:41:22 +02:00
|
|
|
# gi-find-deps uses the enhanced grep variant in order to do multi-line matching (for pkg.requires(..))
|
|
|
|
Requires: pcre-tools
|
2009-09-05 01:01:23 +02:00
|
|
|
Requires: python-xml
|
2009-07-04 10:21:10 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The goal of the project is to describe the APIs and collect them in
|
|
|
|
a uniform, machine readable format.
|
|
|
|
|
2010-08-09 16:39:08 +02:00
|
|
|
%package -n libgirepository-1_0-1
|
2009-07-04 10:21:10 +02:00
|
|
|
Summary: GObject Introspection Library
|
2012-06-06 17:42:38 +02:00
|
|
|
License: LGPL-2.1+
|
2012-05-23 16:23:03 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: girepository-1_0 >= %{version}
|
|
|
|
|
|
|
|
%description -n libgirepository-1_0-1
|
|
|
|
The goal of the project is to describe the APIs and collect them in
|
|
|
|
a uniform, machine readable format.
|
|
|
|
|
|
|
|
%package -n girepository-1_0
|
2012-05-23 16:27:32 +02:00
|
|
|
Summary: Base GObject Introspection Bindings
|
2012-06-06 17:42:38 +02:00
|
|
|
License: LGPL-2.1+
|
2012-05-23 16:23:03 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: libgirepository-1_0-1 >= %{version}
|
2011-05-31 10:01:33 +02:00
|
|
|
# Provide typelib() symbols based on gobject-introspection-typelib.template
|
2011-05-27 12:41:06 +02:00
|
|
|
# The template is checked during install if it matches the installed *.typelib files.
|
2011-05-31 10:01:33 +02:00
|
|
|
%(cat %{S:3} | awk '{ print "Provides: " $0}')
|
2009-07-04 10:21:10 +02:00
|
|
|
|
2012-05-23 16:23:03 +02:00
|
|
|
%description -n girepository-1_0
|
2009-07-04 10:21:10 +02:00
|
|
|
The goal of the project is to describe the APIs and collect them in
|
|
|
|
a uniform, machine readable format.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: GObject Introspection Development Files
|
2012-06-06 17:42:38 +02:00
|
|
|
License: LGPL-2.1+
|
2012-01-18 20:59:22 +01:00
|
|
|
Group: Development/Libraries/GNOME
|
2009-07-04 10:21:10 +02:00
|
|
|
# Note: the devel package requires the binaries, not just the library
|
|
|
|
Requires: %{name} = %{version}
|
2010-02-19 16:30:47 +01:00
|
|
|
Requires: libffi-devel
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The goal of the project is to describe the APIs and collect them in
|
|
|
|
a uniform, machine readable format.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-12-12 16:44:10 +01:00
|
|
|
%patch0 -p1
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%build
|
2011-12-21 05:15:50 +01:00
|
|
|
# needed for patch0
|
2011-12-12 16:44:10 +01:00
|
|
|
autoreconf -fi
|
2009-07-04 10:21:10 +02:00
|
|
|
%configure \
|
2011-04-22 13:36:48 +02:00
|
|
|
--enable-gtk-doc \
|
2014-04-03 22:45:13 +02:00
|
|
|
--disable-static \
|
|
|
|
--enable-doctool
|
2011-05-27 12:41:06 +02:00
|
|
|
%__make %{?_smp_mflags} V=1
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-05-27 10:40:53 +02:00
|
|
|
install -D %{S:1} %{buildroot}%{_rpmconfigdir}/gi-find-deps.sh
|
|
|
|
install -D %{S:2} -m 0644 %{buildroot}%{_rpmconfigdir}/fileattrs/gobjectintrospection.attr
|
2011-05-27 12:41:06 +02:00
|
|
|
# comparing, if we provide all the symbols expected.
|
|
|
|
ls %{buildroot}%{_libdir}/girepository-1.0/*.typelib | sh %{S:1} -P > gobject-introspection-typelib.installed
|
|
|
|
diff -s %{S:3} gobject-introspection-typelib.installed
|
2009-07-04 10:21:10 +02:00
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-08-09 16:39:08 +02:00
|
|
|
%post -n libgirepository-1_0-1 -p /sbin/ldconfig
|
2009-07-04 10:21:10 +02:00
|
|
|
|
2010-08-09 16:39:08 +02:00
|
|
|
%postun -n libgirepository-1_0-1 -p /sbin/ldconfig
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-09-18 15:19:53 +02:00
|
|
|
%doc AUTHORS CONTRIBUTORS COPYING COPYING.GPL NEWS README TODO
|
2010-10-15 12:39:41 +02:00
|
|
|
%{_bindir}/g-ir-annotation-tool
|
2010-09-18 15:19:53 +02:00
|
|
|
%{_bindir}/g-ir-compiler
|
2011-12-12 16:44:10 +01:00
|
|
|
%{_bindir}/g-ir-dep-tool
|
2014-04-03 22:45:13 +02:00
|
|
|
%{_bindir}/g-ir-doc-tool
|
2010-09-18 15:19:53 +02:00
|
|
|
%{_bindir}/g-ir-generate
|
|
|
|
%{_bindir}/g-ir-scanner
|
|
|
|
%doc %{_mandir}/man1/g-ir-compiler.1*
|
|
|
|
%doc %{_mandir}/man1/g-ir-generate.1*
|
|
|
|
%doc %{_mandir}/man1/g-ir-scanner.1*
|
|
|
|
%{_datadir}/aclocal/introspection.m4
|
|
|
|
%{_datadir}/gir-1.0/*.gir
|
2010-11-01 16:38:47 +01:00
|
|
|
# We don't include directly %%{_libdir}/gobject-introspection since there might
|
2009-07-04 10:21:10 +02:00
|
|
|
# be files there in the future that belong to the library package
|
|
|
|
%dir %{_libdir}/gobject-introspection
|
2010-09-18 15:19:53 +02:00
|
|
|
%{_libdir}/gobject-introspection/giscanner/
|
|
|
|
# We explicitly list the content of the directory that is of interest to us,
|
|
|
|
# since there might be files there in the future that belong to the library
|
|
|
|
# package
|
|
|
|
%dir %{_datadir}/gobject-introspection-1.0
|
|
|
|
%{_datadir}/gobject-introspection-1.0/Makefile.introspection
|
|
|
|
%{_datadir}/gobject-introspection-1.0/tests/
|
2010-10-15 12:39:41 +02:00
|
|
|
%{_datadir}/gobject-introspection-1.0/gdump.c
|
2011-05-27 10:40:53 +02:00
|
|
|
%{_rpmconfigdir}/gi-find-deps.sh
|
2011-09-06 21:51:14 +02:00
|
|
|
%if 0%{suse_version} <= 1140
|
|
|
|
# This was not in old versions of rpm
|
2011-09-06 21:49:35 +02:00
|
|
|
%dir %{_rpmconfigdir}/fileattrs
|
|
|
|
%endif
|
2011-05-27 10:40:53 +02:00
|
|
|
%{_rpmconfigdir}/fileattrs/gobjectintrospection.attr
|
2009-07-04 10:21:10 +02:00
|
|
|
|
2010-08-09 16:39:08 +02:00
|
|
|
%files -n libgirepository-1_0-1
|
2009-07-04 10:21:10 +02:00
|
|
|
%defattr(-,root,root)
|
2010-09-18 15:19:53 +02:00
|
|
|
%doc COPYING.LGPL
|
|
|
|
# We own this directory here instead of devel to make sure other packages do
|
|
|
|
# not have to own it
|
|
|
|
%dir %{_datadir}/gir-1.0
|
|
|
|
%{_libdir}/libgirepository-1.0.so.*
|
2012-05-23 16:23:03 +02:00
|
|
|
%dir %{_libdir}/girepository-1.0
|
|
|
|
|
|
|
|
%files -n girepository-1_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/girepository-1.0/*.typelib
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2010-10-15 12:39:41 +02:00
|
|
|
%doc %{_datadir}/gtk-doc/html/gi/
|
2010-08-09 16:39:08 +02:00
|
|
|
%{_includedir}/gobject-introspection-1.0/
|
2010-09-18 15:19:53 +02:00
|
|
|
%{_libdir}/libgirepository-1.0.so
|
|
|
|
# FIXME: those two files should be moved to the main package when bgo#629930 gets fixed
|
|
|
|
%{_libdir}/pkgconfig/gobject-introspection-1.0.pc
|
|
|
|
%{_libdir}/pkgconfig/gobject-introspection-no-export-1.0.pc
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%changelog
|