Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37399208
en ru br
ALT Linux repositórios
S:10E-alt1_3
5.0: 11beta-alt1

Group :: Sistema/Bibliotecas
RPM: libnewmat

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Epoch: 1
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define major 1
%define majorminor %{major}.0
%define lname newmat
%define libname lib%{lname}%{major}
%define libdev  lib%{lname}-devel

Name: libnewmat
Version: 10E
Release: alt1_3
Summary: C++ library for manipulating matrices
Group: System/Libraries
License: Public Use
Url: http://www.robertnz.net/nm_intro.htm
Source0: http://www.robertnz.net/ftp/newmat10.tar.gz
BuildRequires: gcc-c++
Source44: import.info

%description
This C++ library is intended for scientists and engineers who need to
manipulate a variety of types of matrices using standard matrix
operations. Emphasis is on the kind of operations needed in statistical
calculations such as least squares, linear equation solve and
eigenvalues.

%package -n %{libname}
Group: System/Libraries
Summary: C++ library for manipulating matrices

%description -n %{libname}
This C++ library is intended for scientists and engineers who need to
manipulate a variety of types of matrices using standard matrix
operations. Emphasis is on the kind of operations needed in statistical
calculations such as least squares, linear equation solve and
eigenvalues.

%package -n %{libdev}
Summary: Development files for %name
Group: Development/C++
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
Provides: %{lname}-devel = %{version}-%{release}
#Provides: lib%{lname}-devel = %{version}-%{release}

%description -n %{libdev}
This package contains libraries and header files for
developing applications that use %name.

%prep
%setup -qcn %{name}-%{version}

echo 'libnewmat.so.$(MAJOR).$(MINOR): $(newmat_lobj)' >> nm_gnu.mak
echo ' $(CXX) $(LDFLAGS) -shared -Wl,-soname,libnewmat.so.$(MAJOR) -o $ at  $^' >> nm_gnu.mak

%build

%make_build -f nm_gnu.mak CXXFLAGS="%optflags -fPIC" libnewmat.so.%{majorminor}

%install
# Create dirs
install -d -m 0755 %{buildroot}%{_includedir}/newmat
install -d -m 0755 %{buildroot}%{_libdir}/
# Install files
install -m 0755 libnewmat.so.%{majorminor} %{buildroot}%{_libdir}/
install -m 0644 *.h %{buildroot}%{_includedir}/newmat
# Lib symlinks
ln -s libnewmat.so.%{majorminor} %{buildroot}%{_libdir}/libnewmat.so.%{major}
ln -s libnewmat.so.%{majorminor} %{buildroot}%{_libdir}/libnewmat.so

%files -n %{libname}
%doc --no-dereference COPYING
%_libdir/libnewmat.so.%{major}
%_libdir/libnewmat.so.%{major}.*

%files -n %{libdev}
%doc nm10.htm README AUTHORS example.cpp sl_ex.cpp nl_ex.cpp garch.cpp test_exc.cpp rbd.css add_time.png
%dir %{_includedir}/newmat/
%{_includedir}/newmat/*.h
%{_libdir}/libnewmat.so


%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009