78 lines
2.2 KiB
RPMSpec
78 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package perl-Search-WuManber
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: perl-Search-WuManber
|
|
Url: http://build.opensuse.org/package/show?package=perl-Search-WuManber
|
|
License: GPL, Artistic License
|
|
Group: Development/Languages/Perl
|
|
AutoReqProv: on
|
|
Summary: Fast and simple Multi-Pattern search algorithm
|
|
Version: 0.30
|
|
Release: 1
|
|
Source: XXXhttp://search.cpan.org/CPAN/authors/id/J/JN/JNW/Search-WuManber-%{version}.tar.gz
|
|
Source100: README.md
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
|
|
%description
|
|
A Perl module implementing
|
|
Wu S., and U. Manber, "A Fast Algorithm for Multi-Pattern Searching," Technical Report TR-94-17, Department of Computer Science, University of Arizona (May 1993).
|
|
|
|
|
|
%prep
|
|
%setup -n Search-WuManber-%{version}
|
|
%define perl_site %(TMP=%{perl_sitearch}; echo ${TMP%/*})
|
|
|
|
%build
|
|
rm -f demo.pl
|
|
perl Makefile.PL
|
|
make
|
|
# also build the standalone binary.
|
|
make wumanber
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
install -D -m 0755 wumanber $RPM_BUILD_ROOT/usr/bin/wumanber
|
|
%if 0%{?suse_version}
|
|
%perl_process_packlist
|
|
%else
|
|
rm -f $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod
|
|
%endif
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc MANIFEST Changes README
|
|
%{perl_vendorarch}/auto/Search
|
|
%{perl_vendorarch}/Search
|
|
%{_mandir}/man3/Search::WuManber*.3pm*
|
|
%if 0%{?suse_version}
|
|
%endif
|
|
/usr/bin/wumanber
|
|
|
|
%changelog
|