Changes of Revision 2
[-] | Changed | perl-IDNA-Punycode.spec |
x 1
2 -Name: perl-IDNA-Punycode 3 -Version: 0.03 4 -Release: 1 5 -License: GPL 6 -Group: Development/Libraries/Perl 7 -Summary: Perl module IDNA::Punycode 8 -Summary(de): Perlmodul IDNA::Punycode 9 -URL: http://search.cpan.org/~roburban/ 10 -Source0: IDNA-Punycode-%{version}.tar.gz 11 -BuildRoot: %{_tmppath}/%{name}-%{version}-build 12 -Packager: Carsten Schoene <cs@linux-administrator.com> 13 -Vendor: linux-administrator.com 14 -BuildRequires: glibc-devel libgcc gcc gcc-c++ perl 15 - 16 -%if 0%{?fedora_version} >= 7 17 -BuildRequires: perl-ExtUtils-MakeMaker 18 -%endif 19 +# 20 +# spec file for package perl-IDNA-Punnycode 21 +# 22 +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. 23 +# 24 +# All modifications and additions to the file contributed by third parties 25 +# remain the property of their copyright owners, unless otherwise agreed 26 +# upon. The license for this file, and modifications and additions to the 27 +# file, is the same license as for the pristine package itself (unless the 28 +# license for the pristine package is not an Open Source License, in which 29 +# case the license is the MIT License). An "Open Source License" is a 30 +# license that conforms to the Open Source Definition (Version 1.9) 31 +# published by the Open Source Initiative. 32 + 33 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 34 +# 35 + 36 +# norootforbuild 37 + 38 +#Distribution: %dist 39 +#Packager: %packager 40 +#Vendor: %vendor 41 + 42 +Name: perl-IDNA-Punnycode 43 +%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) 44 +Summary: IDNA::Punnycode.pm 45 +Version: 0.03 46 +Release: 1 47 +License: Artistic License 48 +Group: Development/Libraries/Perl 49 +Url: http://cpan.org/modules/by-module/IO/ 50 +Source: %{cpan_name}-%{version}.tar.bz2 51 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 52 +BuildRequires: perl 53 +BuildRequires: perl-macros 54 +Requires: perl = %{perl_version} 55 56 %description 57 -IDNA::Punycode will convert a domain-name from the "native" IDN 58 -(Internationalized Domain Name) form, i.e., a domain-name 59 -containing non-ASCII characters, into it's corresponding 60 -ACE (ASCII Compatible Encoding), and vice versa. 61 + %{cpan_name} module for perl 62 + 63 64 %prep 65 -%setup -q -n IDNA-Punycode-%{version} 66 -perl Makefile.PL 67 -%__make 68 -%makeinstall DESTDIR=$RPM_BUILD_ROOT 69 -%if 0%{?suse_version} 70 +%setup -q -n %{cpan_name}-%{version} 71 + 72 +%build 73 +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL 74 +%{__make} 75 + 76 +%check 77 +%{__make} test 78 + 79 +%install 80 +%perl_make_install 81 %perl_process_packlist 82 -%else 83 -find $RPM_BUILD_ROOT -name perllocal.pod -exec rm {} \; >/dev/null 84 -%endif 85 -cd $RPM_BUILD_ROOT 86 -find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} 87 -find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} 88 -find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} 89 +%perl_gen_filelist 90 91 %clean 92 -rm -rf $RPM_BUILD_ROOT/* 93 -rm -rf $RPM_BUILD_DIR/%{name}* 94 +%{__rm} -rf $RPM_BUILD_ROOT 95 96 -%if 0%{?suse_version} 97 -%files 98 +%files -f %{name}.files 99 +%defattr(-,root,root) 100 %doc Changes README 101 -/usr/share/man/man3/* 102 -/var/adm/perl-modules/perl-IDNA-Punycode 103 -%ifarch %ix86 104 -%{perl_sitelib}/i586-linux-thread-multi 105 -%endif 106 -%ifarch x86_64 107 -%{perl_sitelib}/x86_64-linux-thread-multi 108 -%endif 109 -%{perl_sitelib}/IDNA/* 110 -%{perl_sitelib}/IDNA/.Punycode.pm.swp 111 -%else 112 - 113 -%files -f ../file.list.%{name} 114 - 115 -%endif 116 117 %changelog 118 -* Mon Jul 02 2007 Carsten Schoene <cs@linux-administrator.com> 119 -- initial build of IDNA::Punycode perl package 120 +* Mon Apr 12 2010 Carsten Schoene <cs@linux-administrator.com> - 0.03 121 +- initial build 122 |
||
Renamed | IDNA-Punycode-0.03.tar.bz2 ^ | |
[+] | Added | perl-IDNA-Punycode.spec.old ^ |
@@ -0,0 +1,65 @@ +Name: perl-IDNA-Punycode +Version: 0.03 +Release: 1 +License: GPL +Group: Development/Libraries/Perl +Summary: Perl module IDNA::Punycode +Summary(de): Perlmodul IDNA::Punycode +URL: http://search.cpan.org/~roburban/ +Source0: IDNA-Punycode-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Packager: Carsten Schoene <cs@linux-administrator.com> +Vendor: linux-administrator.com +BuildRequires: glibc-devel libgcc gcc gcc-c++ perl + +%if 0%{?fedora_version} >= 7 +BuildRequires: perl-ExtUtils-MakeMaker +%endif + +%description +IDNA::Punycode will convert a domain-name from the "native" IDN +(Internationalized Domain Name) form, i.e., a domain-name +containing non-ASCII characters, into it's corresponding +ACE (ASCII Compatible Encoding), and vice versa. + +%prep +%setup -q -n IDNA-Punycode-%{version} +perl Makefile.PL +%__make +%makeinstall DESTDIR=$RPM_BUILD_ROOT +%if 0%{?suse_version} +%perl_process_packlist +%else +find $RPM_BUILD_ROOT -name perllocal.pod -exec rm {} \; >/dev/null +%endif +cd $RPM_BUILD_ROOT +find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} +find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} +find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} + +%clean +rm -rf $RPM_BUILD_ROOT/* +rm -rf $RPM_BUILD_DIR/%{name}* + +%if 0%{?suse_version} +%files +%doc Changes README +/usr/share/man/man3/* +/var/adm/perl-modules/perl-IDNA-Punycode +%ifarch %ix86 +%{perl_sitelib}/i586-linux-thread-multi +%endif +%ifarch x86_64 +%{perl_sitelib}/x86_64-linux-thread-multi +%endif +%{perl_sitelib}/IDNA/* +%{perl_sitelib}/IDNA/.Punycode.pm.swp +%else + +%files -f ../file.list.%{name} + +%endif + +%changelog +* Mon Jul 02 2007 Carsten Schoene <cs@linux-administrator.com> +- initial build of IDNA::Punycode perl package |