Rely on file triggers
This commit is contained in:
parent
9f7bdc971e
commit
1cd2537b86
13
gedit.spec
13
gedit.spec
@ -23,7 +23,7 @@ Summary: Text editor for the GNOME desktop
|
||||
Name: gedit
|
||||
Epoch: 2
|
||||
Version: 3.17.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+ and GFDL
|
||||
Group: Applications/Editors
|
||||
#VCS: git:git://git.gnome.org/gedit
|
||||
@ -69,6 +69,10 @@ Requires: zenity
|
||||
Requires: gsettings-desktop-schemas
|
||||
Requires: gvfs
|
||||
|
||||
# for file triggers
|
||||
Requires: glib2 >= 2.45.4-2
|
||||
Requires: desktop-file-utils >= 0.22-6
|
||||
|
||||
Obsoletes: gedit-collaboration < 3.6.1-6
|
||||
|
||||
%description
|
||||
@ -128,20 +132,16 @@ appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/appdata/org.gn
|
||||
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.gedit.desktop
|
||||
|
||||
%post
|
||||
update-desktop-database >&/dev/null || :
|
||||
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
|
||||
%postun
|
||||
update-desktop-database >&/dev/null || :
|
||||
if [ $1 -eq 0 ]; then
|
||||
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc README AUTHORS
|
||||
@ -203,6 +203,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
|
||||
%{_datadir}/vala/
|
||||
|
||||
%changelog
|
||||
* Fri Aug 14 2015 Matthias Clasen <mclasen@redhat.com> - 2:3.17.2-2
|
||||
- Rely on file triggers for schemas and desktop files
|
||||
|
||||
* Mon Jul 20 2015 David King <amigadave@amigadave.com> - 2:3.17.2-1
|
||||
- Update to 3.17.2
|
||||
- Preserve timestamps during install
|
||||
|
||||
Loading…
Reference in New Issue
Block a user