Browse Source

wxGlade-0.7.2-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10576 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
c7c7b1ea00
1 changed files with 30 additions and 55 deletions
  1. 30 55
      w/wxGlade/wxGlade-vl.spec

+ 30 - 55
w/wxGlade/wxGlade-vl.spec

@@ -1,13 +1,8 @@
-%define tipversion 20110516
-%define hgnode 96ff5a770485
-
 Summary: 	A wxWidgets/wxPython/wxPerl GUI designer
 Name: 		wxGlade
-Version: 	0.6.3
-Release:	1%{?tipversion:.tip%tipversion}%{?_dist_release}
-#Source0: 	http://downloads.sourceforge.net/wxglade/%{name}-%{version}.tar.gz
-## renamed https://bitbucket.org/agriggio/wxglade/get/tip.tar.bz2 to Source0: 
-Source0: 	wxGlade-0.6.3%{?tipversion:.tip%tipversion}.tar.bz2
+Version: 	0.7.2
+Release:	1%{?_dist_release}
+Source0: 	http://downloads.sourceforge.net/wxglade/%{name}-%{version}.tar.gz
 Source1:    wxglade.desktop
 Source2:    wxglade.png
 License: 	MIT
@@ -17,9 +12,10 @@ BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch: 	noarch
 BuildRequires: desktop-file-utils
 Requires: 	python >= 2.2
-Requires: 	wxPython >= 2.6
+Requires: 	wxPython >= 2.8
+BuildRequires:	python-setuptools
 
-Distribution:	Vine
+Distribution:	Vine Linux
 Vendor:		Project Vine
 
 %description
@@ -29,52 +25,25 @@ interfaces. At the moment it can generate Python, C++, Perl and XRC
 (wxWidgets' XML resources) code.
 
 %prep
-%setup -q -n agriggio-wxglade-%{hgnode}
-
+%setup -q
 
 %build
-# nothing to do
-
+python setup.py build
 
 %install
 # cleanup
-%__rm -rf $RPM_BUILD_ROOT
+%__rm -rf %{buildroot}
+
+python setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}
+
+# Let's handle licenses by ourselves.
+rm -frv %{buildroot}%{_docdir}/wxglade/LICENSE.txt
+
+# Install desktop related entries
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:1}
+install -pm 755 -d %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
+install -pm 644 %{S:2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
 
-# make dirs
-%__install -m 755 -d $RPM_BUILD_ROOT%{_bindir}
-%__install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}
-%__install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/codegen
-%__install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/edit_sizers
-%__install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/res
-%__install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
-%__install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/gtk
-
-# copy files needed at runtime
-%__install -m644 -p *.py $RPM_BUILD_ROOT%{_datadir}/%{name}
-%__install -m644 -p codegen/*  $RPM_BUILD_ROOT%{_datadir}/%{name}/codegen
-%__install -m644 -p edit_sizers/*  $RPM_BUILD_ROOT%{_datadir}/%{name}/edit_sizers
-%__install -m644 -p res/* $RPM_BUILD_ROOT%{_datadir}/%{name}/res
-%__install -m644 -p icons/*.ico icons/*.png icons/*.xpm  $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
-%__install -m644 -p icons/gtk/*.xpm  $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/gtk
-%__cp -Rp widgets  $RPM_BUILD_ROOT%{_datadir}/%{name}/widgets
-find docs -type f -exec chmod 644 {} \;
-
-# make a launcher script
-cat > $RPM_BUILD_ROOT%{_bindir}/wxglade <<EOF
-#!/bin/bash
-exec python %{_datadir}/%{name}/wxglade.py "\$@"
-EOF
-chmod +x $RPM_BUILD_ROOT%{_bindir}/wxglade
-
-# install desktop entry
-desktop-file-install --vendor=vine \
-  --dir=$RPM_BUILD_ROOT%{_datadir}/applications         \
-  %{SOURCE1}
-%__install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
-%__install -m 644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
-
-# docs symlink
-%__ln_s %{_docdir}/%{name}-%{version}/docs $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
 
 %post
 touch --no-create %{_datadir}/icons/hicolor || :
@@ -91,14 +60,20 @@ update-desktop-database %{_datadir}/applications &>/dev/null || :
 
 %files
 %defattr(-,root,root,-)
-%doc docs CHANGES.txt README.txt TODO.txt credits.txt license.txt
-%{_bindir}/wxglade
-%{_datadir}/%{name}
-%{_datadir}/icons/hicolor/32x32/apps/*
+%doc %{_docdir}/wxglade/
+%license LICENSE.txt
+%{_bindir}/wxglade*
+%{_datadir}/icons/hicolor/*x*/apps/*
 %{_datadir}/applications/*
-
+%{_datadir}/wxglade
+%{_mandir}/man1/wxglade.1*
+%{python_sitelib}/wxglade/
+%{python_sitelib}/%{name}-%{version}-py2.7.egg-info
 
 %changelog
+* Sat Jul  9 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.2-1
+- new upstream release.
+
 * Mon May 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.3-1.tip20110516
 - initial build