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