Name: perl-Gtk2-Ex-FormFactory
Version: 0.65
Release: 5%{?dist}
Summary: Framework for Gtk2 perl applications
Group: Development/Libraries
License: LGPLv2+
URL: http://www.exit1.org/Gtk2-Ex-FormFactory/
Source0: http://www.exit1.org/packages/Gtk2-Ex-FormFactory/dist/Gtk2-Ex-FormFactory-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Gtk2)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Gtk2::Ex::FormFactory is a framework for Perl Gtk2 developers.
%prep
%setup -q -n Gtk2-Ex-FormFactory-%{version}
# Make it so that the .pl scripts in %%doc don't add bogus requirements
chmod -x examples/* tutorial/*
# Convert encoding
for f in $(find lib/ -name *.pm) README tutorial/README; do
cp -p ${f} ${f}.noutf8
iconv -f ISO-8859-1 -t UTF-8 ${f}.noutf8 > ${f}
touch -r ${f}.noutf8 ${f}
rm ${f}.noutf8
done
# Filter unwanted Provides:
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
sed -e '/^perl(Music/d'
EOF
%define __perl_provides %{_builddir}/Gtk2-Ex-FormFactory-%{version}/%{name}-prov
chmod +x %{name}-prov
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%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 {} ';'
chmod 644 $RPM_BUILD_ROOT%{_mandir}/man3/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes examples/ LICENSE README tutorial/
%{perl_vendorlib}/Gtk2/
%{_mandir}/man3/*.3*
%changelog
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.65-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.65-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu May 29 2008 kwizart < kwizart at gmail.com > - 0.65-3
- Fix non-utf8 encoding at source.
* Wed May 28 2008 kwizart < kwizart at gmail.com > - 0.65-2
- Fix man3 encoding
- Fix unwanted perl provides (Music::*)
* Wed Apr 30 2008 kwizart < kwizart at gmail.com > - 0.65-1
- Update to 0.65
- Fix encoding
* Mon Jan 9 2006 Matthias Saou <http://freshrpms.net/> 0.59-1
- Initial RPM package.