[perl-Sys-Mmap] Switch to buildroot and optflags for brevity

Jason ティビツ tibbs at fedoraproject.org
Wed Jan 26 00:16:27 UTC 2011


commit 2ffebbf0763fec014e8a26c12d8b7406543fd4f4
Author: Jason Tibbitts <tibbs at math.uh.edu>
Date:   Tue Jan 25 18:14:52 2011 -0600

    Switch to buildroot and optflags for brevity

 perl-Sys-Mmap.spec |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/perl-Sys-Mmap.spec b/perl-Sys-Mmap.spec
new file mode 100644
index 0000000..7b955e8
--- /dev/null
+++ b/perl-Sys-Mmap.spec
@@ -0,0 +1,51 @@
+Name:           perl-Sys-Mmap
+Version:        0.14
+Release:        2%{?dist}
+Summary:        Use mmap to map in a file as a Perl variable
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Sys-Mmap/
+Source0:        http://www.cpan.org/authors/id/T/TO/TODDR/Sys-Mmap-%{version}.tar.gz
+BuildRequires:  perl(ExtUtils::MakeMaker) perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+%{?perl_default_filter}
+
+%description
+The Mmap module lets you use mmap to map in a file as a perl variable rather
+than reading the file into dynamically allocated memory.  Multiple programs may
+map the same file into memory, and immediately see changes by each other.
+Memory may be allocated not attached to a file, and shared with subprocesses.
+
+%prep
+%setup -q -n Sys-Mmap-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%defattr(-,root,root,-)
+%doc Artistic Changes Copying README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Sys*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Jan 25 2011 Jason L Tibbitts III <tibbs at math.uh.edu> - 0.14-2
+- Switch over to %%buildroot and %%optflags.  Who needs verbose screaming?
+
+* Mon Jan 24 2011 Jason Tibbitts <tibbs at math.uh.edu> 0.14-1
+- Specfile autogenerated by cpanspec 1.78.
+- Initial tweaks before package submission.


More information about the scm-commits mailing list