image-analyzer-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Name: image-analyzer
  2. Version: 1.5.0
  3. Release: 1%{?_dist_release}
  4. Summary: Analyze optical media (CD/DVD) images
  5. Summary(ja): 光学メディア(CD/DVD)イメージを解析
  6. Group: Development/Tools
  7. License: GPLv2+
  8. URL: http://cdemu.sourceforge.net
  9. Source0: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: desktop-file-utils
  12. #BuildRequires: gettext
  13. BuildRequires: glib2-devel >= 2.28
  14. BuildRequires: gtk3-devel >= 3.0
  15. BuildRequires: libmirage-devel >= 1.5.0
  16. BuildRequires: libxml2-devel
  17. #BuildRequires: intltool
  18. Requires: gnuplot
  19. Requires: gtk3
  20. Requires: libmirage >= 1.5.0
  21. Requires: libxml2
  22. %description
  23. Image Analyzer is a simple Gtk+ application that displays tree structure
  24. of disc image created by libMirage.
  25. %description -l ja
  26. Image Analyzer は LibMirage により作成されたディスクイメージの
  27. ツリー構成を表示するシンプルな Gtk+ アプリケーションです。
  28. %prep
  29. %setup -q
  30. %build
  31. %configure
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  36. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  37. desktop-file-install \
  38. --delete-original \
  39. --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
  40. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  41. #%find_lang %{name}
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %post
  45. update-desktop-database -q
  46. touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
  47. %postun
  48. update-desktop-database -q
  49. if [ $1 -eq 0 ]; then
  50. touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
  51. gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
  52. fi
  53. %posttrans
  54. gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc AUTHORS COPYING NEWS README ChangeLog
  58. %{_bindir}/%{name}
  59. %{_datadir}/applications/%{name}.desktop
  60. %changelog
  61. * Sat May 26 2012 Toshiharu kudoh <toshi.kd2@gmail.com> - 1.5.0-1
  62. - initial build for VineSeed