]>
Commit | Line | Data |
---|---|---|
feacc254 | 1 | # |
2 | # Conditional build: | |
cdbb9206 | 3 | %bcond_without tests # do not perform "make test" |
5ebfb2e0 | 4 | # |
feacc254 | 5 | %include /usr/lib/rpm/macros.perl |
c1e64111 | 6 | %define pdir Text |
7 | %define pnam Diff | |
1f4b47f0 | 8 | Summary: Text::Diff - perform diffs on files and record sets |
951fdcd9 | 9 | Summary(pl.UTF-8): Text::Diff - wyszukiwanie różnic między plikami i zbiorami rekordów |
feacc254 | 10 | Name: perl-Text-Diff |
1e4074a3 | 11 | Version: 1.41 |
6448945a | 12 | Release: 1 |
58b0f0e1 | 13 | License: GPL v2+ or Artistic |
feacc254 | 14 | Group: Development/Languages/Perl |
df859f4d | 15 | Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz |
1e4074a3 | 16 | # Source0-md5: 30d56e6dd5551ca16b8e16cc7299dc21 |
df859f4d | 17 | URL: http://search.cpan.org/dist/Text-Diff/ |
cdbb9206 | 18 | %if %{with tests} |
75359cbf | 19 | BuildRequires: perl-Algorithm-Diff >= 1.19 |
feacc254 | 20 | %endif |
df859f4d | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
063d6b5c | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
feacc254 | 23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
35d13a44 JB |
27 | diff() provides a basic set of services akin to the GNU diff utility. |
28 | It is not anywhere near as feature complete as GNU diff, but it is | |
29 | better integrated with Perl and available on all platforms. It is | |
30 | often faster than shelling out to a system's diff executable for small | |
31 | files, and generally slower on larger files. | |
32 | ||
d4979d2f JR |
33 | %description -l pl.UTF-8 |
34 | Funkcja diff() udostępnia podstawowy zbiór usług podobnych do | |
35 | narzędzia GNU diff. Daleko jej do pełnej funkcjonalności GNU diffa, | |
36 | ale jest lepiej zintegrowana z Perlem i dostępna na wszystkich | |
37 | platformach. Jest przeważnie szybsza niż uruchamianie polecenia | |
38 | systemowego w przypadku małych plików, a wolniejsza dla dużych plików. | |
feacc254 | 39 | |
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
063d6b5c | 44 | %{__perl} Makefile.PL \ |
6501fa22 | 45 | INSTALLDIRS=vendor |
feacc254 | 46 | %{__make} |
47 | ||
cdbb9206 | 48 | %{?with_tests:%{__make} test} |
feacc254 | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
cdbb9206 | 53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
feacc254 | 55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
75359cbf | 61 | %{perl_vendorlib}/Text/Diff.pm |
df859f4d | 62 | %{perl_vendorlib}/Text/Diff |
75359cbf | 63 | %{_mandir}/man3/Text::Diff*.3pm* |