From a74c9cf6cbff3f69ab7d7b04dec99dc1bbfaac044371bb0e4d3e4b0ef07753d1 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Mon, 11 Jun 2018 11:11:51 +0000 Subject: [PATCH] - Install license using %license - Install documentation using %doc instead of manually - Cleanup long description by only having one verbose copy in long description - spec file cleanup OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adolc?expand=0&rev=60 --- adolc.changes | 9 +++++++++ adolc.spec | 40 +++++++++++----------------------------- 2 files changed, 20 insertions(+), 29 deletions(-) diff --git a/adolc.changes b/adolc.changes index 5b994de..9588cd9 100644 --- a/adolc.changes +++ b/adolc.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Jun 11 11:00:31 UTC 2018 - adam.majer@suse.de + +- Install license using %license +- Install documentation using %doc instead of manually +- Cleanup long description by only having one verbose copy in long + description +- spec file cleanup + ------------------------------------------------------------------- Sun Jun 10 07:59:00 UTC 2018 - antoine.belvire@opensuse.org diff --git a/adolc.spec b/adolc.spec index 5a463c9..c47268c 100644 --- a/adolc.spec +++ b/adolc.spec @@ -16,7 +16,7 @@ # -%define lname libadolc2 +%define lname libadolc2 Name: adolc Version: 2.6.3 Release: 0 @@ -36,7 +36,6 @@ BuildRequires: boost-devel BuildRequires: gcc-c++ BuildRequires: libstdc++-devel BuildRequires: pkg-config -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The package ADOL-C (Automatic Differentiation by OverLoading in C++) @@ -55,14 +54,8 @@ Group: System/Libraries %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 -C++. The resulting derivative evaluation routines may be called from -C/C++, Fortran, or any other language that can be linked with C. -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. +This package contains the runtime library for ADOL-C %package devel Summary: Algorithmic Differentiation Library for C/C++ -- development files @@ -71,21 +64,13 @@ Requires: %{lname} = %{version} %description devel 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 -C++. The resulting derivative evaluation routines may be called from -C/C++, Fortran, or any other language that can be linked with C. -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. - -This package provides the development environment for adolc +This package provides the development environment for ADOL-C %package doc Summary: Algorithmic Differentiation Library for C/C++ -- documentation Group: Documentation/Other -%if 0%{?suse_version} && 0%{?suse_version} >= 1120 +%if 0%{?suse_version} BuildArch: noarch %endif @@ -100,7 +85,8 @@ 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. -This package provides the userĀ“s manual for adolc +This package provides the user's manual for ADOL-C + %prep %setup -q -n ADOL-C-%{version} @@ -116,10 +102,6 @@ make %{?_smp_mflags} %install 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; @@ -128,11 +110,10 @@ find %{buildroot} -type f -name "*.a" -delete; %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} -%defattr(-,root,root) +%license LICENSE %{_libdir}/libadolc.so.* %files devel -%defattr(-,root,root) %dir %{_includedir}/adolc %dir %{_includedir}/adolc/drivers %dir %{_includedir}/adolc/internal @@ -149,8 +130,9 @@ find %{buildroot} -type f -name "*.a" -delete; %{_libdir}/pkgconfig/adolc.pc %files doc -%defattr(-,root,root) -%dir %{_docdir}/%{name} -%{_docdir}/%{name}/* +%doc README AUTHORS BUGS TODO +%doc ADOL-C/doc/adolc-manual.pdf +%doc ADOL-C/doc/short_ref.pdf +%license LICENSE %changelog