Browse Source

* perl-TermReadKey: rebuild
* perl-PHP-Session, perl-Net-Frame-Simple: new packages


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5893 ec354946-7b23-47d6-9f5a-488ba84defc7

shaolin 12 years ago
parent
commit
3ff6b9780c

+ 53 - 0
p/perl-Net-Frame-Simple/perl-Net-Frame-Simple-vl.spec

@@ -0,0 +1,53 @@
+Name:           perl-Net-Frame-Simple
+Summary:        Net-Frame-Simple - frame crafting made easy
+Version:        1.05
+Release:        1%{?_dist_release}
+License:        Artistic or GPL+
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Net-Frame/
+
+Source:         http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/Net-Frame-Simple-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Class::Gomor)
+BuildRequires:  perl(Class::Gomor::Array)
+BuildRequires:  perl(Net::Frame)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+the base framework for frame crafting.
+
+%prep
+%setup -q -n Net-Frame-Simple-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS="vendor"
+%{__make} %{?_smp_mflags}
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} pure_install DESTDIR=%{buildroot}
+
+### Clean up buildroot
+find %{buildroot} -name .packlist -exec %{__rm} {} \;
+
+### Clean up docs
+find examples/ -type f -exec %{__chmod} a-x {} \;
+
+%check
+%{__make} test
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc Changes LICENSE LICENSE.Artistic MANIFEST META.yml README examples/
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.05-1
+- initial build for Vine Linux

+ 52 - 0
p/perl-PHP-Session/perl-PHP-Session-vl.spec

@@ -0,0 +1,52 @@
+Name:		perl-PHP-Session
+Version:	0.27
+Release:	1%{?_dist_release}
+Summary:	read / write PHP session files
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+URL:		http://search.cpan.org/dist/PHP-Session/
+Source0:	http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/PHP-Session-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:	noarch
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Test::More) >= 0.32
+BuildRequires:	perl(UNIVERSAL::require) >= 0.03
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:	perl(Test::More) >= 0.32
+Requires:	perl(UNIVERSAL::require) >= 0.03
+
+%description
+PHP::Session provides a way to read / write PHP4 session files, with
+which you can make your Perl application session shared with PHP4.
+
+If you like Apache::Session interface for session management, there is
+a glue for Apache::Session of this module, Apache::Session::PHP.
+
+%prep
+%setup -q -n PHP-Session-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX='/usr'
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.27-1
+- initial build for Vine Linux

+ 13 - 14
p/perl-TermReadKey/perl-TermReadKey-vl.spec

@@ -1,6 +1,6 @@
 Name:           perl-TermReadKey
 Version:        2.30
-Release:        3%{?_dist_release}
+Release:        4%{?_dist_release}
 Summary:        A perl module for simple terminal control
 
 Group:          Development/Libraries
@@ -10,11 +10,7 @@ Source0:        http://www.cpan.org/authors/id/J/JS/JSTOWE/TermReadKey-%{version
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
 BuildRequires:  perl(ExtUtils::MakeMaker)
-%if "%{?_dist_release}" == "vl4"
-Requires:       perl = %(rpm -q --qf '%%{epoch}:%%{version}' perl)
-%else
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-%endif
 
 %description
 Term::ReadKey is a compiled perl module dedicated to providing simple
@@ -31,17 +27,17 @@ good likelyhood of it working.
 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
+CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags} OPTIMIZE="%{optflags}"
 
 
 %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/*
+rm -rf %{buildroot}
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w %{buildroot}/*
 
 
 %check
@@ -49,7 +45,7 @@ make test
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 
 %files
@@ -61,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.30-4
+- rebuild
+
 * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 2.30-3vl6
 - build with perl 5.12.3