source: projects/specs/trunk/t/trimage/trimage-vl.spec @ 2408

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