Files
libmcs/libmcs.spec

126 lines
3.6 KiB
RPMSpec

#
# spec file for package libmcs
#
# Copyright (c) 2011 Scorpio IT, Deidesheim, Germany
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libmcs
%define libsoname %{name}1
Summary: Configuration file abstraction library
Version: 0.7.2
Release: 1
License: BSD
Group: System/Libraries
URL: http://www.atheme.org/projects/mcs
Source0: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gconf2-devel
BuildRequires: kdelibs3-devel
BuildRequires: libmowgli-devel
BuildRequires: pkgconfig
%description
A library and set of userland tools which abstract the storage of configuration
settings away from userland applications.
%package -n %{libsoname}
Summary: Shared library for libmcs
Group: System/Libraries
%description -n %{libsoname}
This package contains the shared libmcs library.
%package -n mcs
Group: System/Libraries
Summary: Configuration file abstraction library
%description -n mcs
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.
Because mcs is licenced under the BSD license, it is hoped that many
applications will adopt it's use.
%package -n mcs-kde
Summary: Files needed to use mcs with kconf
Group: System/Libraries
%description -n mcs-kde
This package contains the files needed to use mcs with kconf.
%package devel
Summary: Header files, libraries and development documentation for libmcs
Group: Development/Libraries/C and C++
Requires: %{libsoname} = %{version}
Requires: gconf2-devel
Requires: kdelibs3-devel
Requires: libmowgli-devel
%description devel
This package contains the files needed to compile programs that use the
libmcs library.
%prep
%setup -q
%build
export LDFLAGS="%{optflags} -L/opt/kde3/%{_lib}"
export CPPFLAGS="%{optflags} -I/opt/kde3/include -I/usr/lib/qt3/include"
%configure
%{__make} %{?_smp_mflags}
%install
%makeinstall
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
%files -n %{libsoname}
%defattr(-,root,root)
%{_libdir}/%{name}.so.*
%files -n mcs
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
%{_bindir}/mcs-getconfval
%{_bindir}/mcs-info
%{_bindir}/mcs-query-backends
%{_bindir}/mcs-setconfval
%{_bindir}/mcs-walk-config
%dir %{_libdir}/mcs
%{_libdir}/mcs/gconf.so
%{_libdir}/mcs/keyfile.so
%files -n mcs-kde
%defattr(-,root,root)
%{_libdir}/mcs/kconfig.so
%files devel
%defattr(-,root,root)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/mcs.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog