shared-mime-info-vl.spec 4.8 KB

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