|
|
a0c8987 |
Name: berry
|
|
|
a0c8987 |
Version: 1.0.0
|
|
|
5c3c623 |
Release: 4%{?dist}
|
|
|
a0c8987 |
Summary: Modern and light image viewer
|
|
|
a0c8987 |
|
|
|
a0c8987 |
# The entire source code is GPLv3+
|
|
|
a0c8987 |
# except the following files in
|
|
|
a0c8987 |
# asemantools/qml/AsemanTools/Controls/Styles/Desktop/ which are BSD
|
|
|
a0c8987 |
# CalendarStyle.qml, FocusFrameStyle.qml, MenuBarStyle.qml, SliderStyle.qml
|
|
|
a0c8987 |
# StatusBarStyle.qml, TableViewStyle.qml, TextAreaStyle.qml, ToolBarStyle.qml
|
|
|
a0c8987 |
|
|
|
a0c8987 |
License: GPLv3+ and BSD
|
|
|
a0c8987 |
Url: http://aseman.co/en/products/berry
|
|
|
a0c8987 |
Source0: http://aseman.co/downloads/berry/1/%{name}-%{version}-src.tar.gz
|
|
|
a0c8987 |
# https://github.com/Aseman-Land/Berry/issues/9
|
|
|
a0c8987 |
Source1: %{name}.appdata.xml
|
|
|
a0c8987 |
# For a breakdown of the licensing, see PACKAGE-LICENSING
|
|
|
a0c8987 |
Source2: %{name}-PACKAGE-LICENSING
|
|
|
a0c8987 |
|
|
|
a0c8987 |
# PATCH-FIX-OPENSUSE install.patch avvissu@yandex.ru -- Changed the paths install files
|
|
|
a0c8987 |
Patch0: berry-1.0.0_install.patch
|
|
|
a0c8987 |
# PATCH-FIX-UPSTREAM qt5-5.5.patch avvissu@yandex.ru -- Fix build with Qt5 >= 5.5
|
|
|
a0c8987 |
Patch1: berry-1.0.0_qt5-5.5.patch
|
|
|
a0c8987 |
|
|
|
a0c8987 |
BuildRequires: libappstream-glib
|
|
|
a0c8987 |
BuildRequires: hicolor-icon-theme
|
|
|
a0c8987 |
BuildRequires: desktop-file-utils
|
|
|
a0c8987 |
BuildRequires: chrpath
|
|
|
a0c8987 |
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
|
|
a0c8987 |
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
a0c8987 |
BuildRequires: pkgconfig(Qt5Multimedia)
|
|
|
a0c8987 |
BuildRequires: pkgconfig(Qt5Network)
|
|
|
a0c8987 |
BuildRequires: pkgconfig(Qt5Qml)
|
|
|
a0c8987 |
BuildRequires: pkgconfig(Qt5Script)
|
|
|
a0c8987 |
BuildRequires: pkgconfig(exiv2)
|
|
|
a0c8987 |
|
|
|
a0c8987 |
%description
|
|
|
a0c8987 |
Berry is a modern and new image viewer which is focusing on User interface.
|
|
|
a0c8987 |
Berry is trying to provide an easy to use and touch screen compatible user
|
|
|
a0c8987 |
interface.
|
|
|
a0c8987 |
|
|
|
a0c8987 |
%prep
|
|
|
a0c8987 |
%setup -q -n %{name}
|
|
|
a0c8987 |
%patch0 -p1
|
|
|
a0c8987 |
%patch1 -p1
|
|
|
a0c8987 |
cp -p %{SOURCE2} .
|
|
|
a0c8987 |
|
|
|
a0c8987 |
# fixes W: spurious-executable-perm
|
|
|
a0c8987 |
find . -type f \( -name "*.cpp" -o -name "*.h" \) -exec chmod a-x {} \;
|
|
|
a0c8987 |
|
|
|
a0c8987 |
rm -rf debian
|
|
|
a0c8987 |
|
|
|
a0c8987 |
%build
|
|
|
a0c8987 |
mkdir build
|
|
|
a0c8987 |
pushd build
|
|
|
a0c8987 |
%{qmake_qt5} ../Berry.pro
|
|
|
a0c8987 |
%make_build
|
|
|
a0c8987 |
popd
|
|
|
a0c8987 |
|
|
|
a0c8987 |
%install
|
|
|
a0c8987 |
pushd build
|
|
|
a0c8987 |
%make_install INSTALL_ROOT=%{buildroot}
|
|
|
a0c8987 |
# Remove rpath
|
|
|
a0c8987 |
chrpath --delete %{buildroot}%{_bindir}/%{name}
|
|
|
a0c8987 |
popd
|
|
|
a0c8987 |
|
|
|
a0c8987 |
install -Dp -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
a0c8987 |
|
|
|
a0c8987 |
find %{buildroot}%{_datadir}/%{name}/files/translations -name "*.qm" | sed 's:'%{buildroot}'::
|
|
|
a0c8987 |
s:.*/\([a-zA-Z]\{2\}\).qm:%lang(\1) \0:' > %{name}.lang
|
|
|
a0c8987 |
|
|
|
a0c8987 |
%check
|
|
|
a0c8987 |
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|
|
a0c8987 |
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
a0c8987 |
|
|
|
a0c8987 |
%files -f %{name}.lang
|
|
|
a0c8987 |
%license LICENSE LICENSE.html %{name}-PACKAGE-LICENSING
|
|
|
a0c8987 |
%doc README.md
|
|
|
a0c8987 |
%{_bindir}/%{name}
|
|
|
a0c8987 |
%{_datadir}/applications/Berry.desktop
|
|
|
a0c8987 |
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
a0c8987 |
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
|
a0c8987 |
%{_datadir}/mime/application/%{name}-lock.xml
|
|
|
a0c8987 |
%dir %{_datadir}/%{name}
|
|
|
a0c8987 |
%dir %{_datadir}/%{name}/files
|
|
|
a0c8987 |
%dir %{_datadir}/%{name}/files/translations
|
|
|
a0c8987 |
|
|
|
a0c8987 |
%changelog
|
|
|
5c3c623 |
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.0-4
|
|
|
5c3c623 |
- Remove obsolete scriptlets
|
|
|
5c3c623 |
|
|
|
a0c8987 |
* Wed Aug 23 2017 Martin Gansser <martinkg@fedoraproject.org> - 1.0.0-3
|
|
|
a0c8987 |
- add license breakdown
|
|
|
a0c8987 |
|
|
|
a0c8987 |
* Tue Aug 22 2017 Martin Gansser <martinkg@fedoraproject.org> - 1.0.0-2
|
|
|
a0c8987 |
- add %%{name}.appdata.xml
|
|
|
a0c8987 |
- dropped /sbin/ldconfig not needed
|
|
|
a0c8987 |
- dropped update-desktop-database should not be used on Fedora 24+
|
|
|
a0c8987 |
- dropped update-mime-info it's obsolete
|
|
|
a0c8987 |
- add %%find-lang to handle translation
|
|
|
a0c8987 |
|
|
|
a0c8987 |
|
|
|
a0c8987 |
* Fri Jul 14 2017 Martin Gansser <martinkg@fedoraproject.org> - 1.0.0-1
|
|
|
a0c8987 |
- Initial release
|