diff --git a/README.md b/README.md index 8fd1ce6..f2a41e3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Alien-wxWidgets +Building, finding and using wxWidgets binaries. + diff --git a/perl-Alien-wxWidgets.spec b/perl-Alien-wxWidgets.spec new file mode 100644 index 0000000..ddafa05 --- /dev/null +++ b/perl-Alien-wxWidgets.spec @@ -0,0 +1,81 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Alien-wxWidgets +Version: 0.65 +Release: 2mamba +Summary: Building, finding and using wxWidgets binaries +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/M/MD/MDOOTSON/Alien-wxWidgets-%{version}.tar.gz +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: libperl +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRequires: libwxGTK-unicode-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Building, finding and using wxWidgets binaries. + +%prep +%setup -q -n Alien-wxWidgets-%{version} + +%build +%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" << _EOF +no +_EOF + +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm -f $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f .packlist +%defattr(-,root,root) +%doc README.txt +#%{perl_vendorarch}/Alien/wxWidgets/gtk_*_uni/* + +%changelog +* Sat Apr 12 2014 Silvan Calarco 0.65-2mamba +- use system wxWidgets + +* Thu Apr 10 2014 Automatic Build System 0.65-1mamba +- automatic update by autodist + +* Sun May 19 2013 Automatic Build System 0.64-1mamba +- automatic update by autodist + +* Thu Apr 04 2013 Automatic Build System 0.63-1mamba +- automatic version update by autodist + +* Mon Oct 15 2012 Automatic Build System 0.62-1mamba +- automatic version update by autodist + +* Fri Sep 14 2012 Automatic Build System 0.60-1mamba +- automatic version update by autodist + +* Tue Aug 07 2012 Automatic Build System 0.59-1mamba +- automatic version update by autodist + +* Thu Oct 20 2011 Silvan Calarco 0.53-1mamba +- package created by autospec