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