shared-mime-info-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. Summary: Shared MIME information database
  2. Summary(ja): 共有 MIME 情報データベース
  3. Name: shared-mime-info
  4. Version: 2.1
  5. Release: 1%{?_dist_release}
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPL
  10. URL: https://freedesktop.org/wiki/Software/shared-mime-info/
  11. %define altver %(echo %{version} | tr . -)
  12. # archive on gitlab is tooooo bad.
  13. # https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/%{version}/shared-mime-info-Release-%{version}.tar.bz2
  14. Source0: https://github.com/freedesktop/xdg-shared-mime-info/archive/refs/tags/%{version}.tar.gz#/shared-mime-info-%{version}.tar.gz
  15. Source1: mimeapps.list
  16. # git HEAD of https://gitlab.freedesktop.org/xdg/xdgmime
  17. Source2: xdgmime.tar.xz
  18. Patch1: 0001-Remove-sub-classing-from-OO.o-mime-types.patch
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. BuildRequires: meson
  21. BuildRequires: itstool
  22. BuildRequires: libxml2-devel
  23. BuildRequires: xmlto
  24. BuildRequires: glib2-devel >= 2.6.0
  25. # For intltool:
  26. BuildRequires: perl-XML-Parser >= 2.31-16
  27. Requires: libxml2
  28. Requires: glib2 >= 2.6.0
  29. # Disable pkgconfig autodep
  30. %global __requires_exclude ^/usr/bin/pkg-config$
  31. %description
  32. This is the freedesktop.org shared MIME info database.
  33. Many programs and desktops use the MIME system to represent the types of
  34. files. Frequently, it is necessary to work out the correct MIME type for
  35. a file. This is generally done by examining the file's name or contents,
  36. and looking up the correct MIME type in a database.
  37. %debug_package
  38. %prep
  39. %setup -q -n xdg-%{name}-%{version} -a 2
  40. %autopatch -p1
  41. %build
  42. %meson -Dupdate-mimedb=true -Dxdg-mime-path=./xdgmime/
  43. %meson_build
  44. %install
  45. %meson_install
  46. find $RPM_BUILD_ROOT%{_datadir}/mime -type d \
  47. | sed -e "s|^$RPM_BUILD_ROOT|%%dir |" > %{name}.files
  48. find $RPM_BUILD_ROOT%{_datadir}/mime -type f -not -path "*/packages/*" \
  49. | sed -e "s|^$RPM_BUILD_ROOT|%%ghost |" >> %{name}.files
  50. # Support fallback/generic mimeapps.list (currently based on an old version of
  51. # gnome-mimeapps.list), see:
  52. # https://lists.fedoraproject.org/pipermail/devel/2015-July/212403.html
  53. # https://bugzilla.redhat.com/show_bug.cgi?id=1243049
  54. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
  55. install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/mimeapps.list
  56. ## remove bogus translation files
  57. ## translations are already in the xml file installed
  58. rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
  59. %check
  60. %meson_test
  61. %post
  62. /bin/touch --no-create %{_datadir}/mime/packages &>/dev/null ||:
  63. %transfiletriggerin -- %{_datadir}/mime
  64. update-mime-database -n %{_datadir}/mime &> /dev/null ||:
  65. %transfiletriggerpostun -- %{_datadir}/mime
  66. update-mime-database -n %{_datadir}/mime &> /dev/null ||:
  67. %files -f %{name}.files
  68. %license COPYING
  69. %doc README* NEWS
  70. %{_bindir}/*
  71. %{_datadir}/applications/*
  72. %{_datadir}/gettext/its/*
  73. %{_datadir}/mime/packages/*
  74. %dir %{_datadir}/pkgconfig
  75. %{_datadir}/pkgconfig/*.pc
  76. %{_mandir}/man*/*
  77. %changelog
  78. * Fri Mar 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1-1
  79. - new upstream release.
  80. * Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.15-1
  81. - new upstream release.
  82. * Sat Apr 23 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.6-1
  83. - new upstream release
  84. * Sat Nov 28 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.5-1
  85. - new upstream release
  86. * Sat Sep 06 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.3-1
  87. - new upstream release
  88. * Wed Jan 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2-2
  89. - rebuild with VineSeed environment
  90. * Sun Oct 27 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2-1
  91. - new upstream release
  92. * Sun Mar 03 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.1-1
  93. - new upstream release
  94. - changed source archive bz2 to xz
  95. * Wed Oct 06 2010 Shu KONNO <owa@bg.wakwak.com> 0.71-2
  96. - rebuilt with rpm-4.8.1 for pkg-config
  97. * Sat May 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.71-1
  98. - new upstream release
  99. * Mon Aug 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.51-1
  100. - new upstream release
  101. - sepc in UTF-8
  102. * Fri May 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.30-1
  103. - new upstream release
  104. - updated Source1
  105. * Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.23-1vl5
  106. - new upstream release
  107. * Sun Aug 19 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl1
  108. - new upstream release
  109. - changed Group to User Interface/Desktops
  110. * Wed Feb 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.20-0vl1
  111. - new upstream release
  112. - changed pkgconfig dir
  113. * Sun Nov 26 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.19-0vl1
  114. - new upstream release
  115. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.16-0vl1
  116. - new upstream release
  117. * Mon Nov 08 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.15-10vl1
  118. - initial build for Vine Linux based on fedora package.
  119. * Mon Oct 18 2004 Alexander Larsson <alexl@redhat.com> - 0.15-10
  120. - Fix for mime sniffing on big-endian
  121. * Thu Oct 14 2004 Colin Walters <walters@redhat.com> - 0.15-9
  122. - Handle renaming of hxplay.desktop to realplay.desktop
  123. * Wed Oct 13 2004 Matthias Clasen <mclasen@redhat.com> - 0.15-8
  124. - Handle XUL files. #134122
  125. * Wed Oct 13 2004 Colin Walters <walters@redhat.com> - 0.15-7
  126. - Make helix default for ogg and mp3, will switch wav/flac too
  127. when support is added
  128. * Wed Oct 6 2004 Alexander Larsson <alexl@redhat.com> - 0.15-6
  129. - Change default pdf viewer to ggv
  130. * Tue Sep 7 2004 Alexander Larsson <alexl@redhat.com> - 0.15-4
  131. - Fixed evo desktop file reference in defaults.list
  132. * Mon Sep 6 2004 Caolan McNamara <caolanm@redhat.com> - 0.15-3
  133. - wpd can be opened in abiword, but not in openoffice.org (#114907)
  134. * Fri Sep 3 2004 Alexander Larsson <alexl@redhat.com> - 0.15-2
  135. - Add list of default apps (#131643)
  136. * Mon Aug 30 2004 Jonathan Blandford <jrb@redhat.com> 0.15-1
  137. - bump version
  138. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  139. - rebuilt
  140. * Mon Mar 22 2004 Alex Larsson <alexl@redhat.com> 0.14-1
  141. - update to 0.14
  142. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  143. - rebuilt
  144. * Mon Jan 26 2004 Alexander Larsson <alexl@redhat.com> 0.13-1
  145. - 0.13
  146. * Fri Jan 16 2004 Alexander Larsson <alexl@redhat.com> mime-info
  147. - Initial build.