File python3-zm_database_init.spec of Package python-zm_database_init
#
# spec file for package python-zm_database_init
#
Name: python3-zm_database_init
Version: 3.3.3
Release: 1.2
Url: https://gitorious.org/zoneminder-rpm-database-init
Summary: A script for ZoneMinder database initialization and upgrade
License: GPL-2.0
Group: Development/Languages/Python
Source: zm_database_init-%{version}.tar.gz
# PATCH-OPENSUSE: config_path.patch - Move config from /etc to /etc/zoneminder
Patch1: config_path.patch
Patch2: mysql_configuration_ConfigParser.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3
BuildRequires: python3-setuptools
BuildArch: noarch
Obsoletes: python-zm_database_init
Conflicts: python-zm_database_init
%description
The ZoneMinder RPMs for opensuse uses the python script zm_database_init to initialize and upgrade the ZoneMinder database schema.
%prep
%setup -q -n zoneminder-rpm-database-init-%{version}
%patch -P1 -p1
%patch -P2 -p1
%build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%dir %{_sysconfdir}/zoneminder
%{python3_sitelib}/*
/usr/bin/zm_database_init
%config /etc/zoneminder/zm_database_init.conf
%changelog