gnomeradio.spec.in
上传用户:ledjyj
上传日期:2014-08-27
资源大小:2639k
文件大小:1k
源码类别:

驱动编程

开发平台:

Unix_Linux

  1. # Note that this is NOT a relocatable package
  2. %define ver      @VERSION@
  3. %define rel      1
  4. %define prefix   /usr
  5. Summary: A FM-Tuner program for Gnome
  6. Name: gnomeradio
  7. Version: %ver
  8. Release: %rel
  9. Copyright: GPL
  10. Group: Applications/Multimedia
  11. Source: http://mfcn.ilo.de/gnomeradio/gnomeradio-%{ver}.tar.gz
  12. BuildRoot: /var/tmp/gnomeradio-%{ver}-root
  13. Packager: J鰎gen Scheibengruber <mfcn@gmx.de>
  14. URL: http://mfcn.ilo.de/gnomeradio
  15. Docdir: %{prefix}/doc
  16. BuildRequires: pkgconfig
  17. BuildRequires: intltool
  18. BuildRequires: libgnomeui-devel
  19. %description
  20. A FM-Tuner program for Gnome
  21. %changelog
  22. %prep
  23. %setup
  24. %build
  25. CFLAGS="${RPM_OPT_FLAGS}"
  26. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
  27. make
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  31. %makeinstall
  32. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  33. rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-, root, root)
  38. %{_bindir}/*
  39. %{_datadir}/locale/*
  40. %{_datadir}/pixmaps/radio.png
  41. %{_datadir}/gnome/help/gnomeradio
  42. %{_datadir}/pixmaps/gnomeradio.png
  43. %{_datadir}/omf/gnomeradio/gnomeradio-C.omf
  44. %{_datadir}/applications/gnomeradio.desktop
  45. %{_sysconfdir}/gconf/schemas/gnomeradio.schemas
  46. %post
  47. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  48. SCHEMAS="gnomeradio.schemas"
  49. for S in $SCHEMAS; do
  50.   gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
  51. done
  52. scrollkeeper-update
  53. %postun
  54. scrollkeeper-update