libmcs/libmcs.spec

114 lines
3.9 KiB
RPMSpec

Name: libmcs
Version: 0.7.2
Release: 1mamba
Summary: A configuration file abstraction library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://atheme.org/projects/mcs.shtml
Source: http://distfiles.atheme.org/libmcs-%{version}.tgz
#http://archive.ubuntu.com/ubuntu/pool/universe/m/mcs/mcs_%{version}.orig.tar.gz
#http://distfiles.atheme.org/libmcs-0.6.0.tgz http://hg.atheme.org/
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libmowgli1-devel
BuildRequires: libmowgli-devel
## AUTOBUILDREQ-END
# for version GNOME
#BuildRequires: kdelibs-devel
BuildRequires: GConf-devel
BuildRequires: ORBit2-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
mcs is a library and set of userland tools which abstract the storage of configuration settings away from userland applications.
It is hoped that by using mcs, that the applications which use it will generally have a more congruent feeling in regards to settings.
There have been other projects like this before (such as GConf), but unlike those projects, mcs strictly handles abstraction. It does not impose any specific data storage requirement, nor is it tied to any desktop environment or software suite.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
mcs is a library and set of userland tools which abstract the storage of configuration settings away from userland applications.
This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel.
%package tools
Group: Development/Tools
Summary: Tools for the maintenance of the %{name} system
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
mcs is a library and set of userland tools which abstract the storage of configuration settings away from userland applications.
This package contains a set of tools to deal with mcs managed configurations and the mcs system itself.
%prep
%setup
## my notes
## if you need the version for GNOME change disable-gconf with enable-gconf, enable-kconfig with disable-kconfig
## and echo -n "kconfig" >mcs-backend with echo -n "gconf" >mcs-backend and remove with-kde-path=%{_kdeprefix}
echo -n "kconfig" >mcs-backend
%build
%configure \
--disable-dependency-tracking \
--disable-gconf \
--enable-kconfig
# --with-qt-path=%{_qt3_prefix} \
# --with-kde-path=%{_kdeprefix} \
%make PLUGIN_CPPFLAGS="-I%{_qt3_headerdir} -I%{_kdeincludedir}/"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}
%{__install} -m0644 mcs-backend %{buildroot}%{_sysconfdir}/mcs-backend
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libmcs.so.*
%dir %{_libdir}/mcs
%{_libdir}/mcs/*.so
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libmcs
%{_includedir}/libmcs/mcs.h
%{_libdir}/libmcs.so
%{_libdir}/pkgconfig/libmcs.pc
%doc README TODO
%files tools
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/mcs-backend
%{_bindir}/mcs-getconfval
%{_bindir}/mcs-info
%{_bindir}/mcs-query-backends
%{_bindir}/mcs-setconfval
%{_bindir}/mcs-walk-config
%changelog
* Sat Jul 17 2010 Automatic Build System <autodist@mambasoft.it> 0.7.2-1mamba
- automatic update by autodist
* Tue Sep 02 2008 gil <puntogil@libero.it> 0.7.1-1mamba
- update to 0.7.1
- changed configure options
- added devel tools
* Mon May 12 2008 gil <puntogil@libero.it> 0.6.0-1mamba
- package created by autospec