mate-conf-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. Summary: MATE Config System
  2. Name: mate-conf
  3. Version: 1.1.0
  4. Release: 2%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: System Environment/Base
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-corba-devel
  11. BuildRequires: gtk2-devel
  12. BuildRequires: libxml2-devel
  13. BuildRequires: dbus-devel
  14. BuildRequires: dbus-glib-devel
  15. BuildRequires: polkit-devel
  16. BuildRequires: gtk-doc
  17. BuildRequires: autoconf
  18. BuildRequires: automake
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: Takemikaduchi
  23. %description
  24. MateConf is a configuration database system, functionally similar to the
  25. Windows registry but lots better. :-) It's being written for the MATE
  26. desktop but does not require MATE; configure should notice if MATE
  27. is not installed and compile the basic MateConf library anyway.
  28. %package devel
  29. Summary: Development tools for mate-conf
  30. Summary(ja): mate-conf の開発環境
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. Requires: pkgconfig
  34. Requires: mate-corba-devel
  35. %description devel
  36. Header files and libraries for building a extension library for the
  37. mate-conf.
  38. %package doc
  39. Summary: Documentation for mate-conf
  40. Summary(ja): mate-conf 用のドキュメント
  41. Group: Documentation
  42. Requires: %{name} = %{version}-%{release}
  43. BuildArch: noarch
  44. %description doc
  45. This package contains documentation for mate-conf.
  46. %prep
  47. %setup -q
  48. %build
  49. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  50. %configure \
  51. --libexecdir=%{_libexecdir}/mate \
  52. --disable-static \
  53. --enable-defaults-service \
  54. --enable-gsettings-backend=no
  55. %{__make} %{?_smp_mflags}
  56. %install
  57. %{__rm} -rf ${RPM_BUILD_ROOT}
  58. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  59. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/mateconf/schemas
  60. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/mateconf/mateconf.xml.system
  61. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  62. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  63. %find_lang MateConf2
  64. %clean
  65. %{__rm} -rf ${RPM_BUILD_ROOT}
  66. %post
  67. /sbin/ldconfig
  68. if [ $1 -gt 1 ]; then
  69. if ! fgrep -q mateconf.xml.system %{_sysconfdir}/mateconf/2/path; then
  70. sed -i -e 's@xml:readwrite:$(HOME)/.mateconf@&\n\n# Location for system-wide settings.\nxml:readonly:/etc/mateconf/mateconf.xml.system@' %{_sysconfdir}/mateconf/2/path
  71. fi
  72. fi
  73. %postun -p /sbin/ldconfig
  74. %files -f MateConf2.lang
  75. %defattr(-,root,root,-)
  76. %doc COPYING COPYING ChangeLog NEWS README
  77. %config %{_sysconfdir}/mateconf/2/path
  78. %dir %{_sysconfdir}/mateconf
  79. %dir %{_sysconfdir}/mateconf/2
  80. %dir %{_sysconfdir}/mateconf/mateconf.xml.defaults
  81. %dir %{_sysconfdir}/mateconf/mateconf.xml.mandatory
  82. %dir %{_sysconfdir}/mateconf/mateconf.xml.system
  83. %{_sysconfdir}/dbus-1/system.d/org.mate.MateConf.Defaults.conf
  84. %{_bindir}/mateconf-merge-tree
  85. %{_bindir}/mateconftool-2
  86. %{_libdir}/libmateconf-2.so.*
  87. %{_libdir}/MateConf
  88. %{_libdir}/girepository-1.0/MateConf-2.0.typelib
  89. %{_libexecdir}/mate/mateconf-defaults-mechanism
  90. %{_libexecdir}/mate/mateconf-sanity-check-2
  91. %{_libexecdir}/mate/mateconfd-2
  92. %{_datadir}/aclocal/mateconf-2.m4
  93. %{_datadir}/dbus-1/services/org.mate.MateConf.service
  94. %{_datadir}/dbus-1/system-services/org.mate.MateConf.Defaults.service
  95. %{_datadir}/polkit-1/actions/org.mate.mateconf.defaults.policy
  96. %{_datadir}/sgml/mateconf/mateconf-1.0.dtd
  97. %{_mandir}/man1/mateconftool-2.1.gz
  98. %files devel
  99. %defattr(-,root,root,-)
  100. %{_includedir}/mateconf
  101. %{_libdir}/libmateconf-2.so
  102. %{_libdir}/pkgconfig/mateconf-2.0.pc
  103. %{_datadir}/gir-1.0/MateConf-2.0.gir
  104. %files doc
  105. %defattr(-,root,root,-)
  106. %{_datadir}/gtk-doc/html/mateconf
  107. %changelog
  108. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  109. - change category
  110. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  111. - initial build for Vine Linux