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