]> git.pld-linux.org Git - packages/ftpcube.git/blobdiff - ftpcube.spec
- shorter code
[packages/ftpcube.git] / ftpcube.spec
index 1575a497239cf1be6b7707eff7978a1d22a6bfd4..0d570a69c3065269d68d803a9c270c82081dc77a 100644 (file)
@@ -1,48 +1,72 @@
-Summary:       Multithreaded FTP client for X Window
+Summary:       Multithreaded FTP client for X Window System
+Summary(pl.UTF-8):     Wielowątkowy klient FTP dla systemu X Window
 Name:          ftpcube
-Version:       0.4.3
-Release:       1
+Version:       0.5.1
+Release:       2
 License:       Artistic for code, GPL v2 for icons
 Group:         X11/Applications/Networking
-Source0:       http://dl.sourceforge.net/ftpcube/ftpcube-0.4.3.tar.gz
-# Source0-md5: 574d207377a24caf6315866d52326672
+Source0:       http://dl.sourceforge.net/ftpcube/%{name}-%{version}.tar.gz
+# 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
 FtpCube is a multi-platform, graphical FTP client written in Python,
-using the wxPython graphical tookit.  FtpCube's interface is based on
+using the wxPython graphical tookit. FtpCube's interface is based on
 LeechFTP by Jan Debis but its codebase has been developed from scratch
 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 sexy UI.
-Plus, I liked the idea of having an FTP client written in Python.  So,
-voila FtpCube.
+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
+sexy UI. Plus, I liked the idea of having an FTP client written in
+Python. So, voila FtpCube.
+
+%description -l pl.UTF-8
+FtpCube to wieloplatformowy, graficzny klient FTP napisany w Pythonie,
+używający biblioteki graficznej wxPython. Interfejs FtpCube jest
+oparty na LeechFTP Jana Debisa, ale kod został stworzony od początku i
+zawiera funkcjonalność przewyższającą oryginał.
+
+FtpCube ma zapewnić wysokiej jakości interfejs użytkownika, a także
+bogaty zbiór możliwości. Projekt FtpCube narodził się z poszukiwań
+dobrego, uniksowego klienta FTP o dużych możliwościach, oferującego
+intuicyjny i seksowny interfejs. Autorowi spodobała się idea klienta
+FTP napisanego w Pythonie. Tak więc, voila FtpCube.
 
 %prep
-%setup -q -n %{name}-%{version}
+%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 \
-        --optimize=2 \
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
+%{__python} setup.py install \
+       --optimize=2 \
        --prefix=%{_prefix} \
        --install-scripts=%{_bindir} \
-        --root=$RPM_BUILD_ROOT
+       --root=$RPM_BUILD_ROOT
+
+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_sitedir}/libftpcube/
+%{py_sitescriptdir}/libftpcube
+%{_desktopdir}/*.desktop
+%{_pixmapsdir}/*
This page took 0.063687 seconds and 4 git commands to generate.