Use Provides: for meta base package
This commit is contained in:
parent
dd9cea51be
commit
6c4c23d0f5
1 changed files with 20 additions and 17 deletions
37
cppad.spec
37
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 <cfloat>\\
|
||||
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 <bradbell at seanet do com> 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 <bradbell at seanet dot com> 20080303-1
|
||||
- Change to newer version of cppad.
|
||||
- Create a base package that requres both devel and doc sub-packages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue