libsigc++12-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. %define version 1.2.7
  2. %define release 1%{?_dist_release}
  3. %define lib_name sigc++-1.2
  4. Summary: The Typesafe Signal Framework for C++
  5. Summary(ja): C++ 用の型安全なシグナルフレームワーク
  6. Name: libsigc++12
  7. Version: %{version}
  8. Release: %{release}
  9. Source: libsigc++-%{version}.tar.bz2
  10. License: LGPL
  11. Group: System Environment/Libraries
  12. URL: http://libsigc.sourceforge.net/
  13. BuildRequires: gcc-c++ m4
  14. Buildroot: %{_tmppath}/%{name}-%{version}-root
  15. %description
  16. This library implements a full callback system for use in widget libraries,
  17. abstract interfaces, and general programming. Originally part of the Gtk--
  18. widget set, libsigc++ is now a seperate library to provide for more general
  19. use. It is the most complete library of its kind with the ablity to connect
  20. an abstract callback to a class method, function, or function object. It
  21. contains adaptor classes for connection of dissimilar callbacks and has an
  22. ease of use unmatched by other C++ callback libraries.
  23. Package gtkmm2, which is a C++ binding to the GTK2 library, uses libsigc++.
  24. %package devel
  25. Summary: development tools for the Typesafe Signal Framework for C++
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}
  28. Requires: pkgconfig
  29. %description devel
  30. The %{name}-devel package contains the static libraries and header files
  31. needed for development with %{name}.
  32. %package examples
  33. Summary: examples and tests for the Typesafe Signal Framework for C++
  34. Group: Development/Libraries
  35. Requires: %{name}-devel = %{version}
  36. %description examples
  37. The %{name}-devel package contains source code of example and test
  38. programs for libsigc++.
  39. %prep
  40. %setup -q -n libsigc++-%{version}
  41. %build
  42. %configure
  43. export tagname=CC
  44. make %{_smp_mflags} LIBTOOL=/usr/bin/libtool
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. export tagname=CC
  48. %makeinstall LIBTOOL=/usr/bin/libtool
  49. # Clean up the docs
  50. find doc -name "Makefile*" | xargs rm -f
  51. mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{lib_name}
  52. cp -a examples tests $RPM_BUILD_ROOT%{_libdir}/%{lib_name}
  53. find $RPM_BUILD_ROOT%{_libdir}/%{lib_name} -type d -name .libs |xargs -r rm -rf
  54. find $RPM_BUILD_ROOT%{_libdir}/%{lib_name} -type f |xargs file |
  55. grep -E '(relocatable|executable|shell script)' |cut -d: -f1 |xargs -r rm -f
  56. for i in $RPM_BUILD_ROOT%{_libdir}/%{lib_name}/examples/Makefile; do
  57. rm -f $i.*
  58. cp -p scripts/examples.Makefile $i
  59. done
  60. for i in $RPM_BUILD_ROOT%{_libdir}/%{lib_name}/tests/Makefile; do
  61. rm -f $i.*
  62. cp -p scripts/tests.Makefile $i
  63. done
  64. ## remove unuse files
  65. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  66. %post -p /sbin/ldconfig
  67. %postun -p /sbin/ldconfig
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT
  70. %files
  71. %defattr(-,root,root,755)
  72. %doc AUTHORS COPYING.LIB README IDEAS NEWS ChangeLog TODO
  73. %attr(755,root,root) %{_libdir}/lib*.so.*
  74. %files devel
  75. %defattr(-,root,root,755)
  76. %doc doc/*
  77. %{_includedir}/*
  78. %{_libdir}/%{lib_name}/include
  79. %{_libdir}/pkgconfig/*.pc
  80. %attr(755,root,root) %{_libdir}/lib*.so
  81. %attr(644,root,root) %{_libdir}/*a
  82. %files examples
  83. %defattr(-,root,root,755)
  84. %{_libdir}/%{lib_name}/examples
  85. %{_libdir}/%{lib_name}/tests
  86. %changelog
  87. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.7-1vl5
  88. - applied new versioning policy, spec in utf-8
  89. - removed *.la
  90. * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.7-0vl2
  91. - rebuilt with new toolchain
  92. * Fri May 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.7-0vl1
  93. - new upstream release
  94. * Sun Nov 14 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-0vl2
  95. - package name changed to libsigc++12
  96. * Sun Dec 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-0vl1
  97. - update to 1.2.5
  98. - add Requires: pkgconfig
  99. * Sat Oct 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.4-0vl3
  100. - rebuild to remove dependance <5371>
  101. - add Japanese summary
  102. - use better macros
  103. - s/Copyright/License/
  104. * Mon Nov 25 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-0vl2
  105. - rebuild with new toolchain
  106. * Wed Feb 06 2002 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp>
  107. - 1.0.4-0vl1
  108. - Build for Vine Linux 2.5
  109. * Wed Feb 21 2001 yoneda kenji <yoneda@n.isl.titech.ac.jp>
  110. - packaged for Vine Linux 2.1
  111. * Sat Apr 15 2000 Dmitry V. Levin <ldv@fandra.org>
  112. - updated Url and Source fileds
  113. - 1.0.0 stable release
  114. * Sat Jan 22 2000 Dmitry V. Levin <ldv@fandra.org>
  115. - filtering out -fno-rtti and -fno-exceptions options from $RPM_OPT_FLAGS
  116. - minor install section cleanup
  117. * Wed Jan 19 2000 Allan Rae <rae@lyx.org>
  118. - autogen just creates configure, not runs it, so cleaned that up too.
  119. * Wed Jan 19 2000 Dmitry V. Levin <ldv@fandra.org>
  120. - minor attr fix
  121. - removed unnecessary curly braces
  122. - fixed Herbert's adjustement
  123. * Sat Jan 15 2000 Dmitry V. Levin <ldv@fandra.org>
  124. - minor package dependence fix
  125. * Sat Dec 25 1999 Herbert Valerio Riedel <hvr@gnu.org>
  126. - fixed typo of mine
  127. - added traditional CUSTOM_RELEASE stuff
  128. - added SMP support
  129. * Thu Dec 23 1999 Herbert Valerio Riedel <hvr@gnu.org>
  130. - adjusted spec file to get tests.Makefile and examples.Makefile from scripts/
  131. * Fri Oct 22 1999 Dmitry V. Levin <ldv@fandra.org>
  132. - split into three packages: %name, %name-devel and %name-examples
  133. * Thu Aug 12 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
  134. - updated source field and merged conflicts between revisions.
  135. * Tue Aug 10 1999 Dmitry V. Levin <ldv@fandra.org>
  136. - updated Prefix and BuildRoot fields
  137. * Thu Aug 5 1999 Herbert Valerio Riedel <hvr@hvrlab.dhs.org>
  138. - made sure configure works on all alphas
  139. * Wed Jul 7 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
  140. - Added autoconf macro for sigc.
  141. * Fri Jun 11 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
  142. - Made into a .in to keep version field up to date
  143. - Still need to do release by hand
  144. * Mon Jun 7 1999 Dmitry V. Levin <ldv@fandra.org>
  145. - added Vendor and Packager fields
  146. * Sat Jun 5 1999 Dmitry V. Levin <ldv@fandra.org>
  147. - updated to 0.8.0
  148. * Tue Jun 1 1999 Dmitry V. Levin <ldv@fandra.org>
  149. - initial revision