OK, I hope I have taken into acount of all suggestions except one (I
found nothing on %licence in %files). For now I have made the
4.3.1+patch version as the git repo, while it indeed solves the place
where are installed libraries, does not put correct values in
itpp-config and itpp.pc. Beside the patch needed to correct this I have
a git version of the patch that I attach also here. I will submit the
necessary change to itpp with the hope it will be integrated rapidly so
as to avoid having to patch the git version.

Again thank's for all the comments I gathered so far.

        Theo.
Name:           itpp
Version:        4.3.1
Release:        1%{?dist}
Summary:        C++ library for math, signal/speech processing, and communications

License:        GPLv3
URL:            http://itpp.sourceforge.net/
Source:         http://downloads.sourceforge.net/itpp/%{name}-%{version}.tar.bz2
# Taken from upstream at:
# https://sourceforge.net/p/itpp/git/ci/8ff787c218c31ad90c51c2da54085e79bb7fd1b3/
Patch1:         itpp-lib64.patch

BuildRequires:  gcc-gfortran, atlas-devel, fftw-devel
BuildRequires:  tetex-latex
BuildRequires:  cmake, doxygen, ghostscript

%description
IT++ is a C++ library of mathematical, signal processing, speech
processing, and communications classes and functions.  The kernel of
the IT++ library is built upon templated vector and matrix classes
with many functions for their manipulation.  Such a kernel makes IT++
similar to Octave.  IT++ makes extensive use of existing open-source
libraries (but not only) for increased functionality, speed, and
accuracy.


%package devel
Summary:        Development files for itpp
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       fftw-devel%{?_isa}, atlas-devel%{?_isa}, gcc-gfortran%{?_isa}

%description devel
This package contains the itpp header files, libs, and man pages.


%package doc
Summary:        Documentation for itpp
BuildArch:      noarch

%description doc
This package contains the documentation for itpp.


%prep
%setup -q
%patch1 -p1 -b .lib64

%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake -DBLA_VENDOR=ATLAS -DCMAKE_BUILD_TYPE=Release ..
popd
make -C %{_target_platform} %{?_smp_mflags}

%install
make -C %{_target_platform} install DESTDIR=$RPM_BUILD_ROOT


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%doc COPYING AUTHORS ChangeLog NEWS README
%{_libdir}/*.so.*
%{_datadir}/%{name}

%files devel
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_bindir}/%{name}-config
%{_mandir}/man1/*

%files doc
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html/

%changelog
* Sun Jan 22 2017 [email protected] = 4.3.1-0
- Switched to version 4.3.1
- Adapted to cmake build.

* Wed Jan 18 2017 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
  by assuming the date is correct and changing the weekday.
  Tue Sep 13 2006 --> Tue Sep 12 2006 or Wed Sep 13 2006 or Tue Sep 19 2006 or ....
  Sun Oct 28 2006 --> Sun Oct 22 2006 or Sat Oct 28 2006 or Sun Oct 29 2006 or ....

* Wed Feb 09 2011 Fedora Release Engineering <[email protected]> - 4.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 4.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Fri Apr 24 2009 Milos Jakubicek <[email protected]> - 4.0.6-1
- Fix FTBFS:
- Update to 4.0.6 bugfix release
- Dropped itpp-gcc43.patch (merged upstream).
- Added itpp-gcc44.patch

* Wed Feb 25 2009 Fedora Release Engineering <[email protected]> - 4.0.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Dec 15 2008 Deji Akingunola <[email protected]> - 4.0.0-6
- Rebuild for atlas-3.8.2

* Sun Sep 14 2008 Manuel "lonely wolf" Wolfshant <[email protected]> - 4.0.0-5
- Fix building with gcc4.3

* Fri May 23 2008 Jon Stanley <[email protected]> - 4.0.0-4
- Fix license tag

* Mon Feb 18 2008 Fedora Release Engineering <[email protected]> - 4.0.0-3
- Autorebuild for GCC 4.3

* Sun Dec  9 2007  Ed Hill <[email protected]> - 4.0.0-2
- fix hard-coded libdir error

* Sun Dec  9 2007  Ed Hill <[email protected]> - 4.0.0-1
- new upstream 4.0.0

* Sat Aug 25 2007  Ed Hill <[email protected]> - 3.10.12-1
- new upstream 3.10.12

* Tue Apr 17 2007  Ed Hill <[email protected]> - 3.10.10-1
- new upstream 3.10.10

* Tue Apr 17 2007  Ed Hill <[email protected]> - 3.10.9-2
- fix dir ownership per bz #233842

* Sun Mar 18 2007  Ed Hill <[email protected]> - 3.10.9-1
- new upstream 3.10.9

* Sat Feb 10 2007  Ed Hill <[email protected]> - 3.10.8-1
- new upstream 3.10.8

* Wed Dec  6 2006  Ed Hill <[email protected]> - 3.10.7-1
- new upstream 3.10.7

* Sat Oct 28 2006  Ed Hill <[email protected]> - 3.10.6-1
- new upstream 3.10.6

* Wed Oct 11 2006  Ed Hill <[email protected]> - 3.10.5-7
- explicitly link with -lstdc++

* Tue Oct 10 2006  Ed Hill <[email protected]> - 3.10.5-6
- fix unowned dir

* Sun Oct  8 2006  Ed Hill <[email protected]> - 3.10.5-5
- fix permissions for itpp/base/itpp_version.h
- make sure we ship the license
- remove redundant BRs and add -devel BRs
- remove only the gcc bits from itpp-config and itpp.pc

* Sat Oct  7 2006  Ed Hill <[email protected]> - 3.10.5-4
- disable dependency tracking to speed build, sanitize itpp.pc,
  and de-macro-ize an earlier changelog entry

* Sat Sep 23 2006  Ed Hill <[email protected]> - 3.10.5-3
- disable static libs, add pkgconfig, and sanitize itpp-config

* Wed Sep 13 2006  Ed Hill <[email protected]> - 3.10.5-2
- fix the html docs and add BuildRequires

* Tue Sep 12 2006  Ed Hill <[email protected]> - 3.10.5-1
- initial version for Fedora Extras

* Mon Feb 13 2006  Adam Piatyszek  <[email protected]>
- Created subpackage `itpp-html-doc' with HTML documentation

* Fri Feb 10 2006  Adam Piatyszek  <[email protected]>
- Added missing *.a and *.m files

* Thu Feb 09 2006  Adam Piatyszek  <[email protected]>
- Changes in `Name', `Version' and `Release' definitions
- Removed distribution dependent release settings
- Added DESTDIR to make install command

* Wed Dec 28 2005  Adam Piatyszek  <[email protected]>
- Fixed `name' and `version' definitions
- Added `itpp-config' in files section

* Fri Dec 23 2005  Adam Piatyszek  <[email protected]>
- Initial spec file prepared
diff --git a/ChangeLog b/ChangeLog
index aa0828f..307dffa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-02-09  Bogdan Cristea <[email protected]>
+	* itpp/CMakeLists.txt: fixed installation path issues on 64 bits systems
+	(bug #236)
+
 2013-07-04  Bogdan Cristea <[email protected]>
 	* cmake/Modules/FindBLAS.cmake, cmake/Modules/FindLAPACK.cmake,
 	doc/local/installation.doc: add support for detecting itpp-external compiled
diff --git a/itpp/CMakeLists.txt b/itpp/CMakeLists.txt
index e8c78d3..0821855 100644
--- a/itpp/CMakeLists.txt
+++ b/itpp/CMakeLists.txt
@@ -69,8 +69,8 @@ set_target_properties(${libitpp_target} PROPERTIES VERSION ${LIBITPP_VERSION_STR
 #library
 install(TARGETS ${libitpp_target}
         RUNTIME DESTINATION bin
-        LIBRARY DESTINATION lib
-        ARCHIVE DESTINATION lib)
+        LIBRARY DESTINATION lib${LIB_SUFFIX}
+        ARCHIVE DESTINATION lib${LIB_SUFFIX})
 
 #headers
 install(DIRECTORY ${CMAKE_SOURCE_DIR}/itpp DESTINATION include FILES_MATCHING PATTERN "*.h")
@@ -111,5 +111,5 @@ if (UNIX)
   install(FILES ${CMAKE_BINARY_DIR}/itpp-config DESTINATION bin PERMISSIONS OWNER_READ OWNER_EXECUTE
     GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
   install(FILES ${CMAKE_BINARY_DIR}/itpp-config.1 DESTINATION share/man/man1)
-  install(FILES ${CMAKE_BINARY_DIR}/itpp.pc DESTINATION lib/pkgconfig)
+  install(FILES ${CMAKE_BINARY_DIR}/itpp.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig)
 endif()
index 29785e7..f93a37f 100644
--- a/itpp-config.cmake.in
+++ b/itpp-config.cmake.in
@@ -2,7 +2,7 @@
 
 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=${exec_prefix}/lib@LIB_SUFFIX@
 includedir=${prefix}/include
 
 debug_flag=no
diff --git a/itpp.pc.cmake.in b/itpp.pc.cmake.in
index d92ce96..d6316f0 100644
--- a/itpp.pc.cmake.in
+++ b/itpp.pc.cmake.in
@@ -1,6 +1,6 @@
 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@CMAKE_INSTALL_PREFIX@/lib
+libdir=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@
 includedir=@CMAKE_INSTALL_PREFIX@/include
 
 Name: @PACKAGE_NAME@

Name:           itpp
Version:        4.3.1
Release:        1%{?dist}
Summary:        C++ library for math, signal/speech processing, and communications

License:        GPLv3
URL:            http://itpp.sourceforge.net/
Source0:        http://downloads.sourceforge.net/itpp/itpp-%{version}.tar.bz2
# Taken from upstream at:
# https://sourceforge.net/p/itpp/git/ci/8ff787c218c31ad90c51c2da54085e79bb7fd1b3/
Patch1:         itpp-lib64.patch

BuildRequires:  gcc-gfortran, atlas-devel, fftw-devel
BuildRequires:  tetex-latex
BuildRequires:  cmake, doxygen, ghostscript

%description
IT++ is a C++ library of mathematical, signal processing, speech
processing, and communications classes and functions.  The kernel of
the IT++ library is built upon templated vector and matrix classes
with many functions for their manipulation.  Such a kernel makes IT++
similar to Octave.  IT++ makes extensive use of existing open-source
libraries (but not only) for increased functionality, speed, and
accuracy.


%package devel
Summary:        Development files for itpp
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       fftw-devel%{?_isa}, atlas-devel%{?_isa}, gcc-gfortran%{?_isa}

%description devel
This package contains the itpp header files, libs, and man pages.


%package doc
Summary:        Documentation for itpp
BuildArch:      noarch

%description doc
This package contains the documentation for itpp.


%prep
%setup -q
%patch1 -p1 -b .lib64

%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake -DBLA_VENDOR=ATLAS -DCMAKE_BUILD_TYPE=Release ..
popd
make -C %{_target_platform} %{?_smp_mflags}

%install
make -C %{_target_platform} install DESTDIR=$RPM_BUILD_ROOT


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%doc COPYING AUTHORS ChangeLog NEWS README
%{_libdir}/*.so.*
%{_datadir}/%{name}

%files devel
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_bindir}/%{name}-config
%{_mandir}/man1/*

%files doc
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html/

%changelog
* Wed Jan 18 2017 [email protected] = 4.3.1-0
- Switched to version 4.3.1
- Adapted to cmake build.

* Wed Jan 18 2017 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
  by assuming the date is correct and changing the weekday.
  Tue Sep 13 2006 --> Tue Sep 12 2006 or Wed Sep 13 2006 or Tue Sep 19 2006 or ....
  Sun Oct 28 2006 --> Sun Oct 22 2006 or Sat Oct 28 2006 or Sun Oct 29 2006 or ....

* Wed Feb 09 2011 Fedora Release Engineering <[email protected]> - 4.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 4.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Fri Apr 24 2009 Milos Jakubicek <[email protected]> - 4.0.6-1
- Fix FTBFS:
- Update to 4.0.6 bugfix release
- Dropped itpp-gcc43.patch (merged upstream).
- Added itpp-gcc44.patch

* Wed Feb 25 2009 Fedora Release Engineering <[email protected]> - 4.0.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Dec 15 2008 Deji Akingunola <[email protected]> - 4.0.0-6
- Rebuild for atlas-3.8.2

* Sun Sep 14 2008 Manuel "lonely wolf" Wolfshant <[email protected]> - 4.0.0-5
- Fix building with gcc4.3

* Fri May 23 2008 Jon Stanley <[email protected]> - 4.0.0-4
- Fix license tag

* Mon Feb 18 2008 Fedora Release Engineering <[email protected]> - 4.0.0-3
- Autorebuild for GCC 4.3

* Sun Dec  9 2007  Ed Hill <[email protected]> - 4.0.0-2
- fix hard-coded libdir error

* Sun Dec  9 2007  Ed Hill <[email protected]> - 4.0.0-1
- new upstream 4.0.0

* Sat Aug 25 2007  Ed Hill <[email protected]> - 3.10.12-1
- new upstream 3.10.12

* Tue Apr 17 2007  Ed Hill <[email protected]> - 3.10.10-1
- new upstream 3.10.10

* Tue Apr 17 2007  Ed Hill <[email protected]> - 3.10.9-2
- fix dir ownership per bz #233842

* Sun Mar 18 2007  Ed Hill <[email protected]> - 3.10.9-1
- new upstream 3.10.9

* Sat Feb 10 2007  Ed Hill <[email protected]> - 3.10.8-1
- new upstream 3.10.8

* Wed Dec  6 2006  Ed Hill <[email protected]> - 3.10.7-1
- new upstream 3.10.7

* Sat Oct 28 2006  Ed Hill <[email protected]> - 3.10.6-1
- new upstream 3.10.6

* Wed Oct 11 2006  Ed Hill <[email protected]> - 3.10.5-7
- explicitly link with -lstdc++

* Tue Oct 10 2006  Ed Hill <[email protected]> - 3.10.5-6
- fix unowned dir

* Sun Oct  8 2006  Ed Hill <[email protected]> - 3.10.5-5
- fix permissions for itpp/base/itpp_version.h
- make sure we ship the license
- remove redundant BRs and add -devel BRs
- remove only the gcc bits from itpp-config and itpp.pc

* Sat Oct  7 2006  Ed Hill <[email protected]> - 3.10.5-4
- disable dependency tracking to speed build, sanitize itpp.pc,
  and de-macro-ize an earlier changelog entry

* Sat Sep 23 2006  Ed Hill <[email protected]> - 3.10.5-3
- disable static libs, add pkgconfig, and sanitize itpp-config

* Wed Sep 13 2006  Ed Hill <[email protected]> - 3.10.5-2
- fix the html docs and add BuildRequires

* Tue Sep 12 2006  Ed Hill <[email protected]> - 3.10.5-1
- initial version for Fedora Extras

* Mon Feb 13 2006  Adam Piatyszek  <[email protected]>
- Created subpackage `itpp-html-doc' with HTML documentation

* Fri Feb 10 2006  Adam Piatyszek  <[email protected]>
- Added missing *.a and *.m files

* Thu Feb 09 2006  Adam Piatyszek  <[email protected]>
- Changes in `Name', `Version' and `Release' definitions
- Removed distribution dependent release settings
- Added DESTDIR to make install command

* Wed Dec 28 2005  Adam Piatyszek  <[email protected]>
- Fixed `name' and `version' definitions
- Added `itpp-config' in files section

* Fri Dec 23 2005  Adam Piatyszek  <[email protected]>
- Initial spec file prepared

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to