gc-vl.spec 3.9 KB

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