From 6a6fc5576acb9b162f51803fced26276d5474ed30f8ed94ee9fb462a434ee1bd Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 17 Sep 2011 10:07:35 +0000 Subject: [PATCH] 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 --- adolc.changes | 5 +++++ adolc.spec | 24 ++++++++++-------------- baselibs.conf | 4 ++++ 3 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 baselibs.conf diff --git a/adolc.changes b/adolc.changes index 7284b4e..4ac320a 100644 --- a/adolc.changes +++ b/adolc.changes @@ -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 diff --git a/adolc.spec b/adolc.spec index b3bd682..8c8858c 100644 --- a/adolc.spec +++ b/adolc.spec @@ -15,11 +15,11 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild %define packver 2.2.1 Name: adolc +%define lname libadolc1 Version: 2.2.1 Release: 1 License: GPLv2 or CPL @@ -28,11 +28,11 @@ Url: http://projects.coin-or.org/ADOL-C Group: Development/Languages/C and C++ Source: %{name}-%{packver}.tar.bz2 Source1: ColPack-1.0.3.tar.bz2 +Source2: baselibs.conf BuildRequires: autoconf automake libtool BuildRequires: gcc-c++ libstdc++-devel # BuildRequires: texlive texlive-latex BuildRoot: %{_tmppath}/%{name}-%{version}-build -AutoReqProv: on %description 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 accessed memory of the given function evaluation program. -%package -n libadolc1 +%package -n %lname License: GPLv2 or CPL Summary: Algorithmic Differentiation Library for C/C++ Group: Development/Languages/C and C++ -%description -n libadolc1 +%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 @@ -65,7 +65,7 @@ accessed memory of the given function evaluation program. License: GPLv2 or CPL Summary: Algorithmic Differentiation Library for C/C++ -- development files Group: Development/Languages/C and C++ -Requires: libadolc1 = %{version} +Requires: %lname = %{version} %description devel 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 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' -exec rm -vf {} \; -find %{buildroot} -type f -name '*.a' -exec rm -vf {} \; +find "%buildroot" -type f -name "*.la" -delete; +find "%buildroot" -type f -name "*.a" -delete; -%clean -rm -rf %{buildroot} -rm -rf %{_builddir}/%{name}-%{packver} +%post -n %lname -p /sbin/ldconfig -%post -n libadolc1 -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%postun -n libadolc1 -p /sbin/ldconfig - -%files -n libadolc1 +%files -n %lname %defattr(-,root,root) %{_libdir}/libadolc.so.* diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..b4cc413 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,4 @@ +libadolc1 +adolc-devel + requires -adolc- + requires "libadolc1- = "