File hopm.spec of Package hopm
#
# spec file for package irssi
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# use either libre, or open ssl, or none.
%define ssl_backend open
Name: hopm
%define pkg_name hopm
Version: 3.1
Release: 0
License: GPLv2
Summary: Hybrid Open Proxy Monitor
Source: %{name}-%{version}.tar.xz
#Source1: %{name}.init
#
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# autogen requirements:
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: %{ssl_backend}ssl-devel
%description
The Hybrid IRC Open Proxy Monitor
%prep
%setup -q -n %{name}-%{version}
%build
%configure --sysconfdir=/etc/hopm
%__make
#python setup.py build
%install
%makeinstall
%pre
# since user_group_add doesn't want to work on the build service...
%{_sbindir}/groupadd -r opm 2>/dev/null ||:
%{_sbindir}/useradd -r -g opm -d /var/lib/empty -s %{_sbindir}/nologin -c "%{pkg_name} daemon" opm 2>/dev/null || :
%files
%defattr(-,root,root,-)
%dir %{_sysconfdir}/hopm
%dir %{_var}/log
%{_bindir}/hopm
%{_sysconfdir}/hopm/*
%changelog