comparison photocrop/RPM/photocrop.spec @ 0:dcd610585610

INIT
author prymula <prymula76@outlook.com>
date Thu, 21 Sep 2023 22:32:14 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:dcd610585610
1 #
2 # spec file for package photocrop
3 #
4 # Copyright (c) 2020 SUSE LLC
5 #
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
14
15 # Please submit bugfixes or comments via https://bugs.opensuse.org/
16 #
17
18 %define unmangled_version 0.230112-0~alpha
19 Name: photocrop
20 Version: 0.230112
21 Release: 0~alpha
22 Summary: An application for cropping photos to popular paper sizes.
23 License: GPL
24 URL: https://pietraszczyk.vxm.pl/przycinanie-zdjec/
25 Source0: %{name}-%{unmangled_version}.tar.gz
26 %if 0%{?suse_version}>=150000
27 BuildRequires: python3, python3-gobject, python3-gobject-Gdk, typelib-1_0-Gtk-3_0, libgtk-3-0
28 Requires: python3, python3-gobject, python3-gobject-Gdk, typelib-1_0-Gtk-3_0, libgtk-3-0
29 %endif
30 %if 0%{?fedora}>=35
31 BuildRequires: python3, python3-gobject, gtk3
32 Requires: python3, python3-gobject, gtk3
33 %endif
34 BuildArch: noarch
35
36 %description
37
38
39 %prep
40 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
41
42 %build
43
44 %install
45
46 mkdir -p %{buildroot}/usr
47 mkdir -p %{buildroot}/usr/share
48 mkdir -p %{buildroot}/usr/share/photocrop
49 mkdir -p %{buildroot}/usr/share/applications
50 mkdir -p %{buildroot}/usr/bin
51
52 install -m 0755 src/photocrop.py %{buildroot}/usr/bin
53 install -m 0644 data/clip.png %{buildroot}/usr/share/photocrop/clip.png
54 #install -m 0644 data/blank.png %{buildroot}/usr/share/photocrop/blank.png
55 install -m 0644 data/IMG_6854.JPG %{buildroot}/usr/share/photocrop/IMG_6854.JPG
56 install -m 0644 data/photocrop.desktop %{buildroot}/usr/share/applications
57
58
59
60 %files
61 %defattr(0755,root,root)
62 /usr/bin/photocrop.py
63 /usr/share/photocrop/
64 %defattr(0644,root,root)
65 /usr/share/photocrop/clip.png
66 #/usr/share/photocrop/blank.png
67 /usr/share/photocrop/IMG_6854.JPG
68 /usr/share/applications/photocrop.desktop
69
70 %changelog
71