forked from agronick/BIR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbir.spec
More file actions
99 lines (90 loc) · 2.82 KB
/
bir.spec
File metadata and controls
99 lines (90 loc) · 2.82 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#
# spec file for package BIR
#
# Copyright (c) 2014 Kyle Agronick agronick@gmail.com
#
# 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 http://bugs.opensuse.org/
#
Name: bir
Version: 1.5
Release: 0
Summary: Batch image resizer and manipulator
License: GPL-3.0+
Group: Graphics/2DGraphics
Url: https://github.com/agronick/BIR
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: libqt4-devel
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: desktop-file-utils
%endif
%if 0%{?suse_version}
BuildRequires: update-desktop-files
Requires: libqt4
%endif
%if 0%{?fedora_version}
Requires: qt
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Packager: Kyle Agronick agronick@gmail.com
%description
Batch image resizer and manipulator. Written in Qt. Able to resize, crop,
and rotate directories of images and preserve file structure.
%prep
%setup -q
%build
# Create qmake cache file to add rpm optflags.
cat > .qmake.cache <<EOF
QMAKE_CXXFLAGS += %{optflags}
EOF
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
qmake-qt4
%else
qmake bir.pro -r -spec linux-g++
%endif
make %{?_smp_mflags}
%install
make install INSTALL_ROOT=%{buildroot}
%if 0%{?suse_version}
%suse_update_desktop_file -i %{name}
%endif
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{name}.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%endif
%if 0%{?suse_version}
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version}
%{_datadir}/pixmaps/%{name}.png
%endif
%changelog
* Fri Aug 29 2014 Kyle Agronick <agronick@gmail.com> 1.5
Made directories open to home folder
UI Changes
* Fri Aug 29 2014 Kyle Agronick <agronick@gmail.com> 1.4
Better loading of files from command line
Graphical remove button
Fixed crash
* Fri Aug 29 2014 Kyle Agronick <agronick@gmail.com> 1.3
Bug fixes
* Fri Aug 29 2014 Kyle Agronick <agronick@gmail.com> 1.2
Added a much larger list of file formats
* Thu Aug 28 2014 Kyle Agronick <agronick@gmail.com> 1.2
Inital release