Accepting request 298663 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/298663
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adolc?expand=0&rev=22
This commit is contained in:
Stephan Kulow 2015-04-25 14:46:44 +00:00 committed by Git OBS Bridge
commit 33330dfc3c
4 changed files with 33 additions and 31 deletions

3
ADOL-C-2.5.2.tgz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2fa514d9799989d6379738c2bcf75070d9834e4d227eb32a5b278840893b2af9
size 2320010

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e616db2a16c10b3a14ece14610f9c21716db027d03935dcb3fc47db03ac5c3b
size 1738396

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 22 17:36:30 UTC 2015 - mpluskal@suse.com
- Use source for url
- Do not pull autotools when they are not used
- Cleanup spec-file with spec-cleaner
-------------------------------------------------------------------
Tue Aug 19 10:58:17 UTC 2014 - kkhere.geo@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package adolc
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,28 +16,23 @@
#
Name: adolc
%define lname libadolc2
Name: adolc
Version: 2.5.2
Release: 0
Summary: Algorithmic Differentiation Library for C/C++
License: GPL-2.0+ or EPL-1.0
Group: Development/Libraries/C and C++
Url: http://projects.coin-or.org/ADOL-C
Source: %{name}-%{version}.tar.xz
Source0: http://www.coin-or.org/download/source/ADOL-C/ADOL-C-%{version}.tgz
Source1: baselibs.conf
BuildRequires: ColPack-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: xz
# BuildRequires: texlive texlive-latex
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
%description
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
@ -48,11 +43,11 @@ 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 %lname
%package -n %{lname}
Summary: Algorithmic Differentiation Library for C/C++
Group: System/Libraries
%description -n %lname
%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
@ -66,7 +61,7 @@ accessed memory of the given function evaluation program.
%package devel
Summary: Algorithmic Differentiation Library for C/C++ -- development files
Group: Development/Libraries/C and C++
Requires: %lname = %{version}
Requires: %{lname} = %{version}
%description devel
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
@ -84,7 +79,7 @@ This package provides the development environment for adolc
%package doc
Summary: Algorithmic Differentiation Library for C/C++ -- documentation
Group: Documentation/Other
%if 0%{?suse_version} && %{suse_version} >= 1120
%if 0%{?suse_version} && 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
@ -102,31 +97,31 @@ accessed memory of the given function evaluation program.
This package provides the user´s manual for adolc
%prep
%setup -q -n %{name}-%{version}
%setup -q -n ADOL-C-%{version}
%build
# autoreconf -v --install --force
%configure --prefix=/usr
make %{_smp_mflags}
%configure
make %{?_smp_mflags}
# pushd ADOL-C/doc
# for ((i=0; i < 3; i++)); do
# pdflatex adolc-manual.tex &>/dev/null
# done
%install
%makeinstall
install -d %{buildroot}%{_datadir}/doc/packages/%{name}
install -m 644 README AUTHORS BUGS LICENSE 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" -delete;
find "%buildroot" -type f -name "*.a" -delete;
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -d %{buildroot}%{_docdir}/%{name}
install -m 644 README AUTHORS BUGS LICENSE TODO %{buildroot}%{_docdir}/%{name}
install -m 644 ADOL-C/doc/adolc-manual.pdf %{buildroot}%{_docdir}/%{name}
install -m 644 ADOL-C/doc/short_ref.pdf %{buildroot}%{_docdir}/%{name}
find %{buildroot} -type f -name "*.la" -delete -print
find %{buildroot} -type f -name "*.a" -delete;
%post -n %lname -p /sbin/ldconfig
%post -n %{lname} -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %lname
%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/libadolc.so.*
@ -145,7 +140,7 @@ find "%buildroot" -type f -name "*.a" -delete;
%files doc
%defattr(-,root,root)
%dir %{_datadir}/doc/packages/%{name}
%{_datadir}/doc/packages/%{name}/*
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%changelog