add desktop-files
This commit is contained in:
parent
adad66fcd3
commit
73b158a883
25
gmic.spec
25
gmic.spec
@ -10,7 +10,7 @@
|
||||
Summary: GREYC's Magic for Image Computing
|
||||
Name: gmic
|
||||
Version: 2.9.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source0: https://gmic.eu/files/source/%{name}_%{version}.tar.gz
|
||||
# GIT archive snapshot of https://github.com/c-koi/zart
|
||||
Source1: zart-%{zart_version}.tar.gz
|
||||
@ -39,6 +39,7 @@ BuildRequires: ilmbase-devel
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: desktop-file-utils
|
||||
# The C library binding was mistakenly put in a -static
|
||||
# package despite being a shared library
|
||||
Obsoletes: gmic-static <= 2.1.8
|
||||
@ -131,6 +132,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libcgmic.so.2
|
||||
ln -s libgmic.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libgmic.so.2
|
||||
ln -s libcgmic.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libcgmic.so.2
|
||||
|
||||
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gmic_qt.desktop
|
||||
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/zart.desktop
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
||||
mv $RPM_BUILD_ROOT/%{_datadir}/bash-completion/completions/gmic $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/gmic
|
||||
rm -rf $RPM_BUILD_ROOT/%{_datadir}/bash-completion/completions/
|
||||
@ -140,6 +144,18 @@ chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/gmic
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%post
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%files
|
||||
%doc README
|
||||
%license COPYING COPYING-gmic-qt COPYING-libcgmic
|
||||
@ -151,6 +167,12 @@ chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/gmic
|
||||
%{_libdir}/libcgmic.so.*
|
||||
%{_mandir}/man1/%{name}.1.gz
|
||||
%{_mandir}/fr/man1/%{name}.1.gz
|
||||
%{_datadir}/applications/gmic_qt.desktop
|
||||
%{_datadir}/applications/zart.desktop
|
||||
%{_datadir}/icons/hicolor/48x48/apps/gmic_qt.png
|
||||
%{_datadir}/icons/hicolor/48x48/apps/zart.png
|
||||
%{_datadir}/icons/hicolor/scalable/apps/gmic_qt.svg
|
||||
%{_datadir}/icons/hicolor/scalable/apps/zart.svg
|
||||
|
||||
%files devel
|
||||
%{_prefix}/include/gmic.h
|
||||
@ -165,6 +187,7 @@ chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/gmic
|
||||
%changelog
|
||||
* Tue Sep 08 2020 josef radinger <cheese@nosuchhost.net> - 2.9.2-1
|
||||
- bump version
|
||||
- we now have desktop-files
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-4
|
||||
- Second attempt - Rebuilt for
|
||||
|
Loading…
Reference in New Issue
Block a user