Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
perl-NetAddr-IP
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Changed
perl-NetAddr-IP.spec
@@ -7,9 +7,8 @@ URL: http://search.cpan.org/~miker Source0: NetAddr-IP-%{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 @@ -19,29 +18,97 @@ %prep %setup -q -n NetAddr-IP-%{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 -install -m 755 -d $RPM_BUILD_ROOT/usr/share/doc/packages/%{name} -cp README $RPM_BUILD_ROOT/usr/share/doc/packages/%{name} -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} +%build +CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{_prefix}" +%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}" + +%install +%__make DESTDIR=%{buildroot} install + +### Clean up buildroot +%{__rm} -rf %{buildroot}%{perl_archlib} \ + %{buildroot}%{perl_vendorarch}/auto/*{,/*{,/*}}/.packlist + %clean rm -rf $RPM_BUILD_ROOT/* rm -rf $RPM_BUILD_DIR/%{name}* -rm -rf ../file.list.%{name} -%files -f ../file.list.%{name} +%files +%defattr(-,root,root) +%doc README +%dir %{perl_vendorarch}/NetAddr +%dir %{perl_vendorarch}/NetAddr/IP +%dir %{perl_vendorarch}/auto/NetAddr +%dir %{perl_vendorarch}/auto/NetAddr/IP +%dir %{perl_vendorarch}/auto/NetAddr/IP/Util +%dir %{perl_vendorarch}/auto/NetAddr/IP/UtilPP +%{perl_vendorarch}/NetAddr/IP.pm +%{perl_vendorarch}/NetAddr/IP/Lite.pm +%{perl_vendorarch}/NetAddr/IP/Util.pm +%{perl_vendorarch}/NetAddr/IP/UtilPP.pm +%{perl_vendorarch}/NetAddr/IP/Util_IS.pm +%{perl_vendorarch}/auto/NetAddr/IP/Util/Util.bs +%{perl_vendorarch}/auto/NetAddr/IP/Util/Util.so +%{perl_vendorarch}/auto/NetAddr/IP/Util/autosplit.ix +%{perl_vendorarch}/auto/NetAddr/IP/Util/inet_any2n.al +%{perl_vendorarch}/auto/NetAddr/IP/Util/inet_n2ad.al +%{perl_vendorarch}/auto/NetAddr/IP/Util/inet_n2dx.al +%{perl_vendorarch}/auto/NetAddr/IP/Util/ipv6_aton.al +%{perl_vendorarch}/auto/NetAddr/IP/Util/ipv6_n2d.al +%{perl_vendorarch}/auto/NetAddr/IP/Util/ipv6_n2x.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/_128x10.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/_128x2.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/_bcd2bin.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/_bcdcheck.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/_bin2bcdn.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/_deadlen.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/_sa128.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/add128.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/addconst.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/autosplit.ix +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/bcd2bin.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/bcdn2bin.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/bcdn2txt.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/bin2bcd.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/bin2bcdn.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/comp128.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/hasbits.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/ipanyto6.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/ipv4to6.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/ipv6to4.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/isIPv4.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/mask4to6.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/maskanyto6.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/notcontiguous.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/shiftleft.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/simple_pack.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/slowadd128.al +%{perl_vendorarch}/auto/NetAddr/IP/UtilPP/sub128.al +%{perl_vendorarch}/auto/NetAddr/IP/_compV6.al +%{perl_vendorarch}/auto/NetAddr/IP/_compact_v6.al +%{perl_vendorarch}/auto/NetAddr/IP/autosplit.ix +%{perl_vendorarch}/auto/NetAddr/IP/coalesce.al +%{perl_vendorarch}/auto/NetAddr/IP/compactref.al +%{perl_vendorarch}/auto/NetAddr/IP/do_prefix.al +%{perl_vendorarch}/auto/NetAddr/IP/full.al +%{perl_vendorarch}/auto/NetAddr/IP/full6.al +%{perl_vendorarch}/auto/NetAddr/IP/hostenum.al +%{perl_vendorarch}/auto/NetAddr/IP/mod_version.al +%{perl_vendorarch}/auto/NetAddr/IP/nprefix.al +%{perl_vendorarch}/auto/NetAddr/IP/prefix.al +%{perl_vendorarch}/auto/NetAddr/IP/re.al +%{perl_vendorarch}/auto/NetAddr/IP/re6.al +%{perl_vendorarch}/auto/NetAddr/IP/short.al +%{perl_vendorarch}/auto/NetAddr/IP/split.al +%{perl_vendorarch}/auto/NetAddr/IP/splitref.al +%{perl_vendorarch}/auto/NetAddr/IP/wildcard.al +%{_mandir}/man3/NetAddr::IP.3pm* +%{_mandir}/man3/NetAddr::IP::Lite.3pm* +%{_mandir}/man3/NetAddr::IP::Util.3pm* +%{_mandir}/man3/NetAddr::IP::UtilPP.3pm* %changelog * Thu Oct 16 2008 Carsten Schoene <cs@linux-administrator.com>