packaging: Add devel-static package 82/230382/2 accepted/tizen_6.0_base accepted/tizen_6.0_base_tool accepted/tizen_6.0_base_tool_hotfix tizen_6.0_base tizen_6.0_base_hotfix tizen_base_3.1 accepted/tizen/6.0/base/20201029.110649 accepted/tizen/6.0/base/20230713.142906 accepted/tizen/6.0/base/tool/20201029.112052 accepted/tizen/6.0/base/tool/hotfix/20201030.124801 accepted/tizen/6.0/base/tool/hotfix/20201102.090228 accepted/tizen/base/20200419.223856 submit/tizen_6.0_base/20201029.184801 submit/tizen_6.0_base_hotfix/20201030.192501 submit/tizen_6.0_base_hotfix/20201102.162701 submit/tizen_base/20200416.121222 tizen_6.0.m2_release
authorSlava Barinov <v.barinov@samsung.com>
Thu, 9 Apr 2020 15:52:10 +0000 (18:52 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Fri, 10 Apr 2020 07:09:16 +0000 (10:09 +0300)
Change-Id: I68381770b937380453beb930f0301043716341f6
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/libffi.spec

index 6c3c92e2619cb0adafa4d4e5b11207f78f2ad4b6..3a37a82b7ccb6e97ce68ffc68e5b4fc7f5ed6739 100644 (file)
@@ -1,3 +1,4 @@
+%define keepstatic 1
 %global multilib_arches %{ix86}  x86_64
 
 Name:           libffi
@@ -47,15 +48,21 @@ Requires:       pkgconfig
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
+%package       devel-static
+Summary:        Development files for %{name}
+Requires:       %{name}-devel = %{version}
+
+%description   devel-static
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
 %prep
 %setup -q
 
-
 %build
 export LDFLAGS+="-Wl,-z,noexecstack"
-%reconfigure --disable-static
-make %{?_smp_mflags}
-
+%reconfigure
+%{__make} %{?_smp_mflags}
 
 %install
 %make_install
@@ -97,3 +104,7 @@ install -m644 %{SOURCE2} %{buildroot}%{_includedir}/ffitarget.h
 #%{_infodir}/libffi.info.gz
 
 %changelog
+
+%files devel-static
+%defattr(-,root,root,-)
+%{_libdir}/*.a