/[packages]/updates/infra_5/desktop-file-utils/current/SPECS/desktop-file-utils.spec
ViewVC logotype

Diff of /updates/infra_5/desktop-file-utils/current/SPECS/desktop-file-utils.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1060976 by akien, Sat Oct 15 19:07:50 2016 UTC revision 1060977 by akien, Sat Oct 15 19:08:55 2016 UTC
# Line 1  Line 1 
1  Summary:        Utilities for working with desktop entries  Summary:        Utilities for working with desktop entries
2  Name:           desktop-file-utils  Name:           desktop-file-utils
3  Version:        0.22  Version:        0.23
4  Release:        %mkrel 8  Release:        %mkrel 1
5  License:        GPLv2+  License:        GPLv2+
6  Group:          Graphical desktop/Other  Group:          Graphical desktop/Other
7  Url:            http://freedesktop.org/Software/desktop-file-utils  Url:            http://freedesktop.org/Software/desktop-file-utils
8  Source0:        http://freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz  Source0:        http://freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz
9  # Adds OPENBOX, Cinnamon and LXQt to the registered categories list  # Adds OPENBOX to the registered categories list, fully adds LXQt
10  Patch0:         desktop-file-utils-0.22-registered-categories.patch  Patch0:         desktop-file-utils-0.23-registered-categories.patch
11    # https://bugs.freedesktop.org/show_bug.cgi?id=97388
12    Patch1:         0001-Fix-missing-when-appending-to-a-list-not-ending-with.patch
13  BuildRequires:  popt-devel  BuildRequires:  popt-devel
14  BuildRequires:  glib2-devel  BuildRequires:  glib2-devel
15  BuildRequires:  emacs-bin  BuildRequires:  emacs-bin
# Line 22  desktop-file-validate takes a single arg Line 24  desktop-file-validate takes a single arg
24    
25  %prep  %prep
26  %setup -q  %setup -q
27  %apply_patches  %autopatch -p1
28    
29  %build  %build
30  %configure2_5x  %configure2_5x
# Line 40  cat > %{buildroot}%{_sysconfdir}/emacs/s Line 42  cat > %{buildroot}%{_sysconfdir}/emacs/s
42  EOF  EOF
43    
44  # automatic cache update on rpm installs/removals  # automatic cache update on rpm installs/removals
45  # (see http://wiki.mandriva.com/en/Rpm_filetriggers)  %transfiletriggerin --  /usr/share/applications/
 install -d %buildroot%{_var}/lib/rpm/filetriggers  
 cat > %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.filter << EOF  
 ^./usr/share/applications/.*\.desktop$  
 EOF  
 cat > %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.script << EOF  
 #!/bin/sh  
46  /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2> /dev/null  /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2> /dev/null
 EOF  
 chmod 755 %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.script  
47    
48  %files  %files
49  %doc AUTHORS NEWS README ChangeLog  %doc AUTHORS NEWS README ChangeLog
# Line 57  chmod 755 %buildroot%{_var}/lib/rpm/file Line 51  chmod 755 %buildroot%{_var}/lib/rpm/file
51  %{_bindir}/*  %{_bindir}/*
52  %{_mandir}/man1/*  %{_mandir}/man1/*
53  %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*  %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*
 %{_var}/lib/rpm/filetriggers/update-desktop-database.*  

Legend:
Removed from v.1060976  
changed lines
  Added in v.1060977

  ViewVC Help
Powered by ViewVC 1.1.26