Accepting request 538326 from home:pluskalm:branches:GNOME:Factory

- Switch to python3
- Cleanup with spec-cleaner
- Run tests during build

OBS-URL: https://build.opensuse.org/request/show/538326
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=179
This commit is contained in:
Dominique Leuenberger 2017-11-02 15:07:28 +00:00 committed by Git OBS Bridge
parent 3033f476e1
commit 59a76a43b1
2 changed files with 18 additions and 12 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 2 09:23:23 UTC 2017 - mpluskal@suse.com
- Switch to python3
- Cleanup with spec-cleaner
- Run tests during build
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 4 00:15:15 UTC 2017 - luc14n0@linuxmail.org Wed Oct 4 00:15:15 UTC 2017 - luc14n0@linuxmail.org

View File

@ -38,9 +38,9 @@ BuildRequires: flex
BuildRequires: gtk-doc BuildRequires: gtk-doc
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-Mako BuildRequires: python3-Mako
BuildRequires: python-devel >= 2.7 BuildRequires: python3-devel
BuildRequires: python-xml BuildRequires: python3-xml
BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(cairo-gobject) BuildRequires: pkgconfig(cairo-gobject)
BuildRequires: pkgconfig(glib-2.0) >= 2.54.0 BuildRequires: pkgconfig(glib-2.0) >= 2.54.0
@ -50,7 +50,7 @@ Requires: file
Requires: libgirepository-1_0-1 = %{version} Requires: libgirepository-1_0-1 = %{version}
# gi-find-deps uses the enhanced grep variant in order to do multi-line matching (for pkg.requires(..)) # gi-find-deps uses the enhanced grep variant in order to do multi-line matching (for pkg.requires(..))
Requires: pcre-tools Requires: pcre-tools
Requires: python-xml Requires: python3-xml
%description %description
The goal of the project is to describe the APIs and collect them in The goal of the project is to describe the APIs and collect them in
@ -95,10 +95,11 @@ a uniform, machine readable format.
%setup -q %setup -q
%build %build
export PYTHON="python3"
%configure \ %configure \
--enable-gtk-doc \ --enable-gtk-doc \
--disable-static \ --disable-static \
--enable-doctool --enable-doctool
make %{?_smp_mflags} V=1 make %{?_smp_mflags} V=1
%install %install
@ -111,12 +112,13 @@ ls %{buildroot}%{_libdir}/girepository-1.0/*.typelib | sh %{SOURCE1} -P > gobjec
diff -s %{SOURCE3} gobject-introspection-typelib.installed diff -s %{SOURCE3} gobject-introspection-typelib.installed
%fdupes %{buildroot} %fdupes %{buildroot}
%post -n libgirepository-1_0-1 -p /sbin/ldconfig %check
make %{?_smp_mflags} check
%post -n libgirepository-1_0-1 -p /sbin/ldconfig
%postun -n libgirepository-1_0-1 -p /sbin/ldconfig %postun -n libgirepository-1_0-1 -p /sbin/ldconfig
%files %files
%defattr(-,root,root)
%doc AUTHORS CONTRIBUTORS COPYING COPYING.GPL NEWS README TODO %doc AUTHORS CONTRIBUTORS COPYING COPYING.GPL NEWS README TODO
%{_bindir}/g-ir-annotation-tool %{_bindir}/g-ir-annotation-tool
%{_bindir}/g-ir-compiler %{_bindir}/g-ir-compiler
@ -145,7 +147,6 @@ diff -s %{SOURCE3} gobject-introspection-typelib.installed
%{_rpmconfigdir}/fileattrs/gobjectintrospection.attr %{_rpmconfigdir}/fileattrs/gobjectintrospection.attr
%files -n libgirepository-1_0-1 %files -n libgirepository-1_0-1
%defattr(-,root,root)
%doc COPYING.LGPL %doc COPYING.LGPL
# We own this directory here instead of devel to make sure other packages do # We own this directory here instead of devel to make sure other packages do
# not have to own it # not have to own it
@ -154,11 +155,9 @@ diff -s %{SOURCE3} gobject-introspection-typelib.installed
%dir %{_libdir}/girepository-1.0 %dir %{_libdir}/girepository-1.0
%files -n girepository-1_0 %files -n girepository-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/*.typelib %{_libdir}/girepository-1.0/*.typelib
%files devel %files devel
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/gi/ %doc %{_datadir}/gtk-doc/html/gi/
%{_includedir}/gobject-introspection-1.0/ %{_includedir}/gobject-introspection-1.0/
%{_libdir}/libgirepository-1.0.so %{_libdir}/libgirepository-1.0.so