File:  [Coherent Logic Development] / freem-rpmbuild-redhat / SPECS / freem.spec
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Mar 27 14:49:58 2025 UTC (7 days, 13 hours ago) by snw
Branches: MAIN, CoherentLogicDevelopment
CVS tags: start, HEAD
Initial commit

Name:           freem
Version:        0.62.3
Release:        1%{?dist}
Summary:        Coherent Logic FreeM MUMPS interpreter and database
License:        AGPL-3.0
URL:            http://freem.coherent-logic.com/
Source0:        http://freem.coherent-logic.com/downloads/freem-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  libtool
BuildRequires:  texinfo
BuildRequires:	readline-devel
BuildRequires:  systemd

%description
Coherent Logic FreeM MUMPS interpreter and database

%prep
%setup -q

%build
./configure --prefix=%{_prefix}
%{make_build} -j

%install
%{make_install} PREFIX=%{_prefix}

%pre
groupadd freem
useradd -m -d /home/freem -c "FreeM User" -g freem freem

%post
cp /usr/share/freem/examples/init/systemd/fedora/freem.service %{_unitdir}
if [ $1 -gt 1 ]; then
    /usr/bin/fmadm reconfigure
else
    /usr/bin/fmadm configure
fi

%postun
systemctl disable --now freem
userdel -r freem
rm %{_unitdir}/freem.service
rm -rf /usr/etc/freem

%files
/usr/bin/fmadm
/usr/bin/freem
/usr/include/freem.h
/usr/include/merr.h
/usr/lib/libfreem.la
/usr/lib/libfreem.so
/usr/lib/libfreem.so.0
/usr/lib/libfreem.so.0.0.0
/usr/share/doc/freem/README.md
/usr/share/doc/freem/freem.1
/usr/share/info/dir
/usr/share/info/freem.info.gz
/usr/share/man/man1/freem.1.gz
/usr/var/freem/DEFAULT/SYSTEM/globals/sysns_global.txt
/usr/var/freem/DEFAULT/SYSTEM/routines/%DB.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ED.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%MAPPING.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%NETHTTP.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%OBJECT.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%STRING.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%SYSINIT.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%SYSOOP.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%SYSPOLY.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%SYSWMERGE.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%TUIMENU.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ZCOLUMNS.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ZFRMSAMP.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ZFRMXEC.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ZHELP.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ZMAINT.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ZREVQRY.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ZROWS.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ulcharacter.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ulmath.m
/usr/var/freem/DEFAULT/SYSTEM/routines/%ulstring.m
/usr/var/freem/DEFAULT/SYSTEM/routines/sysns_routine.txt
/usr/var/freem/DEFAULT/USER/globals/userns_global.txt
/usr/var/freem/DEFAULT/USER/routines/userns_routine.txt
/usr/var/freem/DEFAULT/journals/journals.txt
/usr/share/freem/examples/init/freebsd_rc/freem
/usr/share/freem/examples/init/solaris/freem
/usr/share/freem/examples/init/systemd/fedora/freem.service
/usr/share/freem/examples/init/systemd/freem.service

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>