libsigc++-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. %define name libsigc++
  2. %define version 2.10.0
  3. %define release 1%{?_dist_release}
  4. %define lib_name sigc++-2.0
  5. %define _unpackaged_files_terminate_build 1
  6. Summary: The Typesafe Signal Framework for C++
  7. Summary(ja): C++ 用の型安全なシグナルフレームワーク
  8. Name: %{name}
  9. Version: %{version}
  10. Release: %{release}
  11. Group: System Environment/Libraries
  12. License: LGPLv2
  13. URL: http://libsigc.sourceforge.net/
  14. Source: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.10/%{name}-%{version}.tar.xz
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: gcc-c++
  17. BuildRequires: m4
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. This library implements a full callback system for use in widget libraries,
  22. abstract interfaces, and general programming. Originally part of the Gtk--
  23. widget set, %{name} is now a seperate library to provide for more general
  24. use. It is the most complete library of its kind with the ablity to connect
  25. an abstract callback to a class method, function, or function object. It
  26. contains adaptor classes for connection of dissimilar callbacks and has an
  27. ease of use unmatched by other C++ callback libraries.
  28. Package gtkmm2, which is a C++ binding to the GTK2 library, uses libsigc++.
  29. %package devel
  30. Summary: development tools for the Typesafe Signal Framework for C++
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. Requires: pkgconfig
  34. %description devel
  35. The %{name}-devel package contains the static libraries and header files
  36. needed for development with %{name}.
  37. %package examples
  38. Summary: examples and tests for the Typesafe Signal Framework for C++
  39. Group: Development/Libraries
  40. Requires: %{name}-devel = %{version}-%{release}
  41. %description examples
  42. The %{name}-devel package contains source code of example and test
  43. programs for %{name}.
  44. %prep
  45. %setup -q
  46. %build
  47. %configure --disable-static --enable-silent-rules
  48. make %{_smp_mflags}
  49. %install
  50. rm -rf $RPM_BUILD_ROOT
  51. make install DESTDIR=$RPM_BUILD_ROOT
  52. # removed unpackage files
  53. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  54. mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{lib_name}
  55. cp -a examples tests $RPM_BUILD_ROOT%{_libdir}/%{lib_name}
  56. find $RPM_BUILD_ROOT%{_libdir}/%{lib_name} -type d -name .libs |xargs -r rm -rf
  57. find $RPM_BUILD_ROOT%{_libdir}/%{lib_name} -type d -name .deps |xargs -r rm -rf
  58. find $RPM_BUILD_ROOT%{_libdir}/%{lib_name} -type f |xargs file |
  59. grep -E '(relocatable|executable|shell script)' |cut -d: -f1 |xargs -r rm -f
  60. for i in $RPM_BUILD_ROOT%{_libdir}/%{lib_name}/{examples,tests}/Makefile; do
  61. rm -f $i.*
  62. done
  63. rm -rf docs-toinstall
  64. mkdir -p docs-to-install
  65. cp -pr $RPM_BUILD_ROOT%{_docdir}/%{name}-2.0/* docs-to-install/
  66. rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-2.0
  67. # devhelp path fix
  68. sed -i 's/doc\/%{name}-2.0/doc\/%{name}-devel-%{version}/g' $RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-2.0/%{name}-2.0.devhelp2
  69. #sed -i 's/html\/..\/..\/index\.html/html\/index\.html/g' $RPM_BUILD_ROOT%{_datadir}/devhelp/books/libglademm-%{ver}/libglademm-%{ver}.devhelp
  70. %post -p /sbin/ldconfig
  71. %postun -p /sbin/ldconfig
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT
  74. %files
  75. %defattr(-,root,root,755)
  76. %doc AUTHORS COPYING README NEWS ChangeLog TODO
  77. %attr(755,root,root) %{_libdir}/lib*.so.*
  78. %files devel
  79. %defattr(-,root,root,755)
  80. %{_includedir}/*
  81. %{_libdir}/%{lib_name}/include
  82. %{_libdir}/pkgconfig/*.pc
  83. #{_libdir}/lib*.la
  84. %{_libdir}/lib*.so
  85. %{_datadir}/devhelp/books/%{name}-2.0/*
  86. %doc docs-to-install/index.html docs-to-install/images
  87. %doc docs-to-install/reference docs-to-install/tutorial
  88. %files examples
  89. %defattr(-,root,root,755)
  90. %{_libdir}/%{lib_name}/examples
  91. %{_libdir}/%{lib_name}/tests
  92. %changelog
  93. * Sat Jan 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.10.0-1
  94. - new upstream release.
  95. * Fri Jul 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-1
  96. - new upstream release
  97. * Wed Jun 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.2-2
  98. - rebuild with gcc-5.4.0
  99. * Sat Nov 14 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.2-1
  100. - new upstream release
  101. * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.1-1
  102. - new upstream release
  103. * Sun Oct 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.11-1
  104. - new upstream release
  105. * Sun Dec 25 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.10-1
  106. - new upstream release
  107. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.2.8-2
  108. - build with rpm-4.8.1-1 for pkg-config file
  109. * Thu Sep 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.8-1
  110. - new upstream release
  111. * Thu Apr 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.6-1
  112. - new upstream release
  113. - built with new toolchain
  114. * Sun Sep 27 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.4.2-1
  115. - new upstream release
  116. - remove static libraries from devel package
  117. * Fri Mar 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-1
  118. - new upstream release
  119. - spec in UTF-8
  120. * Sat Apr 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.2-2vl5
  121. - removed .la files from devel package
  122. * Sun Apr 6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.2-1vl5
  123. - new upstream release
  124. * Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.17-0vl2
  125. - rebuild with new environment/toolchain
  126. * Sun Sep 24 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.17-0vl1
  127. - new upstream release
  128. * Tue Aug 2 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.16-0vl2
  129. - rebuild with new libtool
  130. * Tue Aug 2 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.16-0vl1
  131. - new upstream release
  132. * Sat Jul 30 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.15-0vl1
  133. - new upstream release
  134. * Sat Jun 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.14-0vl1
  135. - new upstream release
  136. * Sun Mar 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.10-0vl1
  137. - new upstream release
  138. - added tutorial to devel package
  139. * Sun Nov 14 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.6-0vl1
  140. - update to 2.0.6
  141. * Sun Dec 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-0vl1
  142. - update to 1.2.5
  143. - add Requires: pkgconfig
  144. * Sat Oct 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.4-0vl3
  145. - rebuild to remove dependance <5371>
  146. - add Japanese summary
  147. - use better macros
  148. - s/Copyright/License/
  149. * Mon Nov 25 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-0vl2
  150. - rebuild with new toolchain
  151. * Wed Feb 06 2002 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp>
  152. - 1.0.4-0vl1
  153. - Build for Vine Linux 2.5
  154. * Wed Feb 21 2001 yoneda kenji <yoneda@n.isl.titech.ac.jp>
  155. - packaged for Vine Linux 2.1
  156. * Sat Apr 15 2000 Dmitry V. Levin <ldv@fandra.org>
  157. - updated Url and Source fileds
  158. - 1.0.0 stable release
  159. * Sat Jan 22 2000 Dmitry V. Levin <ldv@fandra.org>
  160. - filtering out -fno-rtti and -fno-exceptions options from $RPM_OPT_FLAGS
  161. - minor install section cleanup
  162. * Wed Jan 19 2000 Allan Rae <rae@lyx.org>
  163. - autogen just creates configure, not runs it, so cleaned that up too.
  164. * Wed Jan 19 2000 Dmitry V. Levin <ldv@fandra.org>
  165. - minor attr fix
  166. - removed unnecessary curly braces
  167. - fixed Herbert's adjustement
  168. * Sat Jan 15 2000 Dmitry V. Levin <ldv@fandra.org>
  169. - minor package dependence fix
  170. * Sat Dec 25 1999 Herbert Valerio Riedel <hvr@gnu.org>
  171. - fixed typo of mine
  172. - added traditional CUSTOM_RELEASE stuff
  173. - added SMP support
  174. * Thu Dec 23 1999 Herbert Valerio Riedel <hvr@gnu.org>
  175. - adjusted spec file to get tests.Makefile and examples.Makefile from scripts/
  176. * Fri Oct 22 1999 Dmitry V. Levin <ldv@fandra.org>
  177. - split into three packages: %name, %name-devel and %name-examples
  178. * Thu Aug 12 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
  179. - updated source field and merged conflicts between revisions.
  180. * Tue Aug 10 1999 Dmitry V. Levin <ldv@fandra.org>
  181. - updated Prefix and BuildRoot fields
  182. * Thu Aug 5 1999 Herbert Valerio Riedel <hvr@hvrlab.dhs.org>
  183. - made sure configure works on all alphas
  184. * Wed Jul 7 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
  185. - Added autoconf macro for sigc.
  186. * Fri Jun 11 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
  187. - Made into a .in to keep version field up to date
  188. - Still need to do release by hand
  189. * Mon Jun 7 1999 Dmitry V. Levin <ldv@fandra.org>
  190. - added Vendor and Packager fields
  191. * Sat Jun 5 1999 Dmitry V. Levin <ldv@fandra.org>
  192. - updated to 0.8.0
  193. * Tue Jun 1 1999 Dmitry V. Levin <ldv@fandra.org>
  194. - initial revision