forked from henrythasler/simple-image-reducer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple-image-reducer.spec.in
71 lines (54 loc) · 1.82 KB
/
simple-image-reducer.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This spec file is optimized for Fedora
Name: simple-image-reducer
Version: @VERSION@
Release: 1%{?dist}
Summary: Reduce and rotate images in three-four clicks
Group: Applications/Multimedia
License: GPL
URL: http://simple-image-reducer.org.ua/
Source0: http://simple-image-reducer.org.ua/download/%{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: findutils
BuildRequires: python
Requires: python >= 2.4
Requires: pygtk2 >= 2.12
Requires: gtk2
Requires: python-imaging
Requires: python-exif
%description
Simple Image Reducer - is an GTK application to simple reduce and rotate
images. The program can be useful for processing digital photos before sending
by e-mail or uploading on the web. Image files can be supplied to the
application from the file manager using the context menu "Open with...", or
dragging files to the main window.
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %name
%clean
rm -rf $RPM_BUILD_ROOT
%post
update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
update-desktop-database &> /dev/null || :
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang
%defattr(-,root,root,-)
%{_bindir}/simple-image-reducer
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/simple-image-reducer.png
%{_datadir}/icons/hicolor/*/apps/simple-image-reducer.*