Группа :: Система/Библиотеки
Пакет: libcoredumper
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Packager: Repocop Q. A. Robot <repocop at altlinux.org>
%def_enable shared
%def_enable static
%def_with examples
%define bname coredumper
Name: lib%bname
Version: 1.2.1
Release: alt2.4
Summary: Library to create core dumps of the running program
Group: System/Libraries
License: %bsdstyle
URL: http://code.google.com/p/google-%bname/
Source: http://google-%bname.googlecode.com/files/%bname-%version.tar
Patch: %bname-1.2.1-alt-include.patch
Patch1: %bname-1.2.1-alt-glibc-kernheaders-3.5.4.patch
# Automatically added by buildreq on Tue Apr 15 2008
BuildRequires: gcc-c++
BuildRequires: rpm-build-licenses
ExclusiveArch: x86_64 %ix86
%description
The %bname library can be compiled into applications to create core
dumps of the running program - without terminating. It supports both
single- and multi-threaded core dumps, even if the kernel does not
natively support multi-threaded core files.
%package devel
Summary: Development files of %bname library
Group: Development/C
Requires: %name%{?_disable_shared:-devel-static} = %version-%release
%description devel
The %bname library can be compiled into applications to create core
dumps of the running program - without terminating. It supports both
single- and multi-threaded core dumps, even if the kernel does not
natively support multi-threaded core files.
This package includes the header file needed to develop %name-based
software.
%if_enabled static
%package devel-static
Summary: Static %bname library
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
The %bname library can be compiled into applications to create core
dumps of the running program - without terminating. It supports both
single- and multi-threaded core dumps, even if the kernel does not
natively support multi-threaded core files.
This package includes the static library needed to develop
%name-based software.
%endif
%if_with examples
%package devel-examples
Summary: Examples of using %name
Group: Documentation
BuildArch: noarch
%description devel-examples
The %bname library can be compiled into applications to create core
dumps of the running program - without terminating. It supports both
single- and multi-threaded core dumps, even if the kernel does not
natively support multi-threaded core files.
This package includes examples of using %name.
%endif
%prep
%setup -n %bname-%version
%patch -p1
%patch1 -p2
sed -i '/#include <sys\/sysctl.h>/d' src/elfcore.c
%build
%configure %{subst_enable shared} %{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot docdir=%_docdir/%name-%version install
%if_with examples
install -d -m 0755 %buildroot%_docdir/%name-%version/examples
install -m 0644 examples/* %buildroot%_docdir/%name-%version/examples/
%endif
%if_enabled shared
%files
%_libdir/*.so.*
%endif
%files devel
%dir %_includedir/google
%_includedir/google/*
%_man3dir/*
%{?_enable_shared:%_libdir/*.so}
%_docdir/%name-%version
%{?_with_examples:%exclude %_docdir/%name-%version/examples}
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%if_with examples
%files devel-examples
%dir %_docdir/%name-%version
%_docdir/%name-%version/examples
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%def_enable shared
%def_enable static
%def_with examples
%define bname coredumper
Name: lib%bname
Version: 1.2.1
Release: alt2.4
Summary: Library to create core dumps of the running program
Group: System/Libraries
License: %bsdstyle
URL: http://code.google.com/p/google-%bname/
Source: http://google-%bname.googlecode.com/files/%bname-%version.tar
Patch: %bname-1.2.1-alt-include.patch
Patch1: %bname-1.2.1-alt-glibc-kernheaders-3.5.4.patch
# Automatically added by buildreq on Tue Apr 15 2008
BuildRequires: gcc-c++
BuildRequires: rpm-build-licenses
ExclusiveArch: x86_64 %ix86
%description
The %bname library can be compiled into applications to create core
dumps of the running program - without terminating. It supports both
single- and multi-threaded core dumps, even if the kernel does not
natively support multi-threaded core files.
%package devel
Summary: Development files of %bname library
Group: Development/C
Requires: %name%{?_disable_shared:-devel-static} = %version-%release
%description devel
The %bname library can be compiled into applications to create core
dumps of the running program - without terminating. It supports both
single- and multi-threaded core dumps, even if the kernel does not
natively support multi-threaded core files.
This package includes the header file needed to develop %name-based
software.
%if_enabled static
%package devel-static
Summary: Static %bname library
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
The %bname library can be compiled into applications to create core
dumps of the running program - without terminating. It supports both
single- and multi-threaded core dumps, even if the kernel does not
natively support multi-threaded core files.
This package includes the static library needed to develop
%name-based software.
%endif
%if_with examples
%package devel-examples
Summary: Examples of using %name
Group: Documentation
BuildArch: noarch
%description devel-examples
The %bname library can be compiled into applications to create core
dumps of the running program - without terminating. It supports both
single- and multi-threaded core dumps, even if the kernel does not
natively support multi-threaded core files.
This package includes examples of using %name.
%endif
%prep
%setup -n %bname-%version
%patch -p1
%patch1 -p2
sed -i '/#include <sys\/sysctl.h>/d' src/elfcore.c
%build
%configure %{subst_enable shared} %{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot docdir=%_docdir/%name-%version install
%if_with examples
install -d -m 0755 %buildroot%_docdir/%name-%version/examples
install -m 0644 examples/* %buildroot%_docdir/%name-%version/examples/
%endif
%if_enabled shared
%files
%_libdir/*.so.*
%endif
%files devel
%dir %_includedir/google
%_includedir/google/*
%_man3dir/*
%{?_enable_shared:%_libdir/*.so}
%_docdir/%name-%version
%{?_with_examples:%exclude %_docdir/%name-%version/examples}
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%if_with examples
%files devel-examples
%dir %_docdir/%name-%version
%_docdir/%name-%version/examples
%endif
%changelog
…
Полный changelog можно просмотреть здесь