From 6c4c23d0f58ec2a06a85fdb45850c3ff00e038fc Mon Sep 17 00:00:00 2001 From: "Bradley M. Bell" Date: Mon, 30 Mar 2009 15:25:03 +0000 Subject: [PATCH] Use Provides: for meta base package --- cppad.spec | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/cppad.spec b/cppad.spec index e46607a..9b20e1f 100644 --- a/cppad.spec +++ b/cppad.spec @@ -16,8 +16,8 @@ Name: cppad Version: 20090303.0 -Release: 1%{?dist} -Summary: A Package for Differentiation of C++ Algorithms +Release: 2%{?dist} +Summary: No base package is installed, see %{name}-devel Group: Development/Libraries License: GPLv2 @@ -25,9 +25,17 @@ URL: http://www.coin-or.org/CppAD/ Source: http://www.coin-or.org/download/source/CppAD/%{name}-%{version}.gpl.tgz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: cppad-devel, cppad-doc %description +There is no base %{name} package installation, only %{name}-devel is installed. + +# --------------------------------------------------------------------------- +%package devel +Summary: Development libraries for %{name} +Group: Development/Libraries +Provides: %{name} = %{version}%-%{release} + +%description devel We refer to the step by step conversion from an algorithm that computes function values to an algorithm that computes derivative values as Algorithmic Differentiation (often referred to as Automatic Differentiation.) @@ -36,15 +44,6 @@ algorithm that computes its derivative values. A brief introduction to Algorithmic Differentiation (AD) can be found at http://en.wikipedia.org/wiki/Automatic_differentiation -# --------------------------------------------------------------------------- -%package devel -Summary: Development libraries for %{name} -Group: Development/Libraries - -%description devel -The package %{name}-devel contains all you need to do development with %{name}. -The documentation package %{name}-doc is not included. - # ---------------------------------------------------------------------------- %package doc Summary: Documentation for %{name} @@ -68,8 +67,8 @@ cat << EOF > example.sed /^int main(void)/N s|^int main(void)\n{|# include \\ int main(void)\\ -{ // print machine epsilon\\ - std::cout << "DBL_EPSILON =" << DBL_EPSILON << std::endl;\\ +{ // print machine epsilon\\ + std::cout << "DBL_EPSILON =" << DBL_EPSILON << std::endl;\\ \\ | EOF @@ -82,11 +81,10 @@ sed -i.stamp speed/example/example.cpp -e '/Run(speed_test,/d' # Create the doc_prefix directory (if it does not already exist). # (Note we are not using a postfix directory, so can overwrite its case.) sed -i.stamp makefile.am \ - -e '/chmod -R .* $(doc_package)/d' + -e '/chmod -R .* $(doc_package)/d' sed -i.stamp makefile.in \ - -e '/chmod -R .* $(doc_package)/d' + -e '/chmod -R .* $(doc_package)/d' - %build %configure --with-Documentation \ --with-Example \ @@ -122,6 +120,11 @@ rm -rf $RPM_BUILD_ROOT # ---------------------------------------------------------------------------- %changelog +* Mon Mar 30 2009 Brad Bell 20080303-2 +- Change tabs to spaces in spec file to avoid an rpmlint warning. +- The base package in previous release had no files, hence did not exist. +- Use Provides: in cppad-devel to indicate that it provides cppad. + * Sun Mar 29 2009 Brad Bell 20080303-1 - Change to newer version of cppad. - Create a base package that requres both devel and doc sub-packages