[perl-Gtk2-Ex-FormFactory] Modernize spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 5e41237a9ab54427f90b5f1d8c808c215a82b069
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Tue Jun 18 16:49:30 2013 +0200

    Modernize spec file

 perl-Gtk2-Ex-FormFactory.spec |   81 ++++++++++++++++++++---------------------
 1 files changed, 40 insertions(+), 41 deletions(-)
---
diff --git a/perl-Gtk2-Ex-FormFactory.spec b/perl-Gtk2-Ex-FormFactory.spec
index 707c999..80c9eaf 100644
--- a/perl-Gtk2-Ex-FormFactory.spec
+++ b/perl-Gtk2-Ex-FormFactory.spec
@@ -1,77 +1,76 @@
 Name:           perl-Gtk2-Ex-FormFactory
 Version:        0.67
-Release:        4%{?dist}
-Summary:        Framework for Gtk2 perl applications
-
+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
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+# Run-time:
+BuildRequires:  perl(base)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(File::Basename)
 BuildRequires:  perl(Gtk2)
+BuildRequires:  perl(Gtk2::SimpleList)
+BuildRequires:  perl(Gtk2::SimpleMenu)
+BuildRequires:  perl(POSIX)
+BuildRequires:  perl(Scalar::Util)
+# Time::Local not used by tests
+# Tests:
 BuildRequires:  perl(Test::More)
-
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
-Gtk2::Ex::FormFactory is a framework for Perl Gtk2 developers.
+This is a framework which tries to make building complex GUI's easy, by
+offering these two main features:
+
+Consistent looking GUI without the need to code resp. tune each widget by
+hand. Instead you declare the structure of your GUI, connect it to the data of
+your program (which should be a well defined set of objects) and control how
+this structure is transformed into a specific layout in a very generic way.
+
+Automatically keep widget and object states in synchronization (in both
+directions), even with complex data structures with a lot of internal
+dependencies, object nesting etc.
+
+%{?perl_default_filter}
 
 %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
+    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
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
-
 %install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-
-chmod 644 $RPM_BUILD_ROOT%{_mandir}/man3/*
-
+chmod -R u+w $RPM_BUILD_ROOT/*
 
 %check
 make test
 
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
-%doc Changes examples/ LICENSE README tutorial/
+%doc examples/ Changes LICENSE README tutorial/
 %{perl_vendorlib}/Gtk2/
 %{_mandir}/man3/*.3*
 
-
 %changelog
+* Tue Jun 18 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 0.67-5
+- Modernize spec file
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.67-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux