packaging: Add devel-static package 12/230512/1 accepted/tizen_6.0_base accepted/tizen_6.0_base_tool accepted/tizen_6.0_base_tool_hotfix accepted/tizen_6.5_base accepted/tizen_6.5_base_tool accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool accepted/tizen_7.0_base_tool_hotfix accepted/tizen_8.0_base accepted/tizen_base accepted/tizen_base_tool tizen_6.0_base tizen_6.0_base_hotfix tizen_6.5_base tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base tizen_base accepted/tizen/6.0/base/20201029.110834 accepted/tizen/6.0/base/20230713.142909 accepted/tizen/6.0/base/tool/20201029.112138 accepted/tizen/6.0/base/tool/hotfix/20201030.124945 accepted/tizen/6.0/base/tool/hotfix/20201102.090237 accepted/tizen/6.5/base/20230714.002533 accepted/tizen/6.5/base/tool/20211027.120204 accepted/tizen/7.0/base/20230714.002942 accepted/tizen/7.0/base/hotfix/20230714.003756 accepted/tizen/7.0/base/tool/20221028.120514 accepted/tizen/7.0/base/tool/hotfix/20221115.085000 accepted/tizen/8.0/base/20231005.044843 accepted/tizen/base/20200419.223854 accepted/tizen/base/20230714.003347 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_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.200801 submit/tizen_7.0_base/20221028.201101 submit/tizen_7.0_base_hotfix/20221115.161601 submit/tizen_base/20200416.121222 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorSlava Barinov <v.barinov@samsung.com>
Thu, 9 Apr 2020 15:39:40 +0000 (18:39 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Fri, 10 Apr 2020 07:21:28 +0000 (10:21 +0300)
Change-Id: I6d096b33dc9746345d73277af734730de441e1f9
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/libgc.spec

index f4cdcb2..23aa2e6 100644 (file)
@@ -1,3 +1,4 @@
+%define keepstatic 1
 Name:           libgc
 Version:        8.0.4
 Release:        0
@@ -16,7 +17,6 @@ deallocating memory that is no longer useful. The collector
 automatically recycles memory when it determines that it can no longer
 be otherwise accessed.
 
-
 %package devel
 Summary:        A garbage collector for C and C++
 Group:          Development/Libraries/C and C++
@@ -32,6 +32,21 @@ deallocating memory that is no longer useful. The collector
 automatically recycles memory when it determines that it can no longer
 be otherwise accessed.
 
+%package devel-static
+Summary:        A garbage collector for C and C++
+Group:          Development/Libraries/C and C++
+Provides:       gc:/usr/include/gc/gc.h
+Requires:       glibc-devel-static
+Requires:       %{name}-devel = %version
+
+%description devel-static
+The Boehm-Demers-Weiser conservative garbage collector can be used as a
+garbage collecting replacement for C malloc or C++ new. It allows you
+to allocate memory basically as you normally would, without explicitly
+deallocating memory that is no longer useful. The collector
+automatically recycles memory when it determines that it can no longer
+be otherwise accessed.
+
 %prep
 %setup -q -n %{name}-%{version}
 cp %{SOURCE1001} .
@@ -40,13 +55,14 @@ cp %{SOURCE1001} .
 # refresh auto*/libtool to purge rpaths
 rm -f libtool libtool.m4
 
-%reconfigure --disable-static \
+%reconfigure --enable-static \
     --with-pic             \
     --with-gnu-ld          \
     --enable-cplusplus     \
     --enable-large-config   \
     --enable-threads=posix  \
-    --enable-parallel-mark
+    --enable-parallel-mark  \
+    --disable-rpath
 
 %{__make} %{?_smp_mflags}
 
@@ -75,7 +91,7 @@ make check
 %_libdir/libcord.so.1*
 %_libdir/libgc*.so.1*
 
-%files -n libgc-devel
+%files devel
 %defattr(-, root, root)
 %manifest %{name}.manifest
 %_libdir/libcord.so
@@ -84,3 +100,11 @@ make check
 %_includedir/gc.h
 %_includedir/gc_cpp.h
 %_includedir/gc/
+
+%files devel-static
+%defattr(-, root, root)
+%manifest %{name}.manifest
+%_libdir/libcord.a
+%_libdir/libgc.a
+%_libdir/libgccpp.a
+%_libdir/libgctba.a