summaryrefslogtreecommitdiff
path: root/RPM/photocrop.spec
blob: 228be5790f81fb6dafa11f6cc594c4a950ce1534 (plain)
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
#
# spec file for package photocrop
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%define unmangled_version 0.230112-0~alpha
Name:       photocrop
Version:	0.230112
Release:    0~alpha
Summary:	An application for cropping photos to popular paper sizes.
License:	GPL
URL:		https://pietraszczyk.vxm.pl/przycinanie-zdjec/
Source0:	%{name}-%{unmangled_version}.tar.gz
%if 0%{?suse_version}>=150000
BuildRequires:	python3, python3-gobject, python3-gobject-Gdk, typelib-1_0-Gtk-3_0, libgtk-3-0
Requires:       python3, python3-gobject, python3-gobject-Gdk, typelib-1_0-Gtk-3_0, libgtk-3-0
%endif
%if 0%{?fedora}>=35
BuildRequires:	python3, python3-gobject, gtk3
Requires:		python3, python3-gobject, gtk3
%endif
BuildArch:	noarch

%description


%prep
%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}

%build

%install

mkdir -p %{buildroot}/usr
mkdir -p %{buildroot}/usr/share
mkdir -p %{buildroot}/usr/share/photocrop
mkdir -p %{buildroot}/usr/share/applications
mkdir -p %{buildroot}/usr/bin

install -m 0755 src/photocrop.py %{buildroot}/usr/bin
install -m 0644 data/clip.png %{buildroot}/usr/share/photocrop/clip.png
#install -m 0644 data/blank.png %{buildroot}/usr/share/photocrop/blank.png
install -m 0644 data/IMG_6854.JPG %{buildroot}/usr/share/photocrop/IMG_6854.JPG
install -m 0644 data/photocrop.desktop %{buildroot}/usr/share/applications



%files
%defattr(0755,root,root)
/usr/bin/photocrop.py
/usr/share/photocrop/
%defattr(0644,root,root)
/usr/share/photocrop/clip.png
#/usr/share/photocrop/blank.png
/usr/share/photocrop/IMG_6854.JPG 
/usr/share/applications/photocrop.desktop

%changelog