Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
perl-ConfigReader
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 5
[-]
[+]
Changed
perl-ConfigReader.spec
@@ -9,8 +9,6 @@ Source0: ConfigReader-%{version}.tar.gz Patch0: %{name}.diff 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 @@ -28,46 +26,35 @@ %prep %setup -q -n ConfigReader-%{version} %patch + %build -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 -# we create own package list just for fallback, not used on suse -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} +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}* -%if 0%{?suse_version} %files %defattr(-,root,root) %doc README -%{perl_sitelib}/ConfigReader/* -/var/adm/perl-modules/perl-ConfigReader -%ifarch %ix86 -%{perl_sitelib}/i586-linux-thread-multi -%endif -%ifarch x86_64 -%{perl_sitelib}/x86_64-linux-thread-multi -%endif -/usr/share/man/man3/* - -%else - -%files -f ../file.list.%{name} - -%endif +%dir %{perl_vendorlib}/ConfigReader +%{perl_vendorlib}/ConfigReader/ConfigReader.pod +%{perl_vendorlib}/ConfigReader/DirectiveStyle.pm +%{perl_vendorlib}/ConfigReader/Spec.pm +%{perl_vendorlib}/ConfigReader/Values.pm +%{_mandir}/man3/ConfigReader::ConfigReader.3pm* +%{_mandir}/man3/ConfigReader::DirectiveStyle.3pm* +%{_mandir}/man3/ConfigReader::Spec.3pm* +%{_mandir}/man3/ConfigReader::Values.3pm* %changelog -* Fri Feb 23 2007 Carsten Schoene <cs@linux-administrator.com> +* Fri Feb 23 2007 Carsten Schoene <cs@linux-administrator.com> - 0.5-1 - initial build of ConfigReader perl package which is required for flowscan