Search
j0ke.net Open Build Service
>
Projects
>
internetx
>
perl-Apache-Admin-Config
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 5
[-]
[+]
Changed
perl-Apache-Admin-Config.spec
@@ -11,9 +11,7 @@ Packager: Carsten Schoene <cs@linux-administrator.com> Vendor: linux-administrator.com BuildRequires: glibc-devel libgcc gcc gcc-c++ perl -%if 0%{?centos_version} || 0%{?fedora_version} BuildArch: noarch -%endif %if 0%{?fedora_version} >= 7 BuildRequires: perl-ExtUtils-MakeMaker %endif @@ -24,43 +22,31 @@ %prep %setup -q -n Apache-Admin-Config-%{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} + +%build +CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{_prefix}" +%{__make} %{?_smp_mflags} + +%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}* -%if 0%{?suse_version} %files %defattr(-,root,root) %doc Changes README -/usr/share/man/man3/* -%{perl_sitelib}/Apache/Admin/Config.pm -/var/adm/perl-modules/perl-Apache-Admin-Config -%ifarch %ix86 -%{perl_sitelib}/i586-linux-thread-multi -%endif -%ifarch x86_64 -%{perl_sitelib}/x86_64-linux-thread-multi -%endif - -%else +%{_mandir}/man3/Apache::Admin::Config.3pm* +%dir %{perl_vendorlib}/Apache +%dir %{perl_vendorlib}/Apache/Admin +%{perl_vendorlib}/Apache/Admin/Config.pm -%files -f ../file.list.%{name} - -%endif %changelog -* Tue Apr 15 2008 Carsten Schoene <cs@linux-administrator.com> +* Tue Apr 15 2008 Carsten Schoene <cs@linux-administrator.com> - 0.94 - initial build of Apache::Admin::Config perl package.