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