- Added Obsoletes and Provides the prepare the cacti-PA-* delete - Removed BuildRequires: cacti as it's not really needed and it speeds up the build process OBS-URL: https://build.opensuse.org/request/show/141483 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/cacti-plugin-update?expand=0&rev=2
63 lines
2.0 KiB
RPMSpec
63 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package cacti-plugin-update
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: cacti-plugin-update
|
|
Version: 0.4
|
|
Release: 0.0
|
|
Summary: This plugin displays information about all the current plugins, and checks for updates
|
|
License: GPL-2.0
|
|
Group: Development/Tools/Other
|
|
Url: http://cactiusers.org/
|
|
Source0: %{realname}-%{version}.tar.gz
|
|
Requires: cacti
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%define realname update
|
|
%if 0%{?suse_version} <= 1210
|
|
%define prefix %{_datadir}/cacti
|
|
%else
|
|
%define prefix /srv/www/cacti
|
|
%endif
|
|
Obsoletes: cacti-PA-update
|
|
Provides: cacti-PA-update
|
|
|
|
%description
|
|
This plugin displays information about all the current plugins, and checks for updates.
|
|
|
|
%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}/LICENSE %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.
|
|
mv %{buildroot}%{prefix}/plugins/%{realname}/README %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{prefix}/
|
|
%dir %{_docdir}/cacti
|
|
%dir %{_docdir}/cacti/plugins
|
|
%{_docdir}/cacti/plugins/%{realname}/
|
|
|
|
%changelog
|