# # Conditional build: %bcond_without autodeps # don't BR packages needed only for resolving deps %bcond_without tests # do not perform "make test" # %define pdir File %define pnam Flat Summary: File::Flat - implements a flat filesystem Summary(pl.UTF-8): File::Flat - implementacja płaskiego systemu plików Name: perl-File-Flat Version: 1.07 Release: 1 # "same as perl" License: GPL or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 2e58179a4cc6d8fdacaa8e5224b3414d URL: https://metacpan.org/release/File-Flat BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: rpmbuild(macros) >= 1.745 %if %{with autodeps} || %{with tests} BuildRequires: perl(File::Spec) >= 0.85 BuildRequires: perl-File-Copy-Recursive >= 0.35 BuildRequires: perl-File-Remove >= 0.38 BuildRequires: perl-File-Temp >= 0.17 BuildRequires: perl-Test-ClassAPI >= 1.04 BuildRequires: perl-Test-Simple >= 0.47 BuildRequires: perl-prefork >= 0.02 %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description File::Flat implements a flat filesystem. A flat filesystem is a filesystem in which directories do not exist. It provides an abstraction over any normal filesystem which makes it appear as if directories do not exist. In effect, it will automatically create directories as needed. This is created for things like install scripts and such, as you never need to worry about the existance of directories, just write to a file, no matter where it is. %description -l pl.UTF-8 File::Flat implementuje płaski system plików. Płaski system plików to taki, w którym nie istnieją katalogi. Moduł udostępnia abstrakcję ponad każdym normalnym systemem plików, powodującą, że zachowuje się, jakby katalogi nie istniały. W efekcie automatycznie tworzy wszystkie potrzebne katalogi. Służy do rzeczy takich jak skrypty instalacyjne i inne, żeby nie trzeba było się martwić o istnienie katalogów - wystarczy po prostu pisać do pliku, nie ważne gdzie on jest. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/File/Flat.pm %{_mandir}/man3/File::Flat.3pm*