mcs-vl.spec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Name: mcs
  2. Summary: A configuration file abstraction library
  3. Summary(ja): 設定ファイル抽象化ライブラリ
  4. Version: 0.7.2
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: BSD
  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. %description devel
  29. This package contains header files required to develop applications
  30. with Modular Config System.
  31. %prep
  32. %setup -q -n lib%{name}-%{version}
  33. # The build generates a wrong SONAME, fix it.
  34. perl -pi -e "s/-soname=.*'/-soname=\\\$\{LIB\}.\\\$\{LIB_MAJOR\}'/" configure
  35. %build
  36. %configure --enable-gconf --disable-kconfig --disable-dependency-tracking
  37. %__make %{_smp_mflags}
  38. %install
  39. %__rm -rf %{buildroot}
  40. %makeinstall
  41. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
  42. echo "gconf" > $RPM_BUILD_ROOT%{_sysconfdir}/mcs-backend
  43. chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/mcs-backend
  44. %post -p /sbin/ldconfig
  45. %postun -p /sbin/ldconfig
  46. %clean
  47. %__rm -rf %{buildroot}
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc AUTHORS COPYING README TODO
  51. %config(noreplace) %{_sysconfdir}/mcs-backend
  52. %{_bindir}/mcs-*
  53. %{_libdir}/libmcs.so.*
  54. %dir %{_libdir}/mcs
  55. %{_libdir}/mcs/*.so
  56. %files devel
  57. %defattr(-,root,root,-)
  58. %{_includedir}/libmcs
  59. %{_libdir}/libmcs.so
  60. %{_libdir}/pkgconfig/*.pc
  61. %changelog
  62. * Sat Jul 07 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.2-1
  63. - new upstream release
  64. * Tue Sep 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.1-4
  65. - rebuilt with rpm-4.8.1 for pkg-config
  66. * Sun Apr 26 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.7.1-3
  67. - rebuilt with libmowgli-0.7.0
  68. * Sun Oct 12 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.7.1-2
  69. - add Requires: libmowgli-devel to mcs-devel subpackage
  70. * Thu Jul 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  71. - new upstream release
  72. * Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.4.1-0vl1
  73. - initial build