trimage-vl.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: 1%{?_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
  14. Requires: PyQt4 >= 4.4
  15. Requires: advancecomp >= 1.15
  16. Requires: jpegoptim >= 1.2.2
  17. Requires: optipng >= 0.6.2.1
  18. Requires: pngcrush >= 1.6.7
  19. Requires: python >= 2.6
  20. %description
  21. Trimage is a cross-platform GUI and command-line interface to optimize image
  22. files via optipng, advpng, pngcrush and jpegoptim, depending on the filetype
  23. (currently, PNG and JPG files are supported). All image files are losslessly
  24. compressed on the highest available compression levels. Trimage gives you
  25. various input functions to fit your own workflow: A regular file dialog,
  26. dragging and dropping and various command line options.
  27. %prep
  28. %setup -qn %{name}-%{version}
  29. %build
  30. %{__python} setup.py build
  31. %install
  32. rm -rf %{buildroot}
  33. %{__python} setup.py install -O1 --skip-build --root=%{buildroot}
  34. %clean
  35. rm -rf %{buildroot}
  36. %files
  37. %defattr(-, root, root)
  38. %doc README COPYING
  39. %{_bindir}/%{name}
  40. %{_datadir}/applications/%{name}.desktop
  41. %{_datadir}/icons/hicolor/
  42. %{python_sitelib}/*
  43. %changelog
  44. * Tue Dec 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.5-1
  45. - initial build for VineSeed