Группа :: Система/Библиотеки
Пакет: libcoredumper
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_enable shared
%def_enable static
%def_with examples
%define bname coredumper
Name: lib%bname
Version: 1.2.1
Release: alt1
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.bz2
# Automatically added by buildreq on Tue Apr 15 2008
BuildRequires: gcc-c++
BuildRequires: rpm-build-licenses
%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: Development/C
%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
%build
%configure %{subst_enable shared} %{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot docdir=%_docdir/%name-devel-%version install
%if_enabled shared
install -d -m 0755 %buildroot%_docdir/%name-%version
mv %buildroot%_docdir/%name{-devel,}-%version/AUTHORS
%endif
%if_with examples
install -d -m 0755 %buildroot%_docdir/%name-devel-%version/examples
install -m 0644 examples/* %buildroot%_docdir/%name-devel-%version/examples/
%endif
%if_enabled shared
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%endif
%if_enabled shared
%files
%_libdir/*.so.*
%_docdir/%name-%version/AUTHORS
%endif
%files devel
%dir %_includedir/google
%_includedir/google/*
%_docdir/%name-devel-%version/README
%_docdir/%name-devel-%version/ChangeLog
%_man3dir/*
%if_enabled shared
%_libdir/*.so
%else
%_docdir/%name-devel-%version/AUTHORS
%endif
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%if_with examples
%files devel-examples
%dir %_docdir/%name-devel-%version
%_docdir/%name-devel-%version/examples
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%def_enable static
%def_with examples
%define bname coredumper
Name: lib%bname
Version: 1.2.1
Release: alt1
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.bz2
# Automatically added by buildreq on Tue Apr 15 2008
BuildRequires: gcc-c++
BuildRequires: rpm-build-licenses
%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: Development/C
%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
%build
%configure %{subst_enable shared} %{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot docdir=%_docdir/%name-devel-%version install
%if_enabled shared
install -d -m 0755 %buildroot%_docdir/%name-%version
mv %buildroot%_docdir/%name{-devel,}-%version/AUTHORS
%endif
%if_with examples
install -d -m 0755 %buildroot%_docdir/%name-devel-%version/examples
install -m 0644 examples/* %buildroot%_docdir/%name-devel-%version/examples/
%endif
%if_enabled shared
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%endif
%if_enabled shared
%files
%_libdir/*.so.*
%_docdir/%name-%version/AUTHORS
%endif
%files devel
%dir %_includedir/google
%_includedir/google/*
%_docdir/%name-devel-%version/README
%_docdir/%name-devel-%version/ChangeLog
%_man3dir/*
%if_enabled shared
%_libdir/*.so
%else
%_docdir/%name-devel-%version/AUTHORS
%endif
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%if_with examples
%files devel-examples
%dir %_docdir/%name-devel-%version
%_docdir/%name-devel-%version/examples
%endif
%changelog
…
Полный changelog можно просмотреть здесь