forked from pool/givaro
- Replace tarball by the original variant
- Replace duplicate files by links - Delete timestamp from documentation * givaro-doc-no-build-time.patch OBS-URL: https://build.opensuse.org/package/show/science/givaro?expand=0&rev=3
This commit is contained in:
11
givaro.spec
11
givaro.spec
@@ -25,10 +25,11 @@ Summary: C++ library for arithmetic and algebraic computations
|
||||
License: CECILL-B
|
||||
Group: Productivity/Scientific/Math
|
||||
Url: http://givaro.forge.imag.fr/
|
||||
|
||||
#DL-URL: http://forge.imag.fr/frs/download.php/370/givaro-3.7.2.tar.gz
|
||||
Source: %name-%version.tar.xz
|
||||
Source: http://forge.imag.fr/frs/download.php/370/%{name}-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE givaro-doc-no-build-time.patch -- Delete timestamp from documentation
|
||||
Patch1: givaro-doc-no-build-time.patch
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gmp-devel >= 3.1.1
|
||||
BuildRequires: graphviz
|
||||
@@ -100,6 +101,7 @@ the Givaro API.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --enable-doc --with-docdir="%_docdir/%name"
|
||||
@@ -110,6 +112,8 @@ b="%buildroot";
|
||||
make install DESTDIR="$b";
|
||||
rm -f "$b/%_libdir"/*.la;
|
||||
|
||||
%fdupes -s %{buildroot}/%{_docdir}/%{name}/givaro-html/
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
@@ -130,6 +134,7 @@ rm -f "$b/%_libdir"/*.la;
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%dir %_docdir/%name/
|
||||
%exclude %{_docdir}/%{name}/givaro-html/INSTALL
|
||||
%_docdir/%name/givaro.html
|
||||
%_docdir/%name/givaro-html/
|
||||
|
||||
|
Reference in New Issue
Block a user