-%include /usr/lib/rpm/macros.perl
Summary: Perl Shell
-Summary(pl): Perl Shell
+Summary(pl.UTF-8): Powłoka Perla
Name: psh
-Version: 0.008
-Release: 1
-Copyright: Artistic License
-Group: Shells
-Group(pl): Pow³oki
-Source0: %name-%version.tar.gz
-URL: http://www.focusresearch.com/gregor/psh/index.html
-#URL: http://sourceforge.net/project/?group_id=475
-BuildRequires: perl >= 5.005
-%requires_eq perl = 5.005_03
-Requires: %{perl_sitearch}
+Version: 1.0
+Release: 3
+License: Artistic
+Group: Applications/Shells
+Source0: http://dl.sourceforge.net/psh/%{name}-%{version}.tar.gz
+# Source0-md5: 73ada6747732c9abdfec2d6ad5c477c6
+Patch0: %{name}-dirty_Makefile.patch
+URL: http://sourceforge.net/projects/psh/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+Provides: perl(Psh::StrategyBunch)
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr
+%define _noautoreq 'perl(import)'
%description
The Perl Shell (psh) combines aspects of bash and other shells with
-the power of Perl scripting. As author says: " It aspirate to be Your
+the power of Perl scripting. As author says: "It aspirate to be Your
primary login shell"
-%description -l pl
-Perl shell (psh) jest pow³ok± która ³±czy w sobie mo¿liwo¶ci Bash'a i
-innych pow³ok z mo¿liwo¶ciami Perla. Autor twierdzi, ¿e pow³oka ta
-mo¿e aspirowaæ do bycia podstawow± pow³ok± pracy.
+%description -l pl.UTF-8
+Powłoka Perla (psh) łączy w sobie możliwości basha i innych powłok z
+możliwościami Perla. Autor twierdzi, że powłoka ta może aspirować do
+bycia podstawową powłoką pracy.
%prep
%setup -q
+%patch0 -p0
%build
-perl Makefile.PL
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/perl5/5.00503/i686-pld-linux-thread
-make install DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{3,1}/* \
- CHANGES.pod README* TODO psh.NEWS HACKING RELEASE
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc {CHANGES.pod,README,README.perl5.004,TODO,HACKING,RELEASE}.gz
+%doc CHANGES.pod COPYRIGHT INSTALL README* TODO HACKING RELEASE postinstall.pl
%attr(755,root,root) %{_bindir}/psh
-
-%{_libdir}/perl5/5.00503/*
-%{perl_sitelib}/*
-#%{perl_sitearch}/*
-
+%{perl_vendorlib}/Psh.pm
+%{perl_vendorlib}/Psh
%{_mandir}/man1/*
%{_mandir}/man3/*