merged root6

This commit is contained in:
2019-09-11 12:12:13 +02:00
99 changed files with 6983 additions and 19284 deletions

View File

@ -0,0 +1,43 @@
# musrfit - cpack
include(CPackComponent)
set (CPACK_PACKAGE_NAME "musrfit-root6")
set (CPACK_PACKAGE_VENDOR "Paul Scherrer Institute - LMU - LEM")
set (CPACK_PACKAGE_DIRECTOR "@CMAKE_CURRENT_BINARY_DIR@/pack")
set (CPACK_PACKAGE_VERSION_MAJOR "@PROJECT_VERSION_MAJOR@")
set (CPACK_PACKAGE_VERSION_MINOR "@PROJECT_VERSION_MINOR@")
set (CPACK_PACKAGE_VERSION_PATCH "@PROJECT_VERSION_PATCH@")
set (CPACK_PACKAGE_CONTACT "<andreas.suter@psi.ch>")
set (CPACK_PACKAGE_DESCRIPTION_FILE "@PROJECT_SOURCE_DIR@/README.md")
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "musrfit - muSR data analysis package")
set (CPACK_PACKAGE_HOMEPAGE_URL "http://lmu.web.psi.ch/musrfit/user/html/index.html")
set (CPACK_PACKAGE_CHECKSUM "MD5")
set (CPACK_RESOURCE_FILE_LICENSE "@PROJECT_SOURCE_DIR@/COPYING")
set (CPACK_RESOURCE_FILE_README "@PROJECT_SOURCE_DIR@/README.md")
set (CPACK_RESOURCE_FILE_WELCOME "@PROJECT_SOURCE_DIR@/cmake/welcome.txt")
set (CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "@CMAKE_INSTALL_PREFIX@;@CMAKE_INSTALL_PREFIX@/bin;@CMAKE_INSTALL_PREFIX@/include;@CMAKE_INSTALL_PREFIX@/share;@CMAKE_INSTALL_PREFIX@/lib64;@CMAKE_INSTALL_PREFIX@/lib;@CMAKE_INSTALL_PREFIX@/pkgconfig")
# we do not have any absolute paths, so do not need DESTDIR
set (CPACK_SET_DESTDIR "OFF")
set (CPACK_PACKAGE_RELOCATABLE "true")
if (${CPACK_GENERATOR} STREQUAL "RPM")
set (CPACK_RPM_PACKAGE_REQUIRES "root >= 6.16.00")
set (CPACK_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
set (CPACK_PACKAGING_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
set (CPACK_RPM_FILE_NAME "RPM-DEFAULT")
set (CPACK_RPM_PACKAGE_RELEASE "1")
# next variable for RHEL, CentOS, Fedfora
set (CPACK_RPM_PACKAGE_RELEASE_DIST "")
set (CPACK_RPM_PACKAGE_LICENSE "GPLv2")
set (CPACK_RPM_PACKAGE_VENDOR "Paul Scherrer Institute - LMU - LEM")
set (CPACK_RPM_CHANGELOG_FILE "@PROJECT_SOURCE_DIR@/cmake/ChangeLogRPM")
set (CPACK_RPM_POST_INSTALL_SCRIPT_FILE "@PROJECT_SOURCE_DIR@/cmake/post_install.sh")
set (CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE "@PROJECT_SOURCE_DIR@/cmake/post_uninstall.sh")
endif ()
if (${CPACK_GENERATOR} STREQUAL "DEB")
# to be populated yet
endif ()

4
cmake/ChangeLogRPM Normal file
View File

@ -0,0 +1,4 @@
* Mon Mar 11 2019 Andreas Suter <andreas.suter@psi.ch> - 1.4.2-2
- minor version update
* Mon Jan 14 2019 Andreas Suter <andreas.suter@psi.ch> - 1.4.0-1
- first cpack/cmake version

101
cmake/musrfit-root6.spec.in Normal file
View File

@ -0,0 +1,101 @@
Name: musrfit-root6
Version: 1.4
Release: 1%{?dist}
Summary: musrfit - muSR data analysis package
License: GPLv2
URL: http://lmu.web.psi.ch/musrfit/user/html/index.html
Source0: https://gitlab.psi.ch/nemu/musrfit/repository/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: libtool
BuildRequires: gcc
BuildRequires: make
BuildRequires: hdf-devel hdf5-devel
BuildRequires: mxml-devel
BuildRequires: fftw3-devel
BuildRequires: boost-devel
BuildRequires: gsl-devel
BuildRequires: libxml2-devel
BuildRequires: root
BuildRequires: root-io-xml
BuildRequires: root-mathmore
BuildRequires: root-minuit2
BuildRequires: qt5-qtbase-devel qt5-qtsvg-devel qt5-qtwebkit-devel
BuildRequires: nexus
Requires: hdf hdf5
Requires: mxml
Requires: fftw3
Requires: gsl
Requires: boost-devel
Requires: libxml2
Requires: root
Requires: root-io-xml
Requires: root-mathmore
Requires: root-minuit2
Requires: qt5-qtbase qt5-qtsvg qt5-qtwebkit
Requires: nexus
%description
This is a data analysis package to analyze time differential muSR and beta-NMR data. Currently it allows the following things:
- setting up most commonly used fitting functions for muSR and beta-NMR
- fitting data, including global fits
- showing the fit results and the residuals
- showing the Fourier transform of the data
- extracting easily the fitting parameters to be used in other programs (gnuplot, qtiplot/origin, ...)
- allows to generate fitting input files for follow-up runs
- allows to generate global fitting input files based on a single run template
- allows to implement more sophisticated user functions (e.g. GL vortex lattice, Meissner screening including low-energy muon stopping profiles)
Currently supported platforms:
- Linux
- Mac OS X
- Windows - not really, only for the very brave ones
%prep
%setup -q -n %{name}-%{version}
%build
##æs35 ./autogen.sh
# DOCDIR is needed to be set here. BMWlibs still makes troubles
%cmake -DASlibs=1 -DBMWlbis=1 -Dnexus=1 DOCDIR=$RPM_BUILD_ROOT/usr/share/doc/musrfit
%cmake --build ./ --clean-first -- -j8
##æs35 %configure --enable-ASlibs --enable-BMWlibs --enable-NeXus DOCDIR=$RPM_BUILD_ROOT/usr/share/doc/musrfit
##æs35 %make_build
%install
# INSTALL_ROOT is needed for Qt applications
rm -rf $RPM_BUILD_ROOT
%make_install INSTALL_ROOT=%{buildroot}
%files
%_prefix/bin/any2many
%_prefix/bin/dump_header
%_prefix/bin/msr2data
%_prefix/bin/msr2msr
%_prefix/bin/mupp
%_prefix/bin/mupp_plot
%_prefix/bin/musredit
%_prefix/bin/musrfit
%_prefix/bin/musrFT
%_prefix/bin/musrRootValidation
%_prefix/bin/musrStep
%_prefix/bin/musrt0
%_prefix/bin/musrview
%_prefix/bin/musrWiz
%_prefix/bin/write_musrRoot_runHeader
%_prefix/include/*
%_prefix/lib64/*
%license COPYING
%doc %_prefix/share/doc/musrfit
%changelog
* Thu Dec 20 2018 Andreas Suter <andreas.suter@psi.ch> - 1.4-1
- adopted to cmake
* Wed Oct 25 2017 Andreas Suter <andreas.suter@psi.ch> - 1.2-1
- first spec file for musrfit-root6

12
cmake/post_install.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
echo " >> musrfit post install script started ..."
# test if nemu-x86_64.conf does not exist
if [ ! -f "/etc/ld.so.conf.d/nemu-x86_64.conf" ]
then
echo "/usr/local/lib" >> /etc/ld.so.conf.d/nemu-x86_64.conf
echo "/usr/local/lib64" >> /etc/ld.so.conf.d/nemu-x86_64.conf
fi
/sbin/ldconfig

5
cmake/post_uninstall.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
echo " >> musrfit post uninstall script started ..."
/sbin/ldconfig

1
cmake/welcome.txt Normal file
View File

@ -0,0 +1 @@
Welcome to the musrfit package