SHA256
5
0
forked from pool/flom
Files
flom/flom.spec
Andreas Stieger 0448ca1b24 Accepting request 1143679 from home:dimstar:Factory
- Enfore removal of python2 build dep (configure is started with
  --disable-pyton since ever and it'd be python2):
  + Drop pkgconfig(python) BuildRequires
  + Add libtool BuildRequires in order to be able to regenerated
    confgure
  + Remove m4//ax_python_devel.m4 during prep, so the macros are
    not known to configure
  + sed out lines containing AX_SWIG_PYTHON or AX_PYTHON_DEVEL
    from configure.ac and run autoreconf to regenerate the
    configure script

OBS-URL: https://build.opensuse.org/request/show/1143679
OBS-URL: https://build.opensuse.org/package/show/utilities/flom?expand=0&rev=7
2024-02-03 18:39:30 +00:00

110 lines
3.1 KiB
RPMSpec

#
# spec file for package flom
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: flom
Version: 1.6.1
Release: 0
Summary: Distributed Lock Manager
License: GPL-2.0-only
URL: https://www.tiian.org/flom/
Source: https://sourceforge.net/projects/flom/files/1.6.x-stable/%{name}-%{version}.tar.gz
BuildRequires: c++_compiler
BuildRequires: libtool
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: pkgconfig(dbus-1) >= 1.2.16
BuildRequires: pkgconfig(gthread-2.0) >= 2.22
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libssl)
%description
FLoM is a distributed lock manager that can be used to
synchronize shell commands, scripts and custom developed software. When used
in a shell environment, FLoM manages process synchronization in the same way
that "nice" manages process prioritization. It supports networking, abstract
resources, offers a library, encryption and peer authentication.
%package -n libflom0
Summary: Distributed lock manager library
%description -n libflom0
FLoM is a distributed lock manager that can be used to
synchronize shell commands, scripts and custom developed software.
This package contains the shared library.
%package devel
Summary: Distributed lock manager library
Requires: libflom0 = %{version}
%description devel
FLoM is a distributed lock manager that can be used to
synchronize shell commands, scripts and custom developed software.
This package contains the files required to build programs with FLoM.
%prep
%autosetup -p1
sed -i '/AX_SWIG_PYTHON/d' configure.ac
sed -i '/AX_PYTHON_DEVEL/d' configure.ac
%build
autoreconf -fiv
%configure \
--docdir=%{_docdir}/%{name} \
--disable-perl \
--disable-java \
--disable-php \
--disable-python \
--disable-testcases \
%{nil}
%make_build
%install
%make_install
find %{buildroot}/%{_libdir} -type f -name "*.a" -print -delete
find %{buildroot} -type f -name "*.la" -delete -print
# installed in files sections
rm %{buildroot}%{_docdir}/flom/COPYING
rm %{buildroot}%{_docdir}/flom/TestLog
%ldconfig_scriptlets -n libflom0
%files
%license COPYING
%doc AUTHORS ChangeLog README TODO
%doc %dir %{_docdir}/flom
%doc %{_docdir}/flom/*.conf
%{_bindir}/*
%{_mandir}/man1/*.1%{?ext_man}
%files devel
%license COPYING
%doc %dir %{_docdir}/flom
%doc %{_docdir}/flom/protocol.txt
%doc %{_docdir}/flom/html
%doc %{_docdir}/flom/examples
%{_includedir}/*
%{_libdir}/libflom.so
%files -n libflom0
%license COPYING
%{_libdir}/libflom.so.*
%changelog