3 %bcond_with tests # perform "make test" (needs working, not busy /dev/audio!)
6 %include /usr/lib/rpm/macros.perl
7 Summary: VCS - library for generic Version Control System access in Perl
8 Summary(pl.UTF-8): VCS - biblioteka umożliwiająca dostęp do systemu kontroli wersji (VCS) z poziomu Perla
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/VCS/VCS-%{version}.tar.gz
16 # Source0-md5: 5e3965ef83514629fe2fbc6da3f1eb66
17 URL: http://search.cpan.org/dist/VCS/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 3.0.3-16
21 BuildRequires: perl-Sort-Versions
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 VCS is an API for abstracting access to all version control systems
29 from Perl code. This is achieved in a similar fashion to the DBI suite
30 of modules. There are "container" classes, VCS::Dir, VCS::File, and
31 VCS::Version, and "implementation" classes, such as VCS::Cvs::Dir,
32 VCS::Cvs::File, and VCS::Cvs::Version, which are subclasses of their
33 respective "container" classes.
35 %description -l pl.UTF-8
36 VCS stanowi API dla abstrakcyjnego dostępu z kodu w Perlu do wszelkich
37 systemów kontroli wersji. Osiąga się to w podobny sposób, jak w
38 zestawie modułów DBI. Istnieją klasy "pojemników": VCS::Dir, VCS::File
39 i VCS::Version oraz klasy "implementacji", takie jak: VCS::Cvs::Dir,
40 VCS::Cvs::File i VCS::Cvs::Version, będące podklasami swoich
41 odpowiednich klas "pojemników".
44 %setup -q -n VCS-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 DESTDIR=$RPM_BUILD_ROOT
59 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_bindir}/diff-hist
68 %{perl_vendorlib}/VCS.pm
71 %{_examplesdir}/%{name}-%{version}