annotate photocrop/RPM/photocrop.spec @ 13:73fd89b46da4

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