[521] | 1 | %define real_name Net-SSLeay |
---|
| 2 | |
---|
| 3 | Summary: Perl module for using OpenSSL via Network |
---|
| 4 | Summary(ja): OpenSSL を Network にて用いる為の perl モジュール |
---|
| 5 | Name: perl-Net_SSLeay |
---|
[5769] | 6 | Version: 1.42 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
[521] | 8 | License: BSDish |
---|
| 9 | Group: Development/Libraries |
---|
| 10 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Net/%{real_name}-%{version}.tar.gz |
---|
| 11 | Source1: COPYRIGHT.SSLeay-0.9.0 |
---|
[2653] | 12 | BuildRequires: perl, openssl-devel >= 0.9.6b |
---|
| 13 | BuildRequires: zlib-devel |
---|
[521] | 14 | Requires: perl, openssl >= 0.9.6b |
---|
| 15 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | |
---|
| 17 | %description |
---|
| 18 | Perl module for using OpenSSL via Network, Net::SSLeay. |
---|
| 19 | |
---|
| 20 | %description -l ja |
---|
| 21 | OpenSSL を Network にて用いる為の perl モジュール, Net::SSLeay |
---|
| 22 | |
---|
| 23 | %prep |
---|
| 24 | %setup -q -n %{real_name}-%{version} |
---|
| 25 | cp -p %{SOURCE1} . |
---|
| 26 | |
---|
| 27 | # openssl_path is /usr here, therefore don't -I/usr/include and |
---|
| 28 | # especially don't (badly) hardcode standard library search path |
---|
| 29 | # /usr/lib |
---|
| 30 | if [[ "%{_prefix}" = "/usr" ]]; then |
---|
| 31 | perl -pi -e "s@-[LI]\\\$openssl_path[^\s\"]*@@g" Makefile.PL INSTALLDIRS=vendor |
---|
| 32 | fi |
---|
| 33 | |
---|
| 34 | %build |
---|
| 35 | # note the %{_prefix} which must passed to Makefile.PL, weird but necessary :-( |
---|
[5769] | 36 | perl Makefile.PL %{_prefix} INSTALLDIRS=vendor << EOI |
---|
| 37 | n |
---|
| 38 | EOI |
---|
[521] | 39 | make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{_prefix} |
---|
| 40 | perl -p -i -e 's|/usr/local/bin|/usr/bin|g;' *.pm examples/* |
---|
| 41 | |
---|
| 42 | %install |
---|
| 43 | rm -rf %{buildroot} |
---|
| 44 | #mkdir -p %{buildroot}%{perl_archlib} |
---|
| 45 | #make install PREFIX=%{buildroot}%{_prefix} \ |
---|
| 46 | # SITEPREFIX=%{buildroot}%{_prefix} \ |
---|
| 47 | # VENDORPREFIX=%{buildroot}%{_prefix} \ |
---|
| 48 | # INSTALLPRIVLIB=%{buildroot}%{perl_privlib} \ |
---|
| 49 | # INSTALLSITELIB=%{buildroot}%{perl_sitelib} \ |
---|
| 50 | # INSTALLVENDORLIB=%{buildroot}%{perl_vendorlib} \ |
---|
| 51 | # INSTALLARCHLIB=%{buildroot}%{perl_archlib} \ |
---|
| 52 | # INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \ |
---|
| 53 | # INSTALLVENDORARCH=%{buildroot}%{perl_vendorarch} \ |
---|
| 54 | # INSTALLBIN=%{buildroot}%{_bindir} \ |
---|
| 55 | # INSTALLSITEBIN=%{buildroot}%{_bindir} \ |
---|
| 56 | # INSTALLVENDORBIN=%{buildroot}%{_bindir} \ |
---|
| 57 | # INSTALLSCRIPT=%{buildroot}%{_bindir} \ |
---|
| 58 | # INSTALLMAN1DIR=%{buildroot}%{_mandir}/man1 \ |
---|
| 59 | # INSTALLSITEMAN1DIR=%{buildroot}%{_mandir}/man1 \ |
---|
| 60 | # INSTALLVENDORMAN1DIR=%{buildroot}%{_mandir}/man1 \ |
---|
| 61 | # INSTALLMAN3DIR=%{buildroot}%{_mandir}/man3 \ |
---|
| 62 | # INSTALLSITEMAN3DIR=%{buildroot}%{_mandir}/man3 \ |
---|
| 63 | # INSTALLVENDORMAN3DIR=%{buildroot}%{_mandir}/man3 |
---|
| 64 | make install DESTDIR=%{buildroot} |
---|
| 65 | |
---|
| 66 | sed -e "s@^%{buildroot}@@g" < %{buildroot}/%{perl_vendorarch}/auto/Net/SSLeay/.packlist > .packlist |
---|
| 67 | mv -f .packlist %{buildroot}/%{perl_vendorarch}/auto/Net/SSLeay/.packlist |
---|
| 68 | |
---|
| 69 | #if [ -f %{buildroot}%{perl_archlib}/perllocal.pod ] ; then |
---|
| 70 | # mv %{buildroot}%{perl_archlib}/perllocal.pod . |
---|
| 71 | #else |
---|
| 72 | # touch perllocal.pod |
---|
| 73 | #fi |
---|
| 74 | |
---|
| 75 | perllocalfile=`find %{buildroot} -name perllocal.pod` |
---|
| 76 | echo "mv $perllocalfile ." |
---|
| 77 | mv $perllocalfile . |
---|
| 78 | |
---|
| 79 | { |
---|
| 80 | find %{buildroot} \ |
---|
| 81 | -type f -o -type l | sed -e "s@^%{buildroot}@@g" -e 's@^\(.*/man/.*\)$@\1*@g' |
---|
| 82 | } > %{name}.files |
---|
| 83 | |
---|
| 84 | %clean |
---|
| 85 | rm -rf %{buildroot} |
---|
| 86 | |
---|
| 87 | #check |
---|
| 88 | #make test |
---|
| 89 | |
---|
| 90 | %files -f %{name}.files |
---|
| 91 | %defattr(-,root,root) |
---|
| 92 | %doc Changes Credits QuickRef README COPYRIGHT.SSLeay-0.9.0 perllocal.pod |
---|
| 93 | #%dir %{perl_vendorarch}/auto/Net |
---|
| 94 | #%dir %{perl_vendorarch}/auto/Net/SSLeay |
---|
| 95 | #%dir %{perl_vendorarch}/Net |
---|
| 96 | #%dir %{perl_vendorarch}/Net/SSLeay |
---|
| 97 | |
---|
| 98 | %changelog |
---|
[5769] | 99 | * Sun Feb 26 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.42-1 |
---|
| 100 | - new upstream release |
---|
| 101 | |
---|
[3739] | 102 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.36-2 |
---|
| 103 | - rebuild with perl-5.12.3 |
---|
| 104 | |
---|
[2653] | 105 | * Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.36-1 |
---|
| 106 | - new upstream release |
---|
| 107 | - change BuildRequires: openssl-devel instead of openssl |
---|
| 108 | - add BuildRequires: zlib-devel |
---|
| 109 | |
---|
[521] | 110 | * Wed Jul 8 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.35-1 |
---|
| 111 | - new upstream release |
---|
| 112 | |
---|
| 113 | * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.30-2 |
---|
| 114 | - spec in utf-8 |
---|
| 115 | |
---|
| 116 | * Tue Apr 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.30-1 |
---|
| 117 | - rebuilt with perl-5.10.0 |
---|
| 118 | - applied new versioning policy |
---|
| 119 | |
---|
| 120 | * Sun Jun 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.30-0vl2 |
---|
| 121 | - rebuilt with openssl-0.9.8e |
---|
| 122 | |
---|
| 123 | * Mon Dec 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.30-0vl1 |
---|
| 124 | - updated to 1.30 |
---|
| 125 | |
---|
| 126 | * Sat Sep 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.25-0vl4 |
---|
| 127 | - installed files to vendor_perl |
---|
| 128 | - changed Group to Development/Libraries |
---|
| 129 | |
---|
| 130 | * Mon Nov 29 2004 IWAI, Masaharu <iwai@alib.jp> 1.25-0vl3 |
---|
| 131 | - build on perl-5.8.6-0vl1 |
---|
| 132 | |
---|
| 133 | * Wed Dec 10 2003 IWAI, Masaharu <iwai@alib.jp> 1.25-0vl2 |
---|
| 134 | - build with perl-5.8.2 |
---|
| 135 | - add %%{perl_sitearch}/{Net,Net/SSLeay} directories in %%files |
---|
| 136 | |
---|
| 137 | * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.25-0vl1 |
---|
| 138 | - new upstream version |
---|
| 139 | - built on perl-5.8.1 |
---|
| 140 | |
---|
| 141 | * Thu May 08 2003 Tomoya TAKA <taka@vinelinux.org> 1.22-0vl5 |
---|
| 142 | - fixed install man dir, again |
---|
| 143 | |
---|
| 144 | * Tue May 06 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.22-0vl4 |
---|
| 145 | - fixed install dir of perllocal.pod |
---|
| 146 | |
---|
| 147 | * Thu May 05 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.22-0vl3 |
---|
| 148 | - fixed install man dir |
---|
| 149 | |
---|
| 150 | * Thu May 01 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.22-0vl2 |
---|
| 151 | - comment out "make test" |
---|
| 152 | |
---|
| 153 | * Thu May 01 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.22-0vl1 |
---|
| 154 | - updated to 1.22 |
---|
| 155 | |
---|
| 156 | * Fri Feb 15 2002 Toru Sagami <sagami@vinelinux.org> 1.13-0vl1 |
---|
| 157 | - updated to 1.13 |
---|
| 158 | - BuildPreReq/Requires: perl, openssl-0.9.6b |
---|
| 159 | - rewrite a better spec with License/Group |
---|
| 160 | |
---|
| 161 | * Mon Jul 16 2001 <sagami@vinelinux.org> |
---|
| 162 | - 1.07-0vl3: rebuilt with openssl-0.9.6b |
---|
| 163 | - erase unneeeded files from %%doc |
---|
| 164 | - use _prefix, not prefix |
---|
| 165 | |
---|
| 166 | * Thu Jul 05 2001 <sagami@vinelinux.org> |
---|
| 167 | - 1.07-0vl2: built with perl-5.6.1 |
---|
| 168 | |
---|
| 169 | * Thu Jun 7 2001 Yasuhide OMORI <omori@m-t.com> |
---|
| 170 | - 1.07 |
---|
| 171 | |
---|
| 172 | * Fri Sep 1 2000 Yoshishiro Kajiki <kajiki@ylug.org> |
---|
| 173 | - first version of rpm. |
---|