rpms/perl-Jcode/EL-4 perl-Jcode.spec,1.5,1.6

Paul Howarth (pghmcfc) fedora-extras-commits at redhat.com
Thu Dec 6 00:32:59 UTC 2007


Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-Jcode/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28805/EL-4

Modified Files:
	perl-Jcode.spec 
Log Message:
- refector buildreqs to make the package buildable on EL4/5
- convert pod to UTF-8
- mark pod as %%doc
- include old change documentation as well as more recent changes



Index: perl-Jcode.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Jcode/EL-4/perl-Jcode.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- perl-Jcode.spec	10 Dec 2004 22:03:08 -0000	1.5
+++ perl-Jcode.spec	6 Dec 2007 00:32:24 -0000	1.6
@@ -1,19 +1,19 @@
-%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
-
 Name:           perl-Jcode
-Version:        0.88
-Release:        1
-Epoch:          0
+Version:        2.06
+Release:        6%{?dist}
+
 Summary:        Perl extension interface for converting Japanese text
 
-License:        GPL or Artistic
+License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Jcode/
-Source0:        http://www.cpan.org/authors/id/D/DA/DANKOGAI/Jcode-0.88.tar.gz
+Source0:        http://www.cpan.org/authors/id/D/DA/DANKOGAI/Jcode-2.06.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  perl >= 1:5.6.1
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker), perl(MIME::Base64), perl(Test::More)
+BuildRequires:  perl >= 3:5.8.1
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 %{summary}.
@@ -22,24 +22,25 @@
 %prep
 %setup -q -n Jcode-%{version}
 
+# Fix character encoding of pod file
+mv Jcode/Nihongo.pod Jcode/Nihongo.pod.euc-jp
+sed -e 's/^=encoding euc-jp/=encoding utf8/' Jcode/Nihongo.pod.euc-jp |
+        iconv -f euc-jp -t utf-8 -o Jcode/Nihongo.pod
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
-%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
-make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -a \( -name .packlist \
-  -o \( -name '*.bs' -a -empty \) -o -name _test.pl -o -name '*_install.pl' \
-  \) -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
 chmod -R u+w $RPM_BUILD_ROOT/*
 
 
-%check || :
+%check
 make test
 
 
@@ -49,13 +50,49 @@
 
 %files
 %defattr(-,root,root,-)
-%doc Changes README
-%{perl_vendorarch}/auto/Jcode
-%{perl_vendorarch}/Jcode*
-%{_mandir}/man3/*.3*
+%doc Changes* README
+%{perl_vendorlib}/Jcode.pm
+%dir %{perl_vendorlib}/Jcode/
+%doc %{perl_vendorlib}/Jcode/Nihongo.pod
+%{_mandir}/man3/Jcode.3pm*
+%{_mandir}/man3/Jcode::Nihongo.3pm*
 
 
 %changelog
+* Thu Dec  6 2007 Paul Howarth <paul at city-fan.org> 2.06-6
+- refector buildreqs to make the package buildable on EL4/5
+- convert pod to UTF-8
+- mark pod as %%doc
+- include old change documentation as well as more recent changes
+
+* Thu Sep 27 2007 Aurelien Bompard <abompard at fedoraproject.org> 2.06-5
+- fix license (thanks Tom)
+
+* Sun Aug 26 2007 Aurelien Bompard <abompard at fedoraproject.org> 2.06-4
+- fix license tag (like perl itself)
+
+* Mon Aug 13 2007 Aurelien Bompard <abompard at fedoraproject.org> 2.06-3
+- BR perl-Test-Simple
+
+* Mon Aug 13 2007 Aurelien Bompard <abompard at fedoraproject.org> 2.06-2
+- BR perl-devel
+
+* Wed Aug 30 2006 Aurelien Bompard <abompard at fedoraproject.org> 2.06-1
+- update to 2.06
+
+* Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 2.03-3
+- rebuild for FC5
+
+* Thu Oct 27 2005 Aurelien Bompard <gauret[AT]free.fr> 2.03-2
+- build as noarch (#171916)
+
+* Sat Sep 03 2005 Aurelien Bompard <gauret[AT]free.fr> 2.03-1
+- update to 2.03
+- be closer to perl spec template
+
+* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
+- rebuilt
+
 * Sat Dec 04 2004 Aurelien Bompard <gauret[AT]free.fr> 0:0.88-0.fdr.1
 - Update to 0.88
 




More information about the fedora-extras-commits mailing list