]> git.pld-linux.org Git - packages/ftpcube.git/blobdiff - ftpcube.spec
- shorter code
[packages/ftpcube.git] / ftpcube.spec
index 93787ba8534b13e75b6c5012fa5dbd64061f22cc..0d570a69c3065269d68d803a9c270c82081dc77a 100644 (file)
@@ -1,17 +1,19 @@
 Summary:       Multithreaded FTP client for X Window System
-Summary(pl.UTF-8):   Wielowątkowy klient FTP dla systemu X Window
+Summary(pl.UTF-8):     Wielowątkowy klient FTP dla systemu X Window
 Name:          ftpcube
-Version:       0.4.3
-Release:       5
+Version:       0.5.1
+Release:       2
 License:       Artistic for code, GPL v2 for icons
 Group:         X11/Applications/Networking
 Source0:       http://dl.sourceforge.net/ftpcube/%{name}-%{version}.tar.gz
-# Source0-md5: 574d207377a24caf6315866d52326672
+# Source0-md5: 3eb93ae44fa552ec50a24b7882198dd1
 Source1:       %{name}.desktop
 URL:           http://ftpcube.sourceforge.net/
 BuildRequires: python
 %pyrequires_eq python-libs
+BuildRequires: python-wxPython
 Requires:      python-wxPython
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,7 +24,7 @@ and includes functionality that surpasses the original LeechFTP.
 
 FtpCube aims to provide a high quality user interface, as well as a
 rich feature set. The FtpCube project was born out of my search to
-find a good, capable unix FTP client that offered an intuitive and
+find a good, capable Unix FTP client that offered an intuitive and
 sexy UI. Plus, I liked the idea of having an FTP client written in
 Python. So, voila FtpCube.
 
@@ -42,26 +44,28 @@ FTP napisanego w Pythonie. Tak więc, voila FtpCube.
 %setup -q
 
 %build
-python setup.py build
+# Extracting program icon from .py
+%{__python} -c "import libftpcube.icons.ftpcube as icon; print icon.getData()" > %{name}.png
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-python setup.py install \
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
+%{__python} setup.py install \
        --optimize=2 \
        --prefix=%{_prefix} \
        --install-scripts=%{_bindir} \
        --root=$RPM_BUILD_ROOT
 
-install -D %{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
-install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+cp -a %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README TODO CHANGELOG
+%doc README CHANGELOG COPYING COPYING.ICONS
 %attr(755,root,root) %{_bindir}/*
 %{py_sitescriptdir}/libftpcube
 %{_desktopdir}/*.desktop
This page took 0.058239 seconds and 4 git commands to generate.