1 DESCRIPTION = "Perl extension for the DBus message system"
2 HOMEPAGE = "http://search.cpan.org/dist/Net-DBus/"
3 SECTION = "Development/Libraries"
12 #PROVIDES by perl-Net-DBus
13 PROVIDES += "perl-Net-DBus"
14 RPROVIDES_perl-Net-DBus += "perl-Net-DBus"
17 #RDEPENDS of perl-Net-DBus (${PN})
18 RDEPENDS_${PN} += "perl(XML::Twig)"
22 #DEPENDS of perl-Net-DBus
23 DEPENDS += "perl(Test::Pod)"
24 DEPENDS += "perl(XML::Twig)"
25 DEPENDS += "pkgconfig(dbus-1)"
26 DEPENDS += "pkgconfig(pkg-config)"
28 DEPENDS += "perl(Test::Pod::Coverage)"
31 chmod -Rf a+rX,u+w,g-w,o-w ${S}
32 #setup -q -n Net-DBus-1.0.0
33 cp ${S}/packaging/perl-Net-DBus.manifest .
34 find . -type f -print0 | xargs -0 chmod 644
46 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
47 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
48 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
49 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
51 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables"
62 echo export RPM_BUILD_ROOT=${D}
69 make DESTDIR=$RPM_BUILD_ROOT install_vendor
71 if test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT/usr/lib/perl/5.14.3//auto; then
72 find $RPM_BUILD_ROOT/usr/lib/perl/5.14.3//auto -name .packlist -print0 | xargs -0 -r rm
73 if [ x86_64 == noarch ]; then
74 find $RPM_BUILD_ROOT/usr/lib/perl/5.14.3//auto -depth -type d -print0 | xargs -0 -r rmdir
77 rm -f $RPM_BUILD_ROOT/usr/lib/perl/5.14.3//perllocal.pod
80 FILES=perl-Net-DBus.files
84 /bin/cat >> $FILES << EOF
91 /bin/cat >> $FILES << EOF
95 # check for files in /usr/lib/perl/5.14.3/
96 RES=`find ${RPM_BUILD_ROOT}/usr/lib/perl/5.14.3/ -maxdepth 1 -type f`
97 if [ -n "$RES" ]; then
99 fgen_file "/usr/lib/perl/5.14.3//$(basename ${file})"
103 # get all dirs into array
104 base_dir="${RPM_BUILD_ROOT}/usr/lib/perl/5.14.3//"
105 for dir in `find ${base_dir} -type d | sort`; do
106 if [ "$dir" = "${base_dir}" ]; then
109 el=`echo $dir | gawk -F"${base_dir}" '{print $2}'`
110 all_dir=(${all_dir[@]} $el)
115 for i in ${all_dir[@]}; do
116 # do not add "dir {perl_vendorlib/arch}/auto", included in perl package
117 if [ "${i}" = "auto" ]; then
120 if [ "/usr/lib/perl/5.14.3//${i}" = "/usr/lib/perl/5.14.3//auto" ]; then
123 if [ -d ${base_dir}/${i} ]; then
124 RES=`find "${base_dir}/${i}" -maxdepth 1 -type f`
125 if [ -n "$RES" ]; then
126 fgen_dir "/usr/lib/perl/5.14.3//${i}"
128 fgen_file "/usr/lib/perl/5.14.3//${i}/$(basename ${file})"
131 fgen_dir "/usr/lib/perl/5.14.3//${i}"
138 if [ -d "${RPM_BUILD_ROOT}/usr/share/man" ]; then
139 fgen_file "/usr/share/man/man?/*"
143 # generated fom perllocal.pod
144 if [ -f "${RPM_BUILD_ROOT}/var/adm/perl-modules/perl-Net-DBus" ]; then
145 fgen_file "/var/adm/perl-modules/perl-Net-DBus"
148 # check for files in /usr/bin
149 if [ -d ${RPM_BUILD_ROOT}/usr/bin ]; then
150 RES=`find "${RPM_BUILD_ROOT}/usr/bin" -maxdepth 1 -type f`
151 if [ -n "$RES" ]; then
153 fgen_file "/usr/bin/$(basename ${file})"
162 PACKAGES += "perl-Net-DBus"
164 perl-Net-DBus_files = ""
165 perl-Net-DBus_files += "perl-Net-DBus.manifest"
166 perl-Net-DBus_files += "AUTHORS CHANGES examples LICENSE Net-DBus.spec README"
168 FILES_${PN} = "${perl-Net-DBus_files}"
170 PKG_perl-Net-DBus= "perl-Net-DBus"
172 require perl-Net-DBus-extraconf.inc