]> git.pld-linux.org Git - packages/libsigc++.git/commitdiff
- completly rewrited in PLD style. libsigc++-0_8_6-1
authorkloczek <kloczek@pld-linux.org>
Tue, 4 Apr 2000 02:39:23 +0000 (02:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libsigc++.spec -> 1.2

libsigc++.spec

index 618133495c82e04072511bb99ca801e8c118a0a0..a88712b174603767c2f32a197f3c866fcbbbab08 100644 (file)
-%define  RELEASE 9
-%define  rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
-
-%define lib_name sigc++
-
-Summary: The Typesafe Signal Framework for C++
-Name: libsigc++
-Version: 0.8.6
-Release: %rel
-Copyright: LGPL
-Source: ftp://ftp.ece.ucdavis.edu/pub/kenelson/libsigc++/%name-%version.tar.gz
-Url: http://www.ece.ucdavis.edu/~kenelson/libsigc++/
-Vendor: Karl E. Nelson <kenelson@ece.ucdavis.edu>
-Packager: Dmitry V. Levin <ldv@fandra.org>
-Group: System Environment/Libraries
-Prefix: %_prefix
-BuildRoot: %_tmppath/%name-%version-root
+Summary:       The Typesafe Signal Framework for C++
+Name:          libsigc++
+Version:       0.8.6
+Release:       1
+License:       LGPL
+Group:         Libraries
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Vendor:                Karl E. Nelson <kenelson@ece.ucdavis.edu>
+Source0:       ftp://ftp.ece.ucdavis.edu/pub/kenelson/libsigc++/%name-%version.tar.gz
+URL:           http://www.ece.ucdavis.edu/~kenelson/libsigc++/
+BuildRequires: libstdc++-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This library implements a full callback system for use in widget libraries,
 abstract interfaces, and general programming. Originally part of the Gtk--
-widget set, %name is now a seperate library to provide for more general
-use. It is the most complete library of its kind with the ablity to connect
-an abstract callback to a class method, function, or function object. It
-contains adaptor classes for connection of dissimilar callbacks and has an
-ease of use unmatched by other C++ callback libraries.
-
-gtk--, starting with version 1.1.2, uses %name.
+widget set, %name is now a seperate library to provide for more general use. It
+is the most complete library of its kind with the ablity to connect an abstract
+callback to a class method, function, or function object. It contains adaptor
+classes for connection of dissimilar callbacks and has an ease of use unmatched
+by other C++ callback libraries.
 
 %package devel
-Summary: development tools for the Typesafe Signal Framework for C++ 
-Group: Development/Libraries
-Requires: %name = %version
+Summary:       development tools for the Typesafe Signal Framework for C++ 
+Group:         Development/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      m4
+Requires:      %{name} = %{version}
 
 %description devel
-The %name-devel package contains the static libraries and header files
-needed for development with %name.
+Development tools for the Typesafe Signal Framework for C++.
 
-%package examples
-Summary: examples and tests for the Typesafe Signal Framework for C++ 
-Group: Development/Libraries
-Requires: %name-devel = %version
+%package static
+Summary:       Static Typesafe Signal Framework for C++ libraries
+Group:         Development/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name}-devel = %{version}
 
-%description examples
-The %name-devel package contains source code of example and test
-programs for %name.
+%description static
+Static Typesafe Signal Framework for C++ libraries.
 
 %prep
 %setup -q
-perl -pi -e 's|\${prefix}|%prefix|' README
-perl -pi -e 's|PREFIX|%prefix|' doc/FAQ
 
 %build
-%ifarch alpha
-  ARCH_FLAGS="--host=alpha-redhat-linux"
-%endif
-
-if [ ! -f configure ]; then
-  CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARCH_FLAGS --prefix=%prefix
-else
-  CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%prefix
-fi
-
-if [ "$SMP" != "" ]; then
-  make -j$SMP "MAKE=make -j$SMP"
-else
-  make
-fi
+LDFLAGS="-s"
+CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions"
+export LDFLAGS CXXFLAGS
+%configure
+
+make
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p -m 755 $RPM_BUILD_ROOT%prefix/{{include,lib}/%lib_name}
-make install INSTALL="%(which install) -p" prefix=$RPM_BUILD_ROOT%prefix
-
-cp -a examples tests $RPM_BUILD_ROOT%prefix/lib/%lib_name
-find $RPM_BUILD_ROOT%prefix/lib/%lib_name -type f|xargs file|fgrep relocatable|cut -d: -f1|xargs rm -f
-find $RPM_BUILD_ROOT%prefix/lib/%lib_name -type f|xargs file|fgrep executable|cut -d: -f1|xargs rm -f
-find $RPM_BUILD_ROOT%prefix/lib/%lib_name -type f|xargs file|fgrep 'shell script'|cut -d: -f1|xargs rm -f
-find $RPM_BUILD_ROOT%prefix/lib/%lib_name -type d -name .libs|xargs rm -rf
-
-for i in $RPM_BUILD_ROOT%prefix/lib/%lib_name/examples/Makefile $RPM_BUILD_ROOT%prefix/lib/%lib_name/tests/*/Makefile; do
-       rm -f $i.*
-       cp -p scripts/examples.Makefile $i
-done
-for i in $RPM_BUILD_ROOT%prefix/lib/%lib_name/tests/Makefile; do
-       rm -f $i.*
-       cp -p scripts/tests.Makefile $i
-done
-
-%post -p /sbin/ldconfig
+make install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       m4datadir=%{_aclocaldir}
+
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
 
+gzip -9nf AUTHORS README IDEAS NEWS ChangeLog TODO doc/*
+
+%post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root)
-%attr(755,root,root) %prefix/lib/lib*.so.*
-%doc AUTHORS COPYING.LIB README IDEAS NEWS ChangeLog TODO
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
-%defattr(-,root,root)
-%prefix/bin/*
-%prefix/include/*
-%prefix/lib/%lib_name/include
-%prefix/share/aclocal/*
-%attr(755,root,root) %prefix/lib/lib*.so
-%attr(644,root,root) %prefix/lib/*.*a
-%doc doc/*
-
-%files examples
-%defattr(-,root,root)
-%prefix/lib/%lib_name/examples
-%prefix/lib/%lib_name/tests
-
-%changelog
-* Wed Jan 19 2000 Dmitry V. Levin <ldv@fandra.org>
-- minor attr fix
-- removed unnecessary curly braces
-- fixed Herbert's adjustement
-
-* Sat Jan 15 2000 Dmitry V. Levin <ldv@fandra.org>
-- minor package dependence fix
-
-* Sat Dec 25 1999 Herbert Valerio Riedel <hvr@gnu.org>
-- fixed typo of mine
-- added traditional CUSTOM_RELEASE stuff
-- added SMP support
-
-* Thu Dec 23 1999 Herbert Valerio Riedel <hvr@gnu.org>
-- adjusted spec file to get tests.Makefile and examples.Makefile from scripts/
-
-* Fri Oct 22 1999 Dmitry V. Levin <ldv@fandra.org>
-- split into three packages: %name, %name-devel and %name-examples
-
-* Thu Aug 12 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
-- updated source field and merged conflicts between revisions.
-
-* Tue Aug 10 1999 Dmitry V. Levin <ldv@fandra.org>
-- updated Prefix and BuildRoot fields
-
-* Thu Aug  5 1999 Herbert Valerio Riedel <hvr@hvrlab.dhs.org>
-- made sure configure works on all alphas
-
-* Wed Jul  7 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
-- Added autoconf macro for sigc.
-
-* Fri Jun 11 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
-- Made into a .in to keep version field up to date 
-- Still need to do release by hand
-
-* Mon Jun  7 1999 Dmitry V. Levin <ldv@fandra.org>
-- added Vendor and Packager fields
-
-* Sat Jun  5 1999 Dmitry V. Levin <ldv@fandra.org>
-- updated to 0.8.0
-
-* Tue Jun  1 1999 Dmitry V. Levin <ldv@fandra.org>
-- initial revision
+%defattr(644,root,root,755)
+%doc *.gz doc/*
+%attr(755,root,root) %{_bindir}/sigc-config
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
+%{_includedir}/sigc++
+%{_libdir}/sigc++
+%{_aclocaldir}/*
+
+%files static
+%attr(644,root,root) %{_libdir}/lib*.a
This page took 0.10237 seconds and 4 git commands to generate.