gnome-maps-vl.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. %{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
  2. Summary: A simple GNOME 3 maps application
  3. Summary(ja): GNOME 3 用マップアプリケーション
  4. Name: gnome-maps
  5. Version: 3.12.1
  6. Release: 1%{?_dist_release}
  7. License: GPLv2+
  8. Group: User Interface/Deskops
  9. URL: https://wiki.gnome.org/Apps/Maps
  10. Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.12/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: gtk3-devel
  13. BuildRequires: gjs-devel
  14. BuildRequires: gobject-introspection-devel
  15. Requires(postun,posttrans): desktop-file-utils
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: Takemikaduchi
  19. %description
  20. Music application designed for GNOME 3
  21. %description -l ja
  22. gnome-music は GNOME3 向けに作られた音楽アプリケーションです。
  23. %package devel
  24. Summary: Development tools for %{name}
  25. Summary(ja): %{name} の開発環境
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: pkgconfig
  29. %description devel
  30. %{summary}
  31. %prep
  32. %setup -q
  33. %build
  34. %configure --disable-static
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  39. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  40. rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
  41. %find_lang %{name} --with-gnome
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %post
  45. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  46. %postun
  47. if [ $1 -eq 0 ]; then
  48. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  49. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  50. update-desktop-database -q &> /dev/null ||:
  51. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  52. fi
  53. %posttrans
  54. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  55. update-desktop-database -q &> /dev/null ||:
  56. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  57. %files -f %{name}.lang
  58. %defattr(-,root,root,-)
  59. %doc COPYING README NEWS
  60. %{_bindir}/%{name}
  61. %{_datadir}/appdata/%{name}.appdata.xml
  62. %{_datadir}/applications/%{name}.desktop
  63. %{_datadir}/glib-2.0/schemas/org.gnome.maps.gschema.xml
  64. %{_datadir}/%{name}
  65. %{_datadir}/icons/hicolor/*/*/*
  66. %changelog
  67. * Sun Apr 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1
  68. - initial build