]>
Commit | Line | Data |
---|---|---|
6ba38cbe | 1 | Summary: The Boehm-Demers-Weiser conservative garbage collector |
e39c40fb | 2 | Summary(pl.UTF-8): Konserwatywny odśmiecacz pamięci Boehma-Demersa-Weisera |
79cafb95 | 3 | Name: gc |
c5fbd75d | 4 | Version: 7.6.0 |
110ceb6e | 5 | Release: 1 |
aeefcfe2 | 6 | License: BSD-like |
65885941 | 7 | Group: Libraries |
110ceb6e | 8 | Source0: http://www.hboehm.info/gc/gc_source/%{name}-%{version}.tar.gz |
c5fbd75d | 9 | # Source0-md5: bf46ccbdaccfa3186c2ab87191c8855a |
110ceb6e | 10 | URL: http://www.hboehm.info/gc/ |
307dc550 | 11 | BuildRequires: autoconf >= 2.64 |
fba7476c | 12 | BuildRequires: automake |
c5fbd75d | 13 | BuildRequires: libatomic_ops-devel >= 7.4.4 |
307dc550 | 14 | BuildRequires: libstdc++-devel |
d1890de1 | 15 | BuildRequires: libtool >= 2:2 |
c5fbd75d | 16 | Requires: libatomic_ops >= 7.4.4 |
79cafb95 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | Gc is a conservative garbage collector for C and C++. It is used as a | |
21 | replacement for standard malloc() and free(). GC_malloc will attempt | |
22 | to reclaim inaccessible space automatically by invoking a conservative | |
23 | garbage collector at appropriate points. | |
24 | ||
9973a288 JR |
25 | %description -l pl.UTF-8 |
26 | Gc jest konserwatywnym odśmiecaczem pamięci dla C i C++. Jest używany | |
79cafb95 | 27 | jako zamiennik dla standardowych funkcji malloc() i free(). GC_malloc |
9973a288 JR |
28 | próbuje odzyskać niedostępna pamięć automatycznie przez wywoływanie |
29 | konserwatywnego odśmiecacza pamięci w odpowiednich miejscach. | |
79cafb95 | 30 | |
31 | %package devel | |
32 | Summary: Headers for conservative garbage collector | |
e39c40fb | 33 | Summary(pl.UTF-8): Nagłówki dla konserwatywnego odśmiecacza pamięci |
79cafb95 | 34 | Group: Development/Libraries |
a58a5390 | 35 | Requires: %{name} = %{version}-%{release} |
c5fbd75d | 36 | Requires: libatomic_ops-devel >= 7.4.4 |
79cafb95 | 37 | |
38 | %description devel | |
39 | Headers for conservative garbage collector | |
40 | ||
9973a288 JR |
41 | %description devel -l pl.UTF-8 |
42 | Nagłówki dla konserwatywnego odśmiecacza pamięci | |
79cafb95 | 43 | |
44 | %package static | |
45 | Summary: Static version of gc library | |
e39c40fb | 46 | Summary(pl.UTF-8): Statyczna wersja biblioteki gc |
79cafb95 | 47 | Group: Development/Libraries |
a58a5390 | 48 | Requires: %{name}-devel = %{version}-%{release} |
79cafb95 | 49 | |
50 | %description static | |
51 | Static version of gc library | |
52 | ||
9973a288 | 53 | %description static -l pl.UTF-8 |
79cafb95 | 54 | Statyczna wersja biblioteki gc |
55 | ||
307dc550 JB |
56 | %package c++ |
57 | Summary: C++ interface to GC library | |
58 | Summary(pl.UTF-8): Interfejs C++ do biblioteki GC | |
59 | Group: Libraries | |
60 | Requires: %{name} = %{version}-%{release} | |
61 | ||
62 | %description c++ | |
63 | C++ interface to GC library. | |
64 | ||
65 | %description c++ -l pl.UTF-8 | |
66 | Interfejs C++ do biblioteki GC. | |
67 | ||
68 | %package c++-devel | |
69 | Summary: Header files for C++ interface for GC library | |
70 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu C++ do biblioteki GC | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-c++ = %{version}-%{release} | |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | Requires: libstdc++-devel | |
75 | ||
76 | %description c++-devel | |
77 | Header files for C++ interface for GC library. | |
78 | ||
79 | %description c++-devel -l pl.UTF-8 | |
80 | Pliki nagłówkowe interfejsu C++ do biblioteki GC. | |
81 | ||
82 | %package c++-static | |
83 | Summary: C++ interface to GC library - static library | |
84 | Summary(pl.UTF-8): Interfejs C++ do biblioteki GC - biblioteka statyczna | |
85 | Group: Development/Libraries | |
86 | Requires: %{name}-c++-devel = %{version}-%{release} | |
87 | ||
88 | %description c++-static | |
89 | C++ interface to GC library - static library. | |
90 | ||
91 | %description c++-static -l pl.UTF-8 | |
92 | Interfejs C++ do biblioteki GC - biblioteka statyczna. | |
93 | ||
79cafb95 | 94 | %prep |
d1890de1 | 95 | %setup -q |
04f426f7 | 96 | |
307dc550 | 97 | # don't install docs to %{_datadir}/%{name} |
b358d50a | 98 | %{__perl} -pi -e 's/^dist_pkgdata_DATA/EXTRA_DIST/' doc/doc.am |
65885941 | 99 | |
79cafb95 | 100 | %build |
cae00516 | 101 | %{__libtoolize} |
102 | %{__aclocal} | |
103 | %{__autoconf} | |
104 | %{__automake} | |
105 | %configure \ | |
83d01dce | 106 | %ifnarch sparc64 |
d1890de1 | 107 | CPPFLAGS="%{rpmcppflags} -DUSE_LIBC_PRIVATES" \ |
83d01dce | 108 | %endif |
307dc550 | 109 | --enable-cplusplus \ |
d1890de1 JB |
110 | --enable-threads=posix \ |
111 | --with-libatomic-ops | |
79cafb95 | 112 | %{__make} |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
73312b54 | 117 | %{__make} install \ |
118 | DESTDIR=$RPM_BUILD_ROOT | |
1ae6cb20 | 119 | |
53ca00b4 | 120 | install -d $RPM_BUILD_ROOT%{_includedir}/gc/private |
073f1086 | 121 | install -D -p doc/gc.man $RPM_BUILD_ROOT%{_mandir}/man3/gc.3 |
b358d50a | 122 | # are these still needed? (what is ecls?) |
073f1086 | 123 | cp -a include/private/* $RPM_BUILD_ROOT%{_includedir}/gc/private |
79cafb95 | 124 | |
79cafb95 | 125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
04f426f7 JB |
128 | %post -p /sbin/ldconfig |
129 | %postun -p /sbin/ldconfig | |
130 | ||
307dc550 JB |
131 | %post c++ -p /sbin/ldconfig |
132 | %postun c++ -p /sbin/ldconfig | |
133 | ||
79cafb95 | 134 | %files |
135 | %defattr(644,root,root,755) | |
d1890de1 | 136 | %doc AUTHORS ChangeLog README.QUICK README.md doc/README.{cords,environment,linux,macros} |
b358d50a | 137 | %attr(755,root,root) %{_libdir}/libcord.so.*.*.* |
b358d50a | 138 | %attr(755,root,root) %ghost %{_libdir}/libcord.so.1 |
f646219b | 139 | %attr(755,root,root) %{_libdir}/libgc.so.*.*.* |
b358d50a | 140 | %attr(755,root,root) %ghost %{_libdir}/libgc.so.1 |
79cafb95 | 141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
073f1086 | 144 | %doc doc/*.html |
b358d50a JB |
145 | %attr(755,root,root) %{_libdir}/libcord.so |
146 | %attr(755,root,root) %{_libdir}/libgc.so | |
147 | %{_libdir}/libcord.la | |
148 | %{_libdir}/libgc.la | |
307dc550 JB |
149 | %dir %{_includedir}/gc |
150 | %{_includedir}/gc/private | |
151 | %{_includedir}/gc/cord.h | |
110ceb6e JB |
152 | %{_includedir}/gc/cord_pos.h |
153 | %{_includedir}/gc/ec.h | |
307dc550 JB |
154 | %{_includedir}/gc/gc.h |
155 | %{_includedir}/gc/gc_allocator.h | |
307dc550 JB |
156 | %{_includedir}/gc/gc_backptr.h |
157 | %{_includedir}/gc/gc_config_macros.h | |
d1890de1 | 158 | %{_includedir}/gc/gc_disclaim.h |
307dc550 JB |
159 | %{_includedir}/gc/gc_gcj.h |
160 | %{_includedir}/gc/gc_inline.h | |
161 | %{_includedir}/gc/gc_mark.h | |
162 | %{_includedir}/gc/gc_pthread_redirects.h | |
163 | %{_includedir}/gc/gc_tiny_fl.h | |
164 | %{_includedir}/gc/gc_typed.h | |
165 | %{_includedir}/gc/gc_version.h | |
d1890de1 | 166 | %{_includedir}/gc/javaxfc.h |
307dc550 | 167 | %{_includedir}/gc/leak_detector.h |
307dc550 JB |
168 | %{_includedir}/gc/weakpointer.h |
169 | %{_includedir}/gc.h | |
b358d50a | 170 | %{_pkgconfigdir}/bdw-gc.pc |
a58a5390 | 171 | %{_mandir}/man3/gc.3* |
79cafb95 | 172 | |
173 | %files static | |
174 | %defattr(644,root,root,755) | |
b358d50a JB |
175 | %{_libdir}/libcord.a |
176 | %{_libdir}/libgc.a | |
307dc550 JB |
177 | |
178 | %files c++ | |
179 | %defattr(644,root,root,755) | |
180 | %attr(755,root,root) %{_libdir}/libgccpp.so.*.*.* | |
181 | %attr(755,root,root) %ghost %{_libdir}/libgccpp.so.1 | |
182 | ||
183 | %files c++-devel | |
184 | %defattr(644,root,root,755) | |
185 | %attr(755,root,root) %{_libdir}/libgccpp.so | |
186 | %{_libdir}/libgccpp.la | |
187 | %{_includedir}/gc/gc_cpp.h | |
188 | %{_includedir}/gc_cpp.h | |
189 | ||
190 | %files c++-static | |
191 | %defattr(644,root,root,755) | |
192 | %{_libdir}/libgccpp.a |