Files
cacti-plugin-mactrack/cacti-plugin-mactrack.spec
Joel Baltazor f69f67871b Accepting request 1294545 from home:joelgb:branches:server:monitoring
- Update to latest 4.8 from github develop branch commit 989de23
 - Tranlation updates
 - fix duplicity #256 
 - fix PHP deprecated #257 
 - fix Current Mactrack breaks Cacti all together, the Cacti pages will not even load. #255
 - fix incorrect create index command #258
 - fix macauth - missing bracket #261
 - fix few new install issues #262
 - fix limit 0,-1 #263
 - QA: Converting to buttons

OBS-URL: https://build.opensuse.org/request/show/1294545
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/cacti-plugin-mactrack?expand=0&rev=13
2025-07-19 23:44:20 +00:00

70 lines
2.2 KiB
RPMSpec

#
# spec file for package cacti-plugin-mactrack
#
# Copyright (c) 2012 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/
#
%define realname mactrack
Name: cacti-plugin-mactrack
Version: 4.8+git58.g989de23
Release: 0
Summary: The Mac Track plugin for Cacti by The Witness
License: GPL-2.0
Group: Development/Tools/Other
Url: https://github.com/Cacti/plugin_mactrack
Source0: %{realname}-v%{version}.zip
Requires: cacti
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%define realname mactrack
%if 0%{?suse_version} <= 1210
%define prefix %{_datadir}/cacti
%else
%define prefix /srv/www/cacti
%endif
Obsoletes: cacti-PA-mactrack
Provides: cacti-PA-mactrack
%description
The Mac Track plugin for Cacti by The Witness.
%prep
%setup -q -n %{realname}
%build
%install
mkdir -p %{buildroot}%{prefix}/plugins/%{realname}
cp -r * %{buildroot}%{prefix}/plugins/%{realname}/.
mkdir -p %{buildroot}%{_docdir}/cacti/plugins/%{realname}
mv %{buildroot}%{prefix}/plugins/%{realname}/docs/CHANGELOG %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.
mv %{buildroot}%{prefix}/plugins/%{realname}/LICENSE %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.
mv %{buildroot}%{prefix}/plugins/%{realname}/README.md %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.
%files
%defattr(-,root,root)
%{prefix}/
%dir %{_docdir}/cacti
%dir %{_docdir}/cacti/plugins
%{_docdir}/cacti/plugins/%{realname}/
%if 0%{?suse_version} >= 1210
%dir /srv/www/
%dir %{prefix}
%endif
%changelog