83 lines
2.3 KiB
RPMSpec
83 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-RT-Extension-JSGantt
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
#
|
|
%define cpan_name RT-Extension-JSGantt
|
|
%define git_name bestpractical-rt-extension-jsgantt-edbc5a8
|
|
%define plug_dir /usr/share/request-tracker/local/plugins
|
|
|
|
Name: perl-RT-Extension-JSGantt
|
|
Version: 1.03
|
|
Release: 0
|
|
Summary: RT::Extension::JSGantt Perl module
|
|
License: GPL-2.0-only
|
|
Group: Development/Libraries/Perl
|
|
URL: http://search.cpan.org/dist/RT-Extension-JSGantt
|
|
Source: http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: request-tracker
|
|
Requires: request-tracker
|
|
%{perl_requires}
|
|
|
|
%description
|
|
RT::Extension::JSGantt Perl module
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%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
|
|
|
|
#
|
|
%{__cp} -a html/Callbacks %{buildroot}/%{plug_dir}/%{cpan_name}/html
|
|
%{__cp} -a html/NoAuth %{buildroot}/%{plug_dir}/%{cpan_name}/html
|
|
%{__cp} -a html/Search %{buildroot}/%{plug_dir}/%{cpan_name}/html
|
|
|
|
# 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
|
|
%dir %{plug_dir}/%{cpan_name}
|
|
%{plug_dir}/%{cpan_name}/html
|
|
|
|
%changelog
|