Shortened URL:

  1. Name:           granite
  2. Version:        0.2.2
  3. Release:        1%{?dist}
  4. Summary:        GTK extensions for the elementary desktop
  5. Group:          Development/Libraries
  6. License:        LGPLv3
  7. URL:            https://launchpad.net/granite
  8. Source0:        https://launchpad.net/granite/0.2/0.2.2/+download/granite-%{version}.tar.gz
  9.  
  10. BuildRequires:  cmake, gettext
  11. BuildRequires:  gtk3-devel, libgee06-devel, gobject-introspection-devel, vala-devel
  12.  
  13. %description
  14. Granite is an extension of GTK. Among other things,
  15. it provides the custom widgets used in elementary apps.
  16.  
  17. %package devel
  18. Summary: Development files for %{name}
  19. Group: Development/Libraries
  20. Requires: %{name}%{?_isa} = %{version}-%{release}
  21. %description devel
  22. This package contains the development files for %{name}.
  23.  
  24. %prep
  25. %setup -q
  26.  
  27. %build
  28. %cmake .
  29. make %{?_smp_mflags}
  30.  
  31. %install
  32. make install DESTDIR=%{buildroot}
  33. %find_lang %{name}
  34.  
  35. %post
  36. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  37. /sbin/ldconfig
  38.  
  39. %postun
  40. /sbin/ldconfig
  41. if [ $1 -eq 0 ] ; then
  42.     /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  43.     /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  44. fi
  45.  
  46. %posttrans
  47. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  48.  
  49. %files -f %{name}.lang
  50. %doc AUTHORS README COPYING
  51. %{_libdir}/libgranite.so.*
  52. %{_libdir}/girepository-1.0/Granite-1.0.typelib
  53. %{_datadir}/icons/*
  54.  
  55. %files devel
  56. %dir %{_includedir}/granite/
  57. %{_includedir}/granite/granite.h
  58. %{_includedir}/granite/widgets-utils.h
  59. %{_bindir}/granite-demo
  60. %{_libdir}/libgranite.so
  61. %{_libdir}/pkgconfig/granite.pc
  62. %{_datadir}/gir-1.0/Granite-1.0.gir
  63. %{_datadir}/vala/vapi/granite.deps
  64. %{_datadir}/vala/vapi/granite.vapi
  65.  
  66. %changelog
  67. * Mon Aug 19 2013 TingPing <tingping@tingping.se> - 0.2.2-1
  68. - Initial Package
  69.  

Posted by Anonymous at 19 Aug 2013, 12:15:01 UTC
Language: rpmspec


Powered by Sticky Notes. Using Fedora skin.
"Sticky Notes" (the web application) is released under the BSD license, Copyright © 2012 Sayak Banerjee.

"Fedora" and the Fedora logo are trademarks of Red Hat, Inc. The Fedora project is maintained and driven by the community. This is a community maintained site. Red Hat is not responsible for content.

Sponsors | Legal | Trademark Guidelines