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 Tue Aug 19 10:58:17 UTC 2014 - kkhere.geo@gmail.com

View File

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