uget-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %define _version 1.8.1
  2. Name: uget
  3. Version: %{_version}
  4. Release: 1%{?_dist_release}
  5. Summary: Uget is a download manager that using gtk+2 and curl
  6. Summary(ja): Uget - gtk+2 と curl を用いたダウンロードマネージャ
  7. Group: Applications/Internet
  8. License: LGPLv2+
  9. URL: http://urlget.sourceforge.net/
  10. Source0: http://downloads.sourceforge.net/urlget/%{name}-%{_version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: desktop-file-utils gettext
  13. BuildRequires: glib2-devel => 2.22 openldap-devel
  14. BuildRequires: curl-devel => 7.19.1
  15. BuildRequires: perl-XML-Parser
  16. BuildRequires: gstreamer-devel libnotify-devel
  17. %if %{?_dist_release} == "vl7"
  18. BuildRequires: gtk3-devel
  19. %else
  20. BuildRequires: gtk2-devel => 2.18
  21. %endif
  22. %description
  23. Uget is a download manager that using gtk+2 and curl.
  24. %description -l ja
  25. Uget は gtk+2 と curl を用いたダウンロードマネージャです。
  26. %prep
  27. %setup -q -n %{name}-1.8.1
  28. %build
  29. %if %{?_dist_release} == "vl7"
  30. %configure --disable-plugin-aria2 --enable-appindicator=no --with-gtk3
  31. %else
  32. %configure --disable-plugin-aria2 --enable-appindicator=no
  33. %endif
  34. make -k %{?_smp_mflags}
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. make install \
  38. DESTDIR=$RPM_BUILD_ROOT \
  39. INSTALL="install -p"
  40. %find_lang %{name}
  41. desktop-file-install \
  42. --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
  43. %{name}-gtk.desktop
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post
  47. touch --no-create %{_datadir}/icons/hicolor || :
  48. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  49. update-desktop-database > /dev/null 2>&1 || :
  50. %postun
  51. touch --no-create %{_datadir}/icons/hicolor || :
  52. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  53. update-desktop-database > /dev/null 2>&1 || :
  54. %files -f %{name}.lang
  55. %defattr(-,root,root,-)
  56. %doc COPYING ChangeLog README
  57. %{_bindir}/%{name}-gtk
  58. %{_datadir}/applications/%{name}-gtk.desktop
  59. %{_datadir}/icons/*
  60. %{_datadir}/sounds/*
  61. %changelog
  62. * Sat Apr 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.8.1-1
  63. - new upstream release
  64. - set conditional branch for VineSeed and other
  65. * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.8.0-1
  66. - new upstream release
  67. - added %%configure option --disable-plugin-aria2 --enable-appindicator=no
  68. * Thu May 5 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.4-1
  69. - new upstream release
  70. * Sun Dec 19 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.2a-1
  71. - new upstream release
  72. * Sat Oct 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.1-1
  73. - new upstream release
  74. * Thu Sep 2 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.0-1
  75. - new upstream release
  76. - dropt Pacth1
  77. - changed BuildRequires: gtk2-devel => 2.18, glib2-devel => 2.22, curl-devel => 7.19.1
  78. * Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0.3-1
  79. - new upstream release
  80. * Thu Mar 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0.2-1
  81. - new upstream release
  82. - applied new naming policy to spec
  83. * Wed Jan 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0.1-2
  84. - added Patch1 from Fedora to fix segv when invalid uri is passed to the argument
  85. * Wed Dec 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0.1-1
  86. - new upstream release
  87. - added BuildRequires: gstreamer-devel libnotify-devel
  88. * Thu Oct 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0-1
  89. - initial build for VineSeed
  90. * Sat May 2 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.7-1
  91. - Initial packaging