[perl-Chatbot-Eliza] Spec cleanup

Petr Šabata psabata at fedoraproject.org
Mon Jan 16 15:39:44 UTC 2012


commit fdf38093b38593078c9c06a7edbf43c331ae3a09
Author: Petr Šabata <contyk at redhat.com>
Date:   Mon Jan 16 16:36:35 2012 +0100

    Spec cleanup

 perl-Chatbot-Eliza.spec |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/perl-Chatbot-Eliza.spec b/perl-Chatbot-Eliza.spec
index b2573eb..8206aac 100644
--- a/perl-Chatbot-Eliza.spec
+++ b/perl-Chatbot-Eliza.spec
@@ -6,8 +6,8 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Chatbot-Eliza/
 Source0:        http://www.cpan.org/authors/id/J/JN/JNOLAN/Chatbot-Eliza-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
@@ -21,33 +21,28 @@ The program is designed to give the appearance of understanding.
 
 %prep
 %setup -q -n Chatbot-Eliza-%{version}
-
 # quiet rpmlint :)
 chmod -x *
 chmod +x Chatbot
+for enc in deutsch.txt norsk.txt; do
+    iconv -f latin1 -t utf8 ${enc} > ${enc}.utf && \
+      mv ${enc}.utf ${enc}
+done
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
 make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc simple.cgi doctor.txt README simple twobots debug.cgi
 %lang(de) %doc deutsch*
 %lang(no) %doc norsk*
@@ -55,8 +50,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
-* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.04-12
+* Mon Jan 16 2012 Petr Šabata <contyk at redhat.com> - 1.04-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+- Spec cleanup
 
 * Fri Jun 17 2011 Marcela Mašláňová <mmaslano at redhat.com> - 1.04-11
 - Perl mass rebuild


More information about the scm-commits mailing list