Building perl-Audio-Ao for Fedora
by agraham
Hi Guys,
I need some help, I'm trying to build Audio-Ao rpm for Fedora 14 (and
up) for i686 arch. (http://search.cpan.org/dist/Audio-Ao/).
Audio::Ao seems to be the only way for perl to interface with libao,
which is why I need this.
It builds and works perfectly on x64, it builds but segfaults on i386 or
i686
dmesg shows:
perl[15948]: segfault at 1 ip 00418526 sp bf9e1664 error 4 in
libc-2.13.so[39b000+183000]
I've installed a new F14(i686) VM and done clean build with the same
results.
Any help would be very much appreciated.
Albert
My spec file (perl-Audio-Ao.spec):
Name: perl-Audio-Ao
Version: 0.01
Release: 1.Fedora
Summary: Audio::Ao - wrapper for the Ao audio library
License: GPLv2+
Group: Development/Libraries
URL: http://search.cpan.org/dist/Audio-Ao/
Source0:
http://search.cpan.org/CPAN/authors/id/D/DB/DBP/Audio-Ao-0.01.tar.gz
#BuildArch: noarch
Patch0: %{name}-fix.patch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Inline) >= 0.44
BuildRequires: perl-Parse-RecDescent
BuildRequires: libao-devel
Requires: perl(Inline)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`";
echo $version))
%{?perl_default_filter}
%description
Provides access to Libao, "a cross-platform library that allows
programs to output PCM audio data to the native audio devices on a
wide variety of platforms.". Libao currently supports OSS, ESD, ALSA,
Sun audio, and aRts.
%prep
%setup -q -n Audio-Ao-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make
#%{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
#make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
#
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorarch}/Audio/Ao.pm
%dir %{perl_vendorarch}/auto/Audio/Ao
%{perl_vendorarch}/auto/Audio/Ao/Ao.bs
%attr(755,root,root) %{perl_vendorarch}/auto/Audio/Ao/Ao.so
%{_mandir}/man3/*
#
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* Tue May 29 2012 me <me(a)example.com> - 0.01-1
-
11 years, 12 months
[perl-version] Fix dependencies
by Petr Pisar
commit 91f56f05d56fa73f7eb38ac2f6d88f2a640866d7
Author: Petr Písař <ppisar(a)redhat.com>
Date: Thu May 31 18:45:56 2012 +0200
Fix dependencies
perl-version.spec | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/perl-version.spec b/perl-version.spec
index f8d3c30..8932d9e 100644
--- a/perl-version.spec
+++ b/perl-version.spec
@@ -1,21 +1,24 @@
Name: perl-version
Epoch: 3
Version: 0.88
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Perl extension for Version Objects
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/version/
Source0: http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-%{version}.tar.gz
-BuildRequires: perl(Module::Build)
+BuildRequires: perl(ExtUtils::MakeMaker)
+# Tests:
+BuildRequires: perl(base)
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(File::Temp) >= 0.13
+# IO::Handle is optional
+BuildRequires: perl(lib)
BuildRequires: perl(Test::More) >= 0.45
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+%{?perl_default_filter}
# version::vxs is private module (see bug #633775)
-%{?perl_default_filter:
-%filter_from_provides /^perl(version::vxs)/d
-%perl_default_filter
-}
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(version::vxs\\)
%description
@@ -56,6 +59,9 @@ make test
%{_mandir}/man3/version::Internals.3pm*
%changelog
+* Thu May 31 2012 Petr Pisar <ppisar(a)redhat.com> - 3:0.88-8
+- Fix dependencies
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3:0.88-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
11 years, 12 months
[perl-Test-Simple] Specify all dependencies
by Petr Pisar
commit e3c352a2af422526ff4ff265cca1754ef66a105b
Author: Petr Písař <ppisar(a)redhat.com>
Date: Thu May 31 18:17:45 2012 +0200
Specify all dependencies
perl-Test-Simple.spec | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/perl-Test-Simple.spec b/perl-Test-Simple.spec
index 4ba4e2b..a75f8d0 100644
--- a/perl-Test-Simple.spec
+++ b/perl-Test-Simple.spec
@@ -1,7 +1,7 @@
Name: perl-Test-Simple
Summary: Basic utilities for writing tests
Version: 0.98
-Release: 4%{?dist}
+Release: 5%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/Test-Simple-%{versio...
@@ -9,8 +9,15 @@ URL: http://search.cpan.org/dist/Test-Simple
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
+BuildRequires: perl(Carp)
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(IO::Handle)
+BuildRequires: perl(IO::Pipe)
+BuildRequires: perl(lib)
BuildRequires: perl(Test::Harness) >= 2.03
+Requires: perl(Data::Dumper)
Requires: perl(Test::Harness) >= 2.03
# note this is right out of perl.spec
@@ -56,6 +63,9 @@ make test
%{_mandir}/man3/*.3*
%changelog
+* Thu May 31 2012 Petr Pisar <ppisar(a)redhat.com> - 0.98-5
+- Specify all dependencies
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0.98-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
11 years, 12 months
[perl-FusionInventory-Agent-Task-Deploy] new package, import from review
by Remi Collet
commit f7f5b308e4725323642f95e6c9fae22d1c34a8fc
Author: remi <fedora(a)famillecollet.com>
Date: Thu May 31 17:27:48 2012 +0200
new package, import from review
.gitignore | 1 +
perl-FusionInventory-Agent-Task-Deploy.spec | 114 +++++++++++++++++++++++++++
sources | 1 +
3 files changed, 116 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5365e8a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/FusionInventory-Agent-Task-Deploy-2.0.0.tar.gz
diff --git a/perl-FusionInventory-Agent-Task-Deploy.spec b/perl-FusionInventory-Agent-Task-Deploy.spec
new file mode 100644
index 0000000..6c2d372
--- /dev/null
+++ b/perl-FusionInventory-Agent-Task-Deploy.spec
@@ -0,0 +1,114 @@
+Name: perl-FusionInventory-Agent-Task-Deploy
+Version: 2.0.0
+Release: 3%{?dist}
+Summary: Software deployment support for FusionInventory Agent
+License: GPLv2+
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/FusionInventory-Agent-Task-Deploy/
+Source0: http://search.cpan.org/CPAN/authors/id/F/FU/FUSINV/FusionInventory-Agent-...
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: perl >= 1:5.8.0
+BuildRequires: perl(base)
+BuildRequires: perl(inc::Module::Install)
+BuildRequires: perl(Archive::Extract)
+BuildRequires: perl(Archive::Tar)
+BuildRequires: perl(Compress::Zlib)
+BuildRequires: perl(Cwd)
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(Digest::SHA)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(File::Copy::Recursive)
+BuildRequires: perl(File::Path)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(File::Which)
+BuildRequires: perl(HTTP::Request)
+BuildRequires: perl(HTTP::Request::Common)
+BuildRequires: perl(HTTP::Server::Simple::CGI)
+BuildRequires: perl(JSON)
+BuildRequires: perl(LWP)
+BuildRequires: perl(Net::IP)
+BuildRequires: perl(POE)
+BuildRequires: perl(POE::Component::Client::Ping)
+BuildRequires: perl(POE::Component::Client::TCP)
+BuildRequires: perl(Test::Compile)
+BuildRequires: perl(Test::HTTP::Server::Simple)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(UNIVERSAL::require)
+BuildRequires: perl(URI::Escape)
+BuildRequires: fusioninventory-agent >= 2.2.0
+
+Requires: fusioninventory-agent >= 2.2.0
+Requires: perl(POE::Component::Client::Ping)
+Requires: perl(POE::Component::Client::TCP)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# RPM 4.8
+%{?filter_from_provides: %filter_from_provides /perl(FusionInventory::/d}
+%{?filter_from_requires: %filter_from_requires /perl(FusionInventory::/d}
+%{?perl_default_filter}
+# RPM 4.9
+%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(FusionInventory::
+%global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(FusionInventory::
+
+
+%description
+With this module, FusionInventory can accept software deployment request
+from an GLPI server with the FusionInventory plugin.
+
+
+%prep
+%setup -q -n FusionInventory-Agent-Task-Deploy-%{version}
+
+# use system ones
+rm -rf inc/*
+
+
+%build
+perl Makefile.PL \
+ PREFIX=%{_prefix} \
+ SYSCONFDIR=%{_sysconfdir}/fusioninventory \
+ LOCALSTATEDIR=%{_localstatedir}/lib/%{name}
+
+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
+%defattr(-,root,root,-)
+%doc Changes LICENSE README
+%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Deploy.pm
+%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Deploy
+%{_mandir}/man3/*
+
+
+%changelog
+* Wed May 30 2012 Remi Collet <remi(a)fedoraproject.org> - 2.0.0-3
+- fix BuildRequires/Requires from review #812587
+
+* Fri May 11 2012 Remi Collet <remi(a)fedoraproject.org> - 2.0.0-2
+- filter private provides/requires
+
+* Sun Apr 15 2012 Remi Collet <remi(a)fedoraproject.org> - 2.0.0-1
+- initial spec for Agent 2.2.0
+- Specfile autogenerated by cpanspec 1.78.
+
diff --git a/sources b/sources
index e69de29..b161581 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1f0378c8463460ac4a4d605ddd38ccb4 FusionInventory-Agent-Task-Deploy-2.0.0.tar.gz
11 years, 12 months
[perl-Glib] Do not export private modules and libraries
by Petr Pisar
commit ce4333136a5c236e1d6b1391a61c8f555d829934
Author: Petr Písař <ppisar(a)redhat.com>
Date: Thu May 31 17:19:35 2012 +0200
Do not export private modules and libraries
perl-Glib.spec | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/perl-Glib.spec b/perl-Glib.spec
index b3f626b..2ec02cd 100644
--- a/perl-Glib.spec
+++ b/perl-Glib.spec
@@ -1,6 +1,6 @@
Name: perl-Glib
Version: 1.241
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Perl interface to GLib
Group: Development/Libraries
License: LGPLv2+
@@ -13,6 +13,10 @@ BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Do not export private modules and libraries
+%{?perl_default_filter}
+%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(MY\\)
+
%description
This module provides perl access to GLib and GLib's GObject libraries.
GLib is a portability and utility library; GObject provides a generic
@@ -33,14 +37,6 @@ to GLib and GObject libraries.
%prep
%setup -q -n Glib-%{version}
-# Provides: exclude perl(MY)
-cat <<__EOF__ > %{name}-perl.prov
-#!/bin/sh
-/usr/lib/rpm/perl.prov \$* | grep -v '^perl(MY)$'
-__EOF__
-%define __perl_provides %{_builddir}/Glib-%{version}/%{name}-perl.prov
-chmod +x %{__perl_provides}
-
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make
@@ -80,6 +76,9 @@ make test
%{_mandir}/man3/Glib::xsapi.3pm.gz
%changelog
+* Thu May 31 2012 Petr Pisar <ppisar(a)redhat.com> - 1.241-3
+- Do not export private modules and libraries
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.241-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
11 years, 12 months
[perl-Filter] Skip optional Test::Pod on bootstraping perl
by Petr Pisar
commit 9465cc196b0127c9f0a9b6c19165e07d31212cc8
Author: Petr Písař <ppisar(a)redhat.com>
Date: Thu May 31 16:14:54 2012 +0200
Skip optional Test::Pod on bootstraping perl
perl-Filter.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/perl-Filter.spec b/perl-Filter.spec
index d093ff1..9a156c0 100644
--- a/perl-Filter.spec
+++ b/perl-Filter.spec
@@ -1,6 +1,6 @@
Name: perl-Filter
Version: 1.43
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Perl source filters
License: GPL+ or Artistic
Group: Development/Libraries
@@ -16,7 +16,9 @@ BuildRequires: perl(Exporter)
BuildRequires: perl(Cwd)
# Optional tests
BuildRequires: perl(Test::More)
+%if !%{defined perl_bootstrap}
BuildRequires: perl(Test::Pod) >= 1.00
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
@@ -57,6 +59,9 @@ make test
%{_mandir}/man3/*
%changelog
+* Thu May 31 2012 Petr Pisar <ppisar(a)redhat.com> - 1.43-2
+- Skip optional Test::Pod on bootstraping perl
+
* Mon Feb 27 2012 Petr Pisar <ppisar(a)redhat.com> - 1.43-1
- 1.43 bump
11 years, 12 months
Broken dependencies: perl-Net-OpenSSH
by Fedora Koji Build System
perl-Net-OpenSSH has broken dependencies in the rawhide tree:
On x86_64:
perl-Net-OpenSSH-0.57-3.fc18.noarch requires openssh-clients(%{__isa_name}-%{__isa_bits})
On i386:
perl-Net-OpenSSH-0.57-3.fc18.noarch requires openssh-clients(%{__isa_name}-%{__isa_bits})
Please resolve this as soon as possible.
11 years, 12 months