File GASPware.spec of Package GASPware

%define debug_package %{nil}

Name:          GASPware
Version:       1.0
Release:       0
Summary:       The GASP analysis programs
License:       BSD-4-Clause
Group:         Productivity/Scientific/Physics
Url:           https://github.com/csteke/GASPware

Source0:       %{name}-%{version}.tar.gz
Source1:       %{name}-cmake.tgz

BuildRequires: cmake >= 3.23
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
BuildRequires: libX11-devel
BuildRequires: Mesa-libGL-devel
BuildRequires: glu-devel
BuildRequires: libXext-devel
BuildRequires: xbitmaps

%description
GASPware is a collection of programs for analyzing spectra and sorting GASP/Euroball data.

%package       -n lib%{name}
Summary:       GASPware libraries

%description   -n lib%{name}
libGASPware are software libraries (libinter and libYgl) for compiling the GASPware package

%package       -n lib%{name}-devel
Summary:       Development files for lib%{name}
Group:         Development/Libraries/C and C++

%description   -n lib%{name}-devel
The lib%{name}-devel package contains header files for developing applications that use lib%{name}.

%prep
%setup -qn %{name}-%{version}
tar -zxvf %{SOURCE1}

%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build

%install
%cmake_install

%post
sed -i '/%{name}/d' /etc/bash.bashrc.local
echo "source %{_datadir}/%{name}/%{name}-env.sh" >> /etc/bash.bashrc.local

%postun
sed -i '/%{name}/d' /etc/bash.bashrc.local

%post -n lib%{name} -p /sbin/ldconfig

%postun -n lib%{name} -p /sbin/ldconfig

%files
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

%files -n lib%{name}
%{_libdir}/*.so

%files -n lib%{name}-devel
%{_includedir}/*

%changelog
* Mon Sep 21 2015 Axiotis Michail
- 
openSUSE Build Service is sponsored by