summaryrefslogtreecommitdiffstats
path: root/perl-Unix-Statgrab.spec
diff options
context:
space:
mode:
authorOliver Falk <oliver@fedoraproject.org>2005-08-23 11:40:42 +0000
committerOliver Falk <oliver@fedoraproject.org>2005-08-23 11:40:42 +0000
commitb40e359dfd207ed40549978557ec8679378a495d (patch)
tree6a49e47ca0d947edb348946c1dcb7a0dc69d4245 /perl-Unix-Statgrab.spec
parentd99a90a7359c6b71d9544b57a1fd285e6216ad31 (diff)
downloadperl-Unix-Statgrab-b40e359dfd207ed40549978557ec8679378a495d.tar.gz
perl-Unix-Statgrab-b40e359dfd207ed40549978557ec8679378a495d.tar.xz
perl-Unix-Statgrab-b40e359dfd207ed40549978557ec8679378a495d.zip
auto-import perl-Unix-Statgrab-0.03-4 on branch devel fromperl-Unix-Statgrab-0_03-4
perl-Unix-Statgrab-0.03-4.src.rpm
Diffstat (limited to 'perl-Unix-Statgrab.spec')
-rw-r--r--perl-Unix-Statgrab.spec84
1 files changed, 84 insertions, 0 deletions
diff --git a/perl-Unix-Statgrab.spec b/perl-Unix-Statgrab.spec
new file mode 100644
index 0000000..73996f5
--- /dev/null
+++ b/perl-Unix-Statgrab.spec
@@ -0,0 +1,84 @@
+Name: perl-Unix-Statgrab
+Summary: Perl extension for collecting information about the machine
+
+Version: 0.03
+Release: 4
+
+Group: Development/Libraries
+License: LGPL
+URL: http://search.cpan.org/dist/Unix-Statgrab/
+Source0: http://search.cpan.org//CPAN/authors/id/V/VP/VPARSEVAL/Unix-Statgrab-%{version}.tar.gz
+Source1: http://www.fsf.org/licensing/licenses/lgpl.txt
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Patch0: Unix-Statgrab-0.03-compile_libstatgrab-0.12.patch
+
+BuildRequires: libstatgrab-devel >= 0.12
+BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
+
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Unix::Statgrab is a wrapper for libstatgrab as available from
+<http://www.i-scream.org/libstatgrab/>. It is a reasonably portable attempt
+to query interesting stats about your computer. It covers information on the
+operating system, CPU, memory usage, network interfaces, hard-disks etc.
+
+%prep
+%setup -q -n Unix-Statgrab-%{version}
+
+%patch0 -p1
+
+%{__cp} %{SOURCE1} LICENSE.TXT
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__make} %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
+
+%install
+%{__rm} -rf $RPM_BUILD_ROOT
+%{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w $RPM_BUILD_ROOT/*
+
+%check
+%{__make} test
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.TXT Changes README
+%{perl_vendorlib}/Unix/
+%{perl_vendorarch}/auto/Unix/
+%{_mandir}/man3/*.3*
+
+%changelog
+* Tue Aug 23 2005 Oliver Falk <oliver@linux-kernel.at> - 0.03-4
+- Bug #165533, thanks to Paul Howarth
+
+* Wed Aug 10 2005 Oliver Falk <oliver@linux-kernel.at> - 0.03-3
+- Add compile fix, since libstatgrab 0.12 API changes dup to
+ duplex
+
+* Wed Aug 10 2005 Oliver Falk <oliver@linux-kernel.at> - 0.03-2
+- Cleanup specfile
+- Try to make it ready for FE
+
+* Mon May 09 2005 Oliver Falk <oliver@linux-kernel.at> - 0.03-1.2
+- Rebuild
+
+* Wed Apr 13 2005 Oliver Falk <oliver@linux-kernel.at> - 0.03-1.1
+- Remove the pkgname define
+
+* Wed Apr 13 2005 Oliver Falk <oliver@linux-kernel.at> - 0.03-1
+- Update
+
+* Tue Feb 15 2005 Oliver Falk <oliver@linux-kernel.at> - 0.02-1
+- Initial build for Fedora Core
+- Used cpan2rpm for initial specfile
+
+# vim: ts=4 sw=4