summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2020-04-09 18:39:40 +0300
committerSlava Barinov <v.barinov@samsung.com>2020-04-10 10:21:28 +0300
commitd44df235f5dd0f628ea70cf0d915797da7a30bab (patch)
tree3c88c72e9b4b179537843694965a3e9d4a44f8b2
parent1b0f56377f2e1469e9308bc9d55d06b9c9e6a354 (diff)
downloadlibgc-accepted/tizen_6.5_base.tar.gz
libgc-accepted/tizen_6.5_base.tar.bz2
libgc-accepted/tizen_6.5_base.zip
Change-Id: I6d096b33dc9746345d73277af734730de441e1f9 Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r--packaging/libgc.spec32
1 files changed, 28 insertions, 4 deletions
diff --git a/packaging/libgc.spec b/packaging/libgc.spec
index f4cdcb21..23aa2e61 100644
--- a/packaging/libgc.spec
+++ b/packaging/libgc.spec
@@ -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