1 Star 0 Fork 2

woody2918/perl-JavaScript-Beautifier

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-JavaScript-Beautifier.spec 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
woody2918 提交于 2024-03-21 18:01 . Modify the spec file and add yaml file
Name: perl-JavaScript-Beautifier
Version: 0.25
Release: 1
Summary: Beautify Javascript (beautifier for javascript)
License: GPL-1.0-only or Artistic-1.0-Perl
Group: Development/Libraries
URL: http://search.cpan.org/dist/JavaScript-Beautifier/
Source0: http://www.cpan.org/authors/id/F/FA/FAYLAND/JavaScript-Beautifier-%{version}.tar.gz
BuildArch: noarch
BuildRequires: dos2unix
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(base)
BuildRequires: perl(Exporter)
BuildRequires: perl(Module::Build) >= 0.35
BuildRequires: perl(strict)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Pod) >= 1.22
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This module is mostly a Perl-rewrite of
http://github.com/einars/js-beautify/tree/master/beautify.js
%package -n perl-Code-TidyAll-Plugin-JSBeautifier
Summary: Use JavaScript::Beautifier with tidyall
License: GPL+ or Artistic
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: %{_bindir}/js_beautify.pl
Requires: perl(Code::TidyAll::Plugin)
%description -n perl-Code-TidyAll-Plugin-JSBeautifier
Runs js_beautify.pl of JavaScript::Beautifier, a JavaScript tidier
implemented in Perl.
%prep
%setup -q -n JavaScript-Beautifier-%{version}
dos2unix Changes
dos2unix README.md
%build
perl Build.PL installdirs=vendor
./Build
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%files
%doc Changes README.md
%{perl_vendorlib}/JavaScript
%{_bindir}/js_beautify.pl
%{_mandir}/man1/js_beautify.pl.1.gz
%{_mandir}/man3/JavaScript*
%files -n perl-Code-TidyAll-Plugin-JSBeautifier
%{perl_vendorlib}/Code
%{_mandir}/man3/Code*
%changelog
* Fri Mar 1 2024 woody2918 <wudi1@uniontech.com> - 0.25-1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/woody2918/perl-JavaScript-Beautifier.git
git@gitee.com:woody2918/perl-JavaScript-Beautifier.git
woody2918
perl-JavaScript-Beautifier
perl-JavaScript-Beautifier
master

搜索帮助