Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37429750
en ru br
ALT Linux repositórios
S:1.0.4-alt1

Group :: Desenvolvimento/Outros
RPM: wxGlade

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define name wxGlade

Name: wxGlade
Summary: A GUI builder for wxWindows/wxPython
Version: 1.0.4
Release: alt1
License: MIT
Group: Development/Other
Url: http://wxglade.sourceforge.net/
Packager: Konstantin Artyushkin <akv at altlinux.org>

# Source-url: https://github.com/wxGlade/wxGlade/archive/refs/tags/v%version.tar.gz

Source: %name-%version.tar

BuildRequires(pre): rpm-macros-python3
BuildRequires: ImageMagick-tools
BuildRequires: python3-devel
BuildRequires: python3-module-setuptools
BuildRequires: rpm-build-python3
BuildArch: noarch

%add_python3_self_prov_path %buildroot%python3_sitelibdir/wxglade/

%description
wxGlade is a GUI designer written in Python with the popular GUI toolkit
wxPython, that helps you create wxWindows/wxPython user interfaces. At the
moment it can generate Python, C++ and XRC (wxWindows' XML resources) code.

As you can guess by the name, its model is Glade, the famous GTK+/GNOME
GUI builder, with which wxGlade shares the philosophy and the look & feel
(but not a line of code).

It is not (and will never be) a full featured IDE, but simply a "designer":
the generated code does nothing apart from displaying the created widgets.
If you are looking for a complete IDE, maybe Boa Constructor or PythonCard
is the right tool.

%prep
%setup

%build
%python3_build

%install
%python3_install

# create run script

cat > %buildroot%_bindir/wxglade << EOF
#!/bin/sh
%__python3 %python3_sitelibdir/wxglade/wxglade.py
EOF

# icons

mkdir -p %buildroot{%_iconsdir,%_miconsdir,%_liconsdir}
convert -resize 32x32 icons/icon.png %buildroot%_iconsdir/%name.png
convert -resize 16x16 icons/icon.png %buildroot%_miconsdir/%name.png
convert -resize 48x48 icons/icon.png %buildroot%_liconsdir/%name.png

# menu entry

mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%name.desktop << EOF
[Desktop Entry]
Name=%name
Comment=A GUI builder for wxWindows/wxPython
Exec=%_bindir/wxglade
Icon=%name
Terminal=false
Type=Application
Categories=Development;GUIDesigner;
EOF

# docs handled by doc section

rm -rf %buildroot%_docdir/wxglade/*
cp -r docs/html %buildroot%_docdir/wxglade/

# remove script for windows

rm %buildroot/%python3_sitelibdir/wxglade/msw.py

%files
%doc README.txt
%doc %_docdir/wxglade/
%_bindir/wxglade
%python3_sitelibdir/wxglade
%python3_sitelibdir/%name-%version-py%__python3_version.egg-info
%_desktopdir/%name.desktop
%_iconsdir/%name.png
%_miconsdir/%name.png
%_liconsdir/%name.png
%_datadir/wxglade

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009