107 lines
3.1 KiB
RPMSpec
107 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package perl-RTx-AssetTracker
|
|
#
|
|
# 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 cpan_name RTx-AssetTracker
|
|
%define git_name chakatodd-rt-extension-assettracker-8eff3c3
|
|
%define plug_dir /usr/share/request-tracker/local/plugins
|
|
|
|
Name: perl-RTx-AssetTracker
|
|
Version: 2.0.0b2
|
|
Release: 0
|
|
Summary: RTx::AssetTracker Asset Tracker
|
|
License: GPL-2.0+
|
|
Group: Development/Libraries/Perl
|
|
Url: https://github.com/chakatodd/rt-extension-assettracker
|
|
Source: chakatodd-rt-extension-assettracker-2.0.0b2-2-g8eff3c3.tar.gz
|
|
Source100: README.md
|
|
Patch0: l_unsafe-html-arg.patch
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: request-tracker
|
|
BuildRequires: perl(Set::Scalar)
|
|
BuildRequires: perl(Test::Class)
|
|
BuildRequires: perl(XML::Parser)
|
|
BuildRequires: perl(XML::Simple)
|
|
#
|
|
Requires: perl
|
|
Requires: request-tracker
|
|
Requires: perl(Set::Scalar)
|
|
Requires: perl(XML::Parser)
|
|
Requires: perl(XML::Simple)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
RTx::AssetTracker
|
|
|
|
Asset Tracker is an extension for Request Tracker. It integrates asset
|
|
tracking with your favorite ticketing system.
|
|
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{git_name}
|
|
%patch0 -p1
|
|
|
|
%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}
|
|
%{__install} -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name}/html
|
|
%{__install} -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name}/po
|
|
#%{__install} -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name}/sbin
|
|
|
|
%{__cp} -a etc %{buildroot}/%{plug_dir}/%{cpan_name}/
|
|
%{__cp} -a html/* %{buildroot}/%{plug_dir}/%{cpan_name}/html/
|
|
%{__cp} -a po/%{cpan_name}/* %{buildroot}/%{plug_dir}/%{cpan_name}/po
|
|
#%{__cp} -a sbin/* %{buildroot}/%{plug_dir}/%{cpan_name}/sbin
|
|
|
|
# remove special files
|
|
find %{buildroot} -name "perllocal.pod" -o -name ".packlist" |xargs -i rm -f {}
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc COPYING README
|
|
%dir %{plug_dir}/%{cpan_name}
|
|
%dir %{plug_dir}/%{cpan_name}/etc
|
|
%dir %{plug_dir}/%{cpan_name}/html
|
|
%dir %{plug_dir}/%{cpan_name}/po
|
|
#%dir %{plug_dir}/%{cpan_name}/sbin
|
|
%{plug_dir}/%{cpan_name}/etc
|
|
%{plug_dir}/%{cpan_name}/html
|
|
%{plug_dir}/%{cpan_name}/po
|
|
#%{plug_dir}/%{cpan_name}/sbin
|
|
|
|
%changelog
|