Accepting request 82578 from home:jengelh:bl
- Implement baselibs for package; remove redundant tags/sections OBS-URL: https://build.opensuse.org/request/show/82578 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adolc?expand=0&rev=20
This commit is contained in:
parent
e851cce9be
commit
6a6fc5576a
@ -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
|
Thu Jun 9 10:37:26 UTC 2011 - kkhere.geo@gmail.com
|
||||||
|
|
||||||
|
24
adolc.spec
24
adolc.spec
@ -15,11 +15,11 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%define packver 2.2.1
|
%define packver 2.2.1
|
||||||
|
|
||||||
Name: adolc
|
Name: adolc
|
||||||
|
%define lname libadolc1
|
||||||
Version: 2.2.1
|
Version: 2.2.1
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPLv2 or CPL
|
License: GPLv2 or CPL
|
||||||
@ -28,11 +28,11 @@ Url: http://projects.coin-or.org/ADOL-C
|
|||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
Source: %{name}-%{packver}.tar.bz2
|
Source: %{name}-%{packver}.tar.bz2
|
||||||
Source1: ColPack-1.0.3.tar.bz2
|
Source1: ColPack-1.0.3.tar.bz2
|
||||||
|
Source2: baselibs.conf
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
BuildRequires: gcc-c++ libstdc++-devel
|
BuildRequires: gcc-c++ libstdc++-devel
|
||||||
# BuildRequires: texlive texlive-latex
|
# BuildRequires: texlive texlive-latex
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
AutoReqProv: on
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
|
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
|
truncation errors at a small multiple of the run time and randomly
|
||||||
accessed memory of the given function evaluation program.
|
accessed memory of the given function evaluation program.
|
||||||
|
|
||||||
%package -n libadolc1
|
%package -n %lname
|
||||||
License: GPLv2 or CPL
|
License: GPLv2 or CPL
|
||||||
Summary: Algorithmic Differentiation Library for C/C++
|
Summary: Algorithmic Differentiation Library for C/C++
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
|
|
||||||
%description -n libadolc1
|
%description -n %lname
|
||||||
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
|
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
|
||||||
facilitates the evaluation of first and higher derivatives of vector
|
facilitates the evaluation of first and higher derivatives of vector
|
||||||
functions that are defined by computer programs written in C or
|
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
|
License: GPLv2 or CPL
|
||||||
Summary: Algorithmic Differentiation Library for C/C++ -- development files
|
Summary: Algorithmic Differentiation Library for C/C++ -- development files
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
Requires: libadolc1 = %{version}
|
Requires: %lname = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
|
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 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/adolc-manual.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
|
||||||
install -m 644 ADOL-C/doc/short_ref.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 "*.la" -delete;
|
||||||
find %{buildroot} -type f -name '*.a' -exec rm -vf {} \;
|
find "%buildroot" -type f -name "*.a" -delete;
|
||||||
|
|
||||||
%clean
|
%post -n %lname -p /sbin/ldconfig
|
||||||
rm -rf %{buildroot}
|
|
||||||
rm -rf %{_builddir}/%{name}-%{packver}
|
|
||||||
|
|
||||||
%post -n libadolc1 -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libadolc1 -p /sbin/ldconfig
|
%files -n %lname
|
||||||
|
|
||||||
%files -n libadolc1
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libadolc.so.*
|
%{_libdir}/libadolc.so.*
|
||||||
|
|
||||||
|
4
baselibs.conf
Normal file
4
baselibs.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
libadolc1
|
||||||
|
adolc-devel
|
||||||
|
requires -adolc-<targettype>
|
||||||
|
requires "libadolc1-<targettype> = <version>"
|
Loading…
Reference in New Issue
Block a user