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