8
0

Compare commits

2 Commits

2 changed files with 26 additions and 30 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 12 17:55:56 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Oct 7 21:14:35 UTC 2018 - Dirk Stoecker <opensuse@dstoecker.de> Sun Oct 7 21:14:35 UTC 2018 - Dirk Stoecker <opensuse@dstoecker.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-CGI-FastTemplate # spec file for package perl-CGI-FastTemplate
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,56 +12,46 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: perl-CGI-FastTemplate
%define cpan_name CGI-FastTemplate %define cpan_name CGI-FastTemplate
Summary: Perl extension for managing templates, and performing variable interpolation Name: perl-CGI-FastTemplate
License: Artistic-1.0 OR GPL-1.0-or-later Version: 1.90.0
Group: Development/Libraries/Perl
Version: 1.09
Release: 0 Release: 0
Url: https://metacpan.org/release/%{cpan_name} # 1.09 -> normalize -> 1.90.0
Source: https://cpan.metacpan.org/authors/id/J/JM/JMOORE/%{cpan_name}-%{version}.tar.gz %define cpan_version 1.09
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl extension for managing templates, and performing variable interpolation
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JM/JMOORE/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
Provides: perl(CGI::FastTemplate) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description %description
CGI::FastTemplate manages templates and parses templates replacing Perl extension for managing templates, and performing variable interpolation.
variable names with values. It was designed for mid to large scale
web applications (CGI, mod_perl) where there are great benefits to
separating the logic of an application from the specific
implementation details.
%prep %prep
%setup -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
%{__make} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
# do not perl_process_packlist (noarch) %perl_process_packlist
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist %perl_gen_filelist
%clean %files -f %{name}.files
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-, root, root)
%doc README %doc README
%changelog %changelog