mcs-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Summary: A configuration file abstraction library
  2. Summary(ja): 設定ファイル抽象化ライブラリ
  3. Name: mcs
  4. Version: 0.7.1
  5. Release: 3%{?_dist_release}
  6. License: BSD
  7. Group: System Environment/Libraries
  8. URL: http://atheme.org/projects/mcs.shtml
  9. Source0: http://distfiles.atheme.org/libmcs-%{version}.tgz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: GConf2-devel
  12. BuildRequires: libmowgli-devel
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. mcs is a library and set of userland tools which abstract the storage
  17. of configuration settings away from userland applications.
  18. It is hoped that by using mcs, that the applications which use it will
  19. generally have a more congruent feeling in regards to settings.
  20. There have been other projects like this before (such as GConf), but
  21. unlike those projects, mcs strictly handles abstraction. It does not
  22. impose any specific data storage requirement, nor is it tied to any
  23. desktop environment or software suite.
  24. %package devel
  25. Summary: Development files for Modular Config System
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: libmowgli-devel
  29. %description devel
  30. This package contains header files required to develop applications
  31. with Modular Config System.
  32. %prep
  33. %setup -q -n lib%{name}-%{version}
  34. # The build generates a wrong SONAME, fix it.
  35. perl -pi -e "s/-soname=.*'/-soname=\\\$\{LIB\}.\\\$\{LIB_MAJOR\}'/" configure
  36. %build
  37. %configure --enable-gconf --disable-kconfig --disable-dependency-tracking
  38. %__make %{_smp_mflags}
  39. %install
  40. %__rm -rf %{buildroot}
  41. %makeinstall
  42. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
  43. echo "gconf" > $RPM_BUILD_ROOT%{_sysconfdir}/mcs-backend
  44. chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/mcs-backend
  45. %post -p /sbin/ldconfig
  46. %postun -p /sbin/ldconfig
  47. %clean
  48. %__rm -rf %{buildroot}
  49. %files
  50. %defattr(-,root,root,-)
  51. %doc AUTHORS COPYING README TODO
  52. %config(noreplace) %{_sysconfdir}/mcs-backend
  53. %{_bindir}/mcs-*
  54. %{_libdir}/libmcs.so.*
  55. %dir %{_libdir}/mcs
  56. %{_libdir}/mcs/*.so
  57. %files devel
  58. %defattr(-,root,root,-)
  59. %{_includedir}/libmcs
  60. %{_libdir}/libmcs.so
  61. %{_libdir}/pkgconfig/*.pc
  62. %changelog
  63. * Sun Apr 26 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.7.1-3
  64. - rebuilt with libmowgli-0.7.0
  65. * Sun Oct 12 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.7.1-2
  66. - add Requires: libmowgli-devel to mcs-devel subpackage
  67. * Thu Jul 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  68. - new upstream release
  69. * Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.4.1-0vl1
  70. - initial build