packaging: Turn on arm build 71/230971/1 accepted/tizen/base/20200419.223847 submit/tizen_base/20200416.121222
authorSlava Barinov <v.barinov@samsung.com>
Wed, 15 Apr 2020 12:59:43 +0000 (15:59 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Thu, 16 Apr 2020 08:32:29 +0000 (11:32 +0300)
Change-Id: I0b5e2c5c166b6cf825a8496e76133ca8b93df631
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/autogen.spec

index 912001e20f0a1e0610fbd77517bf284da023949e..938c073063061c8524733d535cc50bd092a50127 100644 (file)
@@ -2,7 +2,8 @@ Name:           autogen
 BuildRequires:  xz
 BuildRequires:  m4 >= 1.4.6
 BuildRequires:  guile guile-devel libguile guile-modules gmp-devel
-BuildRequires:  libgc-devel libffi-devel
+BuildRequires:  libgc-devel-static libffi-devel-static
+BuildRequires:  libunistring-devel-static
 Url:            http://www.gnu.org/software/autogen
 Requires:       m4 >= 1.4.6
 Requires:       perl >= 5.6
@@ -14,7 +15,6 @@ License:        GPL-3.0+
 Group:          Development/Tools/Building
 Source:         %{name}-%{version}.tar.gz
 Source1001:    %{name}.manifest
-ExcludeArch:    %arm aarch64
 
 %description
 AutoGen is a tool designed to simplify the creation and maintenance of programs that contain large amounts of repetitious text. It is especially valuable in programs that have several blocks of text that must be kept synchronized.
@@ -28,13 +28,20 @@ A common example where this would be useful is in creating and maintaining the c
 cp %{SOURCE1001} .
 
 %build
-CFLAGS='-Wno-error=format-truncation' \
-%reconfigure --disable-dependency-tracking LDFLAGS="-lgmp"
+export PKG_CONFIG="pkg-config --static"
+export GUILE_LINK=$(guile-config link --static | sed -e 's|[[:space:]][^[:space:]]\+libunistring.so[^[:space:]]*[[:space:]]| -lunistring |')
+
+%reconfigure --disable-dependency-tracking \
+            --enable-static --disable-shared \
+            GUILE_LIBS="-Wl,--whole-archive -Wl,--allow-multiple-definition ${GUILE_LINK} -Wl,--no-whole-archive" \
+            CFLAGS="-Wno-error=format-overflow"
 %{__make} %{?_smp_mflags} V=1
 
 %check
-trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
-make check
+%{?run_tests:
+  trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
+  %{__make} check
+}
 
 %install
 %{?make_install} %{!?make_install:%{__make} install DESTDIR=%{buildroot}}
@@ -49,7 +56,7 @@ make check
 %{_prefix}/bin/*
 %{_prefix}/share/%{name}
 %{_includedir}/autoopts/*
-%{_libdir}/libopts*
+%{_libdir}/*
 %{_datadir}/aclocal/autoopts.m4
 %{_libdir}/pkgconfig/autoopts.pc
 %{_libdir}/autogen/tpl-config.tlib