trimage-vl.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Summary: A cross-platform tool for optimizing PNG and JPG files
  3. Summary(ja): クロスプラットホームの PNG と JPG ファイルの最適化のためのツール
  4. Name: trimage
  5. Version: 1.0.5
  6. Release: 3%{?_dist_release}
  7. License: MIT
  8. Group: Applications/Graphics
  9. URL: http://trimage.org
  10. Source: %{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: python-devel
  14. BuildRequires: python-setuptools
  15. Requires: PyQt4 >= 4.4
  16. Requires: advancecomp >= 1.15
  17. Requires: jpegoptim >= 1.2.2
  18. Requires: optipng >= 0.6.2.1
  19. Requires: pngcrush >= 1.6.7
  20. Requires: python >= 2.6
  21. %description
  22. Trimage is a cross-platform GUI and command-line interface to optimize image
  23. files via optipng, advpng, pngcrush and jpegoptim, depending on the filetype
  24. (currently, PNG and JPG files are supported). All image files are losslessly
  25. compressed on the highest available compression levels. Trimage gives you
  26. various input functions to fit your own workflow: A regular file dialog,
  27. dragging and dropping and various command line options.
  28. %prep
  29. %setup -qn %{name}-%{version}
  30. %build
  31. %{__python} setup.py build
  32. %install
  33. rm -rf %{buildroot}
  34. %{__python} setup.py install -O1 --skip-build --root=%{buildroot}
  35. %clean
  36. rm -rf %{buildroot}
  37. %files
  38. %defattr(-, root, root)
  39. %doc README COPYING
  40. %{_bindir}/%{name}
  41. %{_datadir}/applications/%{name}.desktop
  42. %{_datadir}/icons/hicolor/
  43. %{python_sitelib}/*
  44. %changelog
  45. * Wed Feb 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.5-3
  46. - rebuild with python-2.7.2
  47. * Thu Jul 21 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.5-2
  48. - changed BuildRequires: python to python-devel
  49. - added BuildRequires: python-setuptools
  50. * Tue Dec 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.5-1
  51. - initial build for VineSeed