From 2caf0610caf0175c85e862a290c64afd6caa8329f94dd7209d33e68d63e6962d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 22 Apr 2015 18:39:23 +0000 Subject: [PATCH] Accepting request 298660 from home:pluskalm:branches:devel:libraries:c_c++ - Use source for url - Do not pull autotools when they are not used - Cleanup spec-file with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/298660 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adolc?expand=0&rev=50 --- ADOL-C-2.5.2.tgz | 3 +++ adolc-2.5.2.tar.xz | 3 --- adolc.changes | 7 +++++++ adolc.spec | 51 +++++++++++++++++++++------------------------- 4 files changed, 33 insertions(+), 31 deletions(-) create mode 100644 ADOL-C-2.5.2.tgz delete mode 100644 adolc-2.5.2.tar.xz diff --git a/ADOL-C-2.5.2.tgz b/ADOL-C-2.5.2.tgz new file mode 100644 index 0000000..d2f2d91 --- /dev/null +++ b/ADOL-C-2.5.2.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fa514d9799989d6379738c2bcf75070d9834e4d227eb32a5b278840893b2af9 +size 2320010 diff --git a/adolc-2.5.2.tar.xz b/adolc-2.5.2.tar.xz deleted file mode 100644 index 5683660..0000000 --- a/adolc-2.5.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e616db2a16c10b3a14ece14610f9c21716db027d03935dcb3fc47db03ac5c3b -size 1738396 diff --git a/adolc.changes b/adolc.changes index 11abe02..b14d4e8 100644 --- a/adolc.changes +++ b/adolc.changes @@ -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 diff --git a/adolc.spec b/adolc.spec index a5acf8d..0583106 100644 --- a/adolc.spec +++ b/adolc.spec @@ -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