Package init
This commit is contained in:
commit
4f296d10c7
BIN
gc-7.6.12.tar.gz
Normal file
BIN
gc-7.6.12.tar.gz
Normal file
Binary file not shown.
81
gc.spec
Normal file
81
gc.spec
Normal file
@ -0,0 +1,81 @@
|
||||
Name: gc
|
||||
Version: 7.6.12
|
||||
Release: 2
|
||||
Summary: A garbage collector for C and C++
|
||||
License: GPLv1+
|
||||
Url: http://www.hboehm.info/gc/
|
||||
Source0: http://www.hboehm.info/gc/gc_source/gc-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc libtool libatomic_ops-devel
|
||||
|
||||
%description
|
||||
The Boehm-Demers-Weiser conservative garbage collector can be
|
||||
used as a garbage collecting replacement for C malloc or C++ new.
|
||||
|
||||
%package devel
|
||||
Summary: Libraries and header files for %{name} development
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
# refresh auto*/libtool to purge rpaths
|
||||
rm -f libtool libtool.m4
|
||||
autoreconf -i -f
|
||||
|
||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=689877
|
||||
CPPFLAGS="-DUSE_GET_STACKBASE_FOR_MAIN"; export CPPFLAGS
|
||||
|
||||
%configure \
|
||||
--disable-static \
|
||||
--disable-docs \
|
||||
--enable-cplusplus \
|
||||
--enable-large-config \
|
||||
--enable-threads=posix
|
||||
|
||||
%{make_build}
|
||||
|
||||
|
||||
%install
|
||||
%{make_install}
|
||||
|
||||
install -p -D -m644 doc/gc.man %{buildroot}%{_mandir}/man3/gc.3
|
||||
|
||||
## Delete unpackaged files
|
||||
rm -rfv %{buildroot}%{_datadir}/gc/
|
||||
rm -fv %{buildroot}%{_libdir}/lib*.la
|
||||
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%files
|
||||
%doc AUTHORS ChangeLog README.md
|
||||
%{_libdir}/libcord.so.1*
|
||||
%{_libdir}/libgc.so.1*
|
||||
%{_libdir}/libgccpp.so.1*
|
||||
|
||||
%files devel
|
||||
%doc doc/README.environment doc/README.linux
|
||||
%doc doc/*.html
|
||||
%{_includedir}/gc.h
|
||||
%{_includedir}/gc_cpp.h
|
||||
%{_includedir}/gc/
|
||||
%{_libdir}/libcord.so
|
||||
%{_libdir}/libgc.so
|
||||
%{_libdir}/libgccpp.so
|
||||
%{_libdir}/pkgconfig/bdw-gc.pc
|
||||
%{_mandir}/man3/gc.3*
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 7.6.12-2
|
||||
- Modify license
|
||||
|
||||
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 7.6.12-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user