OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Diff?expand=0&rev=3
52 lines
1.3 KiB
RPMSpec
52 lines
1.3 KiB
RPMSpec
# norootforbuild
|
|
|
|
Name: perl-String-Diff
|
|
Version: 0.04
|
|
Release: 0
|
|
Summary: Simple diff to String
|
|
Source: http://search.cpan.org/CPAN/authors/id/Y/YA/YAPPO/String-Diff-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/String-Diff/
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
BuildRequires: make perl perl-macros perl-YAML
|
|
Requires: perl
|
|
|
|
%description
|
|
String::Diff is the difference of a consecutive string is made. after general
|
|
diff is done, the difference in the line is searchable.
|
|
|
|
The mark of the addition and the deletion can be freely changed. the color is
|
|
colored to the terminal with ANSI, using the HTML display it.
|
|
|
|
%prep
|
|
%setup -q -n "String-Diff-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%clean
|
|
%__rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes README
|
|
%dir %{perl_vendorlib}/String
|
|
%{perl_vendorlib}/String/Diff.pm
|
|
%dir %{perl_vendorarch}/auto/String
|
|
%{perl_vendorarch}/auto/String/Diff
|
|
%doc %{perl_man3dir}/String::Diff.%{perl_man3ext}%{ext_man}
|
|
|
|
%changelog
|
|
# vim: set sw=3 ts=3 noet:
|
|
# Local Variables:
|
|
# mode: rpm-spec
|
|
# tab-width: 3
|
|
# End:
|