[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Summary: Garbage Collector for C and C++ |
---|
| 4 | Summary(ja): C, C++ ガーベージコレクションライブラリ |
---|
| 5 | Name: gc |
---|
[9291] | 6 | Version: 7.2f |
---|
[8064] | 7 | Release: 1%{?_dist_release} |
---|
[521] | 8 | Group: System Environment/Libraries |
---|
| 9 | License: BSD |
---|
[9291] | 10 | URL: http://www.hboehm.info/gc/ |
---|
| 11 | Source: http://www.hboehm.info/gc/gc_source/%{name}-%{version}.tar.gz |
---|
[521] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | |
---|
| 14 | #Patch1: gc-6.4-opendl.patch |
---|
| 15 | |
---|
| 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | |
---|
| 19 | Packager: inagaki |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage |
---|
| 23 | collecting replacement for C malloc or C++ new. |
---|
| 24 | |
---|
| 25 | %package devel |
---|
| 26 | Summary: Libraries and header files for gc development |
---|
| 27 | Summary(ja): gc の開発用ライブラリおよびヘッダファイル |
---|
| 28 | Group: Development/Libraries |
---|
| 29 | Requires: %{name} = %{version}-%{release} |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | Libraries and header files for gc development. |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | ## to build compat32 for x86_64 architecture support |
---|
| 36 | %package -n compat32-%{name} |
---|
| 37 | Summary: Garbage Collector for C and C++ |
---|
| 38 | Group: System Environment/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | |
---|
| 41 | %description -n compat32-%{name} |
---|
| 42 | The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage |
---|
| 43 | collecting replacement for C malloc or C++ new. |
---|
| 44 | |
---|
| 45 | %package -n compat32-%{name}-devel |
---|
| 46 | Summary: Libraries and header files for gc development |
---|
| 47 | Group: Development/Libraries |
---|
| 48 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 49 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 50 | |
---|
| 51 | %description -n compat32-%{name}-devel |
---|
| 52 | Libraries and header files for gc development. |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %prep |
---|
[8064] | 56 | %setup -q -n gc-7.2 |
---|
[521] | 57 | |
---|
| 58 | %build |
---|
| 59 | %configure \ |
---|
| 60 | --enable-cplusplus \ |
---|
| 61 | --disable-static \ |
---|
| 62 | --disable-dependency-tracking \ |
---|
| 63 | --enable-large-config \ |
---|
| 64 | --enable-threads=posix |
---|
| 65 | |
---|
| 66 | make %{?_smp_mflags} |
---|
| 67 | |
---|
| 68 | %check |
---|
| 69 | make check |
---|
| 70 | |
---|
| 71 | %install |
---|
| 72 | rm -rf $RPM_BUILD_ROOT |
---|
| 73 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 74 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3 |
---|
| 75 | install -m644 doc/gc.man $RPM_BUILD_ROOT%{_mandir}/man3/gc.3 |
---|
| 76 | ## Unpackaged files |
---|
| 77 | rm -rf $RPM_BUILD_ROOT%{_datadir}/gc |
---|
| 78 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
---|
| 79 | |
---|
| 80 | %clean |
---|
| 81 | rm -rf $RPM_BUILD_ROOT |
---|
| 82 | |
---|
| 83 | %post -p /sbin/ldconfig |
---|
| 84 | |
---|
| 85 | %postun -p /sbin/ldconfig |
---|
| 86 | |
---|
| 87 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 88 | |
---|
| 89 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %files |
---|
| 93 | %defattr(-,root,root) |
---|
| 94 | %doc ChangeLog doc/README* |
---|
| 95 | %{_libdir}/lib*.so.* |
---|
| 96 | |
---|
| 97 | %files devel |
---|
| 98 | %defattr(-,root,root) |
---|
| 99 | %doc doc/*.html |
---|
| 100 | %dir %{_includedir}/gc |
---|
| 101 | %{_includedir}/gc.h |
---|
| 102 | %{_includedir}/gc_cpp.h |
---|
| 103 | %{_includedir}/gc/* |
---|
| 104 | %{_libdir}/lib*.so |
---|
| 105 | %{_libdir}/pkgconfig/*.pc |
---|
| 106 | %{_mandir}/man?/* |
---|
| 107 | |
---|
| 108 | ## to build compat32 for x86_64 architecture support |
---|
| 109 | %if %{build_compat32} |
---|
| 110 | %files -n compat32-%{name} |
---|
| 111 | %defattr(-,root,root) |
---|
| 112 | %{_libdir}/lib*.so.* |
---|
| 113 | |
---|
| 114 | %files -n compat32-%{name}-devel |
---|
| 115 | %defattr(-,root,root) |
---|
| 116 | %{_libdir}/lib*.so |
---|
| 117 | %endif |
---|
| 118 | |
---|
| 119 | |
---|
| 120 | %changelog |
---|
[9291] | 121 | * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 7.2f-1 |
---|
| 122 | - update to 7.2f |
---|
| 123 | |
---|
[8064] | 124 | * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 7.2e-1 |
---|
| 125 | - new upstream release |
---|
| 126 | |
---|
[1984] | 127 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 7.1-3 |
---|
| 128 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 129 | |
---|
[521] | 130 | * Sun Jul 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> 7.1-2 |
---|
| 131 | - removed unneccesary %if !%{build_compat32} case condition |
---|
| 132 | |
---|
| 133 | * Wed Jun 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.1-1 |
---|
| 134 | - new upstream release |
---|
| 135 | |
---|
| 136 | * Wed Apr 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 7.0-2 |
---|
| 137 | - spec in utf-8 |
---|
| 138 | - remove static library |
---|
| 139 | - add --enable-large-config --enable-threads=posix |
---|
| 140 | |
---|
[8064] | 141 | * Wed Apr 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.0-1 |
---|
[521] | 142 | - new upstream release |
---|
| 143 | |
---|
[8064] | 144 | * Sat Feb 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.8-0vl1 |
---|
[521] | 145 | - new upstream release |
---|
| 146 | |
---|
| 147 | * Wed Jul 19 2006 Shu KONNO <owa@bg.wakwak.com> 6.6-0vl2 |
---|
| 148 | - added compat32-* packages for x86_64 architecture support |
---|
| 149 | |
---|
| 150 | * Thu Feb 09 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.6-0vl1 |
---|
| 151 | - new upstream release |
---|
| 152 | |
---|
[8064] | 153 | * Tue May 03 2005 Satoshi MACHINO <machino@vinelinux.org> 6.4-0vl1 |
---|
[521] | 154 | - new upstream release |
---|
| 155 | -- updated patch1 |
---|
| 156 | |
---|
| 157 | * Sun Jan 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 6.2-0vl1 |
---|
| 158 | - initial build for Vine Linux |
---|