| 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 |
|---|
| 6 | Version: 7.1 |
|---|
| 7 | Release: 3%{?_dist_release} |
|---|
| 8 | Group: System Environment/Libraries |
|---|
| 9 | License: BSD |
|---|
| 10 | URL: http://www.hpl.hp.com/personal/Hans_Boehm/gc/ |
|---|
| 11 | Source: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/%{name}-%{version}.tar.gz |
|---|
| 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 |
|---|
| 56 | %setup -q |
|---|
| 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 | %{_libdir}/pkgconfig/*.pc |
|---|
| 118 | %endif |
|---|
| 119 | |
|---|
| 120 | |
|---|
| 121 | %changelog |
|---|
| 122 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 7.1-3 |
|---|
| 123 | - rebuilt with rpm-4.8.1 for pkg-config |
|---|
| 124 | |
|---|
| 125 | * Sun Jul 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> 7.1-2 |
|---|
| 126 | - removed unneccesary %if !%{build_compat32} case condition |
|---|
| 127 | |
|---|
| 128 | * Wed Jun 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.1-1 |
|---|
| 129 | - new upstream release |
|---|
| 130 | |
|---|
| 131 | * Wed Apr 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 7.0-2 |
|---|
| 132 | - spec in utf-8 |
|---|
| 133 | - remove static library |
|---|
| 134 | - add --enable-large-config --enable-threads=posix |
|---|
| 135 | |
|---|
| 136 | * Tue Apr 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.0-1 |
|---|
| 137 | - new upstream release |
|---|
| 138 | |
|---|
| 139 | * Sun Feb 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.8-0vl1 |
|---|
| 140 | - new upstream release |
|---|
| 141 | |
|---|
| 142 | * Wed Jul 19 2006 Shu KONNO <owa@bg.wakwak.com> 6.6-0vl2 |
|---|
| 143 | - added compat32-* packages for x86_64 architecture support |
|---|
| 144 | |
|---|
| 145 | * Thu Feb 09 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.6-0vl1 |
|---|
| 146 | - new upstream release |
|---|
| 147 | |
|---|
| 148 | * Mon May 03 2005 Satoshi MACHINO <machino@vinelinux.org> 6.4-0vl1 |
|---|
| 149 | - new upstream release |
|---|
| 150 | -- updated patch1 |
|---|
| 151 | |
|---|
| 152 | * Sun Jan 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 6.2-0vl1 |
|---|
| 153 | - initial build for Vine Linux |
|---|