7afbf3e
Summary: 	A wxWidgets/wxPython/wxPerl GUI designer
7afbf3e
Name: 		wxGlade
b8c7ee2
Version: 	0.6.3tip20100625
8b99f03
Release:    5%{?dist}
7afbf3e
Source0: 	http://downloads.sourceforge.net/wxglade/%{name}-%{version}.tar.gz
7afbf3e
Source1:    wxglade.desktop
7afbf3e
Source2:    wxglade.png
7afbf3e
License: 	MIT
7afbf3e
URL:        http://wxglade.sourceforge.net/
7afbf3e
Group: 		Development/Tools
7afbf3e
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7afbf3e
BuildArch: 	noarch
7afbf3e
BuildRequires: desktop-file-utils
7afbf3e
Requires: 	python >= 2.2
7afbf3e
Requires: 	wxPython >= 2.6
7afbf3e
7afbf3e
%description
7afbf3e
wxGlade is a GUI designer written in Python with the popular GUI
7afbf3e
toolkit wxPython, that helps you create wxWidgets/wxPython user
7afbf3e
interfaces. At the moment it can generate Python, C++, Perl and XRC
7afbf3e
(wxWidgets' XML resources) code.
7afbf3e
7afbf3e
%prep
7afbf3e
%setup -q
b413d09
7afbf3e
7afbf3e
%build
7afbf3e
# nothing to do
7afbf3e
7afbf3e
7afbf3e
%install
7afbf3e
# cleanup
7afbf3e
rm -rf $RPM_BUILD_ROOT
7afbf3e
7afbf3e
# make dirs
7afbf3e
install -m 755 -d $RPM_BUILD_ROOT%{_bindir}
7afbf3e
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}
7afbf3e
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/codegen
7afbf3e
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/edit_sizers
7afbf3e
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
7afbf3e
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/gtk
7afbf3e
7afbf3e
# copy files needed at runtime
7afbf3e
install -m644 -p *.py $RPM_BUILD_ROOT%{_datadir}/%{name}
7afbf3e
install -m644 -p codegen/*  $RPM_BUILD_ROOT%{_datadir}/%{name}/codegen
7afbf3e
install -m644 -p edit_sizers/*  $RPM_BUILD_ROOT%{_datadir}/%{name}/edit_sizers
7afbf3e
install -m644 -p icons/*.ico icons/*.png icons/*.xpm  $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
7afbf3e
install -m644 -p icons/gtk/*.xpm  $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/gtk
7afbf3e
cp -Rp widgets  $RPM_BUILD_ROOT%{_datadir}/%{name}/widgets
7afbf3e
find docs -type f -exec chmod 644 {} \;
7afbf3e
7afbf3e
# make a launcher script
7afbf3e
cat > $RPM_BUILD_ROOT%{_bindir}/wxglade <
7afbf3e
#!/bin/bash
7afbf3e
exec python %{_datadir}/%{name}/wxglade.py "\$@"
7afbf3e
EOF
7afbf3e
chmod +x $RPM_BUILD_ROOT%{_bindir}/wxglade
7afbf3e
7afbf3e
# install desktop entry
7afbf3e
desktop-file-install --vendor=fedora \
7afbf3e
  --dir=$RPM_BUILD_ROOT%{_datadir}/applications         \
7afbf3e
  %{SOURCE1}
7afbf3e
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
7afbf3e
install -m 644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
7afbf3e
edf4a7a
# docs symlink
edf4a7a
ln -s %{_docdir}/%{name}-%{version}/docs $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
edf4a7a
7afbf3e
%post
7afbf3e
touch --no-create %{_datadir}/icons/hicolor || :
7afbf3e
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
7afbf3e
update-desktop-database %{_datadir}/applications &>/dev/null || :
7afbf3e
7afbf3e
%postun
7afbf3e
touch --no-create %{_datadir}/icons/hicolor || :
7afbf3e
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
7afbf3e
update-desktop-database %{_datadir}/applications &>/dev/null || :
7afbf3e
7afbf3e
%clean
7afbf3e
rm -rf $RPM_BUILD_ROOT
7afbf3e
7afbf3e
%files
7afbf3e
%defattr(-,root,root,-)
7afbf3e
%doc docs CHANGES.txt README.txt TODO.txt credits.txt license.txt
7afbf3e
%{_bindir}/wxglade
7afbf3e
%{_datadir}/%{name}
7afbf3e
%{_datadir}/icons/hicolor/32x32/apps/*
7afbf3e
%{_datadir}/applications/*
7afbf3e
7afbf3e
7afbf3e
%changelog
8b99f03
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3tip20100625-5
8b99f03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8b99f03
18f1477
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3tip20100625-4
18f1477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
18f1477
54a269b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3tip20100625-3
54a269b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
54a269b
81c8286
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.3tip20100625-2
81c8286
- recompiling .py files against Python 2.7 (rhbz#623417)
81c8286
b8c7ee2
* Fri Jun  25 2010 ZC Miao <hellwolf.misty@gmail.com> - 0.6.3tip20100625-1
b8c7ee2
- update to tip20100625
b8c7ee2
a833a59
* Sun Jun  6 2010 ZC Miao <hellwolf.misty@gmail.com> - 0.6.3tip20091130-2
a833a59
- update source
a833a59
fa15980
* Mon Nov 30 2009 ZC Miao <hellwolf.misty@gmail.com> - 0.6.3tip20091130-1
fa15980
- update to tip version
fa15980
a203d01
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-4
a203d01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a203d01
fee7d82
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-3
fee7d82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fee7d82
42b6265
* Sat May 24 2008 ZC Miao <hellwolf.misty@gmail.com> - 0.6.3-2
25a74cf
- update to 0.6.3
25a74cf
edf4a7a
* Sat Nov 24 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.6.1-1
edf4a7a
- update to 0.6.1
edf4a7a
- remove docs path patch, add a docs symlink instead
edf4a7a
b413d09
* Thu Jul 19 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.5-6
b413d09
- 248795 , patch for launch help docs correctly
b413d09
30890d0
* Mon Apr 16 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.5-5
bdab21f
- update to fix EVR problem
bdab21f
7afbf3e
* Sun Apr 15 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.5-2
7afbf3e
- file permissions with install command
7afbf3e
7afbf3e
* Sun Apr 15 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.5-1
7afbf3e
- update to 0.5
7afbf3e
- launch script with quoted $@
7afbf3e
- name to wxGlade
7afbf3e
7afbf3e
* Tue Feb 27 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.4.1-3
7afbf3e
- Desktop entry do not need version number
7afbf3e
- remove some comments
7afbf3e
7afbf3e
* Sun Feb 25 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.4.1-2
7afbf3e
- install icon to hicolor directory
7afbf3e
- change name to wxglade
7afbf3e
- BuildRequires desktop-file-utils
7afbf3e
- remove Application category in desktop file
7afbf3e
- remove some macro redefination
7afbf3e
7afbf3e
* Fri Feb 16 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.4.1-2
7afbf3e
- Add missing icons
7afbf3e
7afbf3e
* Fri Feb 16 2007 ZC Miao <hellwolf.misty@gmail.com> - 0.4.1-1
7afbf3e
- update to 0.4.1
7afbf3e
7afbf3e
* Wed Oct 27 2004 Alberto Griggio <agriggio@users.sf.net> 0.3.5-1
7afbf3e
- Updated to version 0.3.5
7afbf3e
7afbf3e
* Wed Mar 10 2004 Alberto Griggio <agriggio@users.sf.net> 0.3.4-1
7afbf3e
- Updated to version 0.3.4
7afbf3e
7afbf3e
* Wed Mar 10 2004 Alberto Griggio <albgrig@tiscalinet.it> 0.3.2-1
7afbf3e
- Updated to version 0.3.2
7afbf3e
7afbf3e
* Tue Sep 02 2003 Alberto Griggio <albgrig@tiscalinet.it> 0.3.1-1
7afbf3e
- Updated to version 0.3.1
7afbf3e
7afbf3e
* Fri Aug 29 2003 Robin Dunn <robind@alldunn.com> 0.3-5
7afbf3e
- Initial version