Changes of Revision 5
[-] | Changed | perl-Apache-Admin-Config.spec |
x 1
2 Packager: Carsten Schoene <cs@linux-administrator.com> 3 Vendor: linux-administrator.com 4 BuildRequires: glibc-devel libgcc gcc gcc-c++ perl 5 -%if 0%{?centos_version} || 0%{?fedora_version} 6 BuildArch: noarch 7 -%endif 8 %if 0%{?fedora_version} >= 7 9 BuildRequires: perl-ExtUtils-MakeMaker 10 %endif 11
12 13 %prep 14 %setup -q -n Apache-Admin-Config-%{version} 15 -perl Makefile.PL 16 -%__make 17 -%makeinstall DESTDIR=$RPM_BUILD_ROOT 18 -%if 0%{?suse_version} 19 -%perl_process_packlist 20 -%else 21 -find $RPM_BUILD_ROOT -name perllocal.pod -exec rm {} \; >/dev/null 22 -%endif 23 -cd $RPM_BUILD_ROOT 24 -find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} 25 -find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} 26 -find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} 27 + 28 +%build 29 +CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{_prefix}" 30 +%{__make} %{?_smp_mflags} 31 + 32 +%install 33 +%__make DESTDIR=%{buildroot} install 34 + 35 +### Clean up buildroot 36 +%{__rm} -rf %{buildroot}%{perl_archlib} \ 37 + %{buildroot}%{perl_vendorarch}/auto/*{,/*{,/*}}/.packlist 38 39 %clean 40 rm -rf $RPM_BUILD_ROOT/* 41 rm -rf $RPM_BUILD_DIR/%{name}* 42 43 -%if 0%{?suse_version} 44 %files 45 %defattr(-,root,root) 46 %doc Changes README 47 -/usr/share/man/man3/* 48 -%{perl_sitelib}/Apache/Admin/Config.pm 49 -/var/adm/perl-modules/perl-Apache-Admin-Config 50 -%ifarch %ix86 51 -%{perl_sitelib}/i586-linux-thread-multi 52 -%endif 53 -%ifarch x86_64 54 -%{perl_sitelib}/x86_64-linux-thread-multi 55 -%endif 56 - 57 -%else 58 +%{_mandir}/man3/Apache::Admin::Config.3pm* 59 +%dir %{perl_vendorlib}/Apache 60 +%dir %{perl_vendorlib}/Apache/Admin 61 +%{perl_vendorlib}/Apache/Admin/Config.pm 62 63 -%files -f ../file.list.%{name} 64 - 65 -%endif 66 %changelog 67 -* Tue Apr 15 2008 Carsten Schoene <cs@linux-administrator.com> 68 +* Tue Apr 15 2008 Carsten Schoene <cs@linux-administrator.com> - 0.94 69 - initial build of Apache::Admin::Config perl package. 70 71 |