Accepting request 82660 from devel:libraries:c_c++

- Implement baselibs for package; remove redundant tags/sections (forwarded request 82578 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/82660
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adolc?expand=0&rev=8
This commit is contained in:
Lars Vogdt 2011-09-19 13:33:42 +00:00 committed by Git OBS Bridge
commit c618b8822e
3 changed files with 19 additions and 14 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 16 19:07:38 UTC 2011 - jengelh@medozas.de
- Implement baselibs for package; remove redundant tags/sections
-------------------------------------------------------------------
Thu Jun 9 10:37:26 UTC 2011 - kkhere.geo@gmail.com

View File

@ -15,11 +15,11 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%define packver 2.2.1
Name: adolc
%define lname libadolc1
Version: 2.2.1
Release: 1
License: GPLv2 or CPL
@ -28,11 +28,11 @@ Url: http://projects.coin-or.org/ADOL-C
Group: Development/Languages/C and C++
Source: %{name}-%{packver}.tar.bz2
Source1: ColPack-1.0.3.tar.bz2
Source2: baselibs.conf
BuildRequires: autoconf automake libtool
BuildRequires: gcc-c++ libstdc++-devel
# BuildRequires: texlive texlive-latex
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
%description
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
@ -45,12 +45,12 @@ The numerical values of derivative vectors are obtained free of
truncation errors at a small multiple of the run time and randomly
accessed memory of the given function evaluation program.
%package -n libadolc1
%package -n %lname
License: GPLv2 or CPL
Summary: Algorithmic Differentiation Library for C/C++
Group: Development/Languages/C and C++
%description -n libadolc1
%description -n %lname
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
facilitates the evaluation of first and higher derivatives of vector
functions that are defined by computer programs written in C or
@ -65,7 +65,7 @@ accessed memory of the given function evaluation program.
License: GPLv2 or CPL
Summary: Algorithmic Differentiation Library for C/C++ -- development files
Group: Development/Languages/C and C++
Requires: libadolc1 = %{version}
Requires: %lname = %{version}
%description devel
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
@ -126,18 +126,14 @@ install -d %{buildroot}%{_datadir}/doc/packages/%{name}
install -m 644 README AUTHORS BUGS LICENSE INSTALL TODO %{buildroot}%{_datadir}/doc/packages/%{name}
install -m 644 ADOL-C/doc/adolc-manual.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
install -m 644 ADOL-C/doc/short_ref.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
find %{buildroot} -type f -name '*.la' -exec rm -vf {} \;
find %{buildroot} -type f -name '*.a' -exec rm -vf {} \;
find "%buildroot" -type f -name "*.la" -delete;
find "%buildroot" -type f -name "*.a" -delete;
%clean
rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-%{packver}
%post -n %lname -p /sbin/ldconfig
%post -n libadolc1 -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%postun -n libadolc1 -p /sbin/ldconfig
%files -n libadolc1
%files -n %lname
%defattr(-,root,root)
%{_libdir}/libadolc.so.*

4
baselibs.conf Normal file
View File

@ -0,0 +1,4 @@
libadolc1
adolc-devel
requires -adolc-<targettype>
requires "libadolc1-<targettype> = <version>"