A new user interface for you! Read more...

File varconf.spec of Package varconf

#
# spec file for package varconf
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, 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:           varconf
Version:        1.0.0
Release:        0
%define soname 1_0-8
Summary:        A config handling library
License:        GPL-2.0
Group:          System/Libraries
Url:            http://www.worldforge.org/dev/eng/libraries/varconf
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  libsigc++2-devel
BuildRequires:  pkgconfig
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
varconf is a configuration system originally designed for the STAGE
server. varconf can parse configuration files, command-line arguments
and environment variables. It supports callbacks through libsigc++
2.0.x and can store configuration data in configuration
objects or one global configuration instance.

%package -n lib%{name}-%{soname}
Summary:        A config handling library
Group:          System/Libraries

%description -n lib%{name}-%{soname}
varconf is a configuration system originally designed for the STAGE
server. varconf can parse configuration files, command-line arguments
and environment variables. It supports callbacks through libsigc++
2.0.x and can store configuration data in configuration
objects or one global configuration instance.

%package devel
Summary:        A config handling library headers and static libs
Group:          Development/Libraries/C and C++
Requires:       lib%{name}-%{soname} = %{version}
Requires:       libsigc++2-devel

%description devel
varconf is a configuration system originally designed for the STAGE
server. varconf can parse configuration files, command-line arguments
and environment variables. It supports callbacks through libsigc++
2.0.x and can store configuration data in configuration
objects or one global configuration instance.

%prep
%setup -q

%build
export CXXFLAGS="%{optflags}"
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

%post -n lib%{name}-%{soname} -p /sbin/ldconfig

%postun -n lib%{name}-%{soname} -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README THANKS ChangeLog

%files -n lib%{name}-%{soname}
%defattr(-,root,root)
%{_libdir}/lib*.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_libdir}/pkgconfig/*
%{_includedir}/*

%changelog