# # spec file for package perl-RT-Extension-ReferenceIDoitObjects # # Copyright (c) 2014 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 plug_dir /usr/share/request-tracker/local/plugins Name: perl-RT-Extension-ReferenceIDoitObjects Version: 0.93 Release: 0 %define cpan_name RT-Extension-ReferenceIDoitObjects Summary: Create a ticket in relation to one or more i-doit objects License: Artistic-1.0 and GPL-2.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/perldoc?%{cpan_name} Source: http://search.cpan.org/CPAN/authors/id/B/BH/BHEISIG//%{cpan_name}-%{version}.tar.gz Source1: %{cpan_name}.README.SUSE Source2: %{cpan_name}.DESCRIPTION BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: request-tracker #BuildRequires: perl(inc::Module::Install) #BuildRequires: perl(JSON) #BuildRequires: perl(LWP::Simple) #BuildRequires: perl(Module::Build) #BuildRequires: perl(Module::Install::Base) #BuildRequires: perl(Parse::CPAN::Meta) #BuildRequires: perl(RT::Action) #BuildRequires: perl(YAML::Tiny) %{perl_requires} %description This extension gives you the opportunity to combine an issue tracker like RT with an IT documentation tool / CMDB like i-doit. It uses i-doit's API to relate a ticket with one or more CIs / objects managed by i-doit. On i-doit's side you are able to view all tickets related to an object. This extension also supports i-doit's multi-mandator functionality. i-doit ("I document IT") is a web-based tool to document complex IT infrastructures. It provides several modules like a ITIL compliant Configuration Management Database (CMDB). More information about i-doit is available under http://www.i-doit.org/. Its core is Free and Open Source Software. Visit http://www.i-doit.com/ for commercial support and additional services. Please note, that i-doit's API (which is essential for this extension) is currently only implemented in the commercial branch. %prep %setup -q -n %{cpan_name}-%{version} %{__install} -m 0644 %SOURCE1 README.SUSE %{__install} -m 0644 %SOURCE2 README.DESCRIPTION %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %{__install} -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name} %{__cp} -a etc %{buildroot}/%{plug_dir}/%{cpan_name} # remove special files find %{buildroot} -name "perllocal.pod" |xargs -i rm -f {} %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README README.SUSE README.DESCRIPTION %dir %{plug_dir}/%{cpan_name} %{plug_dir}/%{cpan_name}/etc %changelog