File dotconf.spec of Package dotconf
#
# spec file for package dotconf (Version 1.0.13)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dotconf
Url: http://www.azzit.de/dotconf/
BuildRequires: gcc-c++
Version: 1.0.13
Release: 50
License: LGPL v2.1 or later
Group: Development/Languages/C and C++
Source: %{name}-%{version}.tbz2
Summary: Configuration file parser library
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
dotconf is a simple-to-use and powerful configuration-file parser
library written in C. The configuration files created for dotconf look
very similar to those used by the Apache Webserver. Even
Container-Directives known from httpd.conf can easily be used in the
exact same manner as for Apache-Modules. It supports various types of
arguments, dynamically loadable modules that create their own
configuration options on-the-fly, a here-documents feature to pass very
long ARG_STR data to your app, and on-the-fly inclusion of additional
config files.
Authors:
--------
lukas schroeder <lukas@azzit.de>
%package devel
License: LGPL v2.1 or later
Summary: Configuration file parser library
Group: Development/Languages/C and C++
Requires: dotconf
%description devel
dotconf is a simple-to-use and powerful configuration-file parser
library written in C. The configuration files created for dotconf look
very similar to those used by the Apache Webserver. Even
Container-Directives known from httpd.conf can easily be used in the
exact same manner as for Apache-Modules. It supports various types of
arguments, dynamically loadable modules that create their own
configuration options on-the-fly, a here-documents feature to pass very
long ARG_STR data to your app, and on-the-fly inclusion of additional
config files.
Authors:
--------
lukas schroeder <lukas@azzit.de>
%prep
%setup -n %{name}-%{version}
rm -f config.cache
%build
autoreconf -fi
./configure CFLAGS="$RPM_OPT_FLAGS" --prefix=/usr --libdir=%{_libdir}
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-,root,root,755)
%doc doc/* ChangeLog
%files devel
%defattr (-,root,root,755)
%{_libdir}/libpool.a
%{_libdir}/libdotconf*
%{_libdir}/pkgconfig/dotconf.pc
/usr/share/aclocal/dotconf.m4
/usr/include/libpool.h
/usr/include/dotconf.h
/usr/bin/dotconf-config
%changelog
* Mon May 12 2008 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Remove junk.
* Sun Aug 12 2007 marco@suse.de
- moved some more files to devel package
- use bzip2 for source tarball
* Sat Jul 28 2007 ro@suse.de
- added defattr to devel package
* Fri Jul 27 2007 marco@suse.de
- initial version for opensuse (1.0.13)
- James Cassidy sent in a little patch to add a 'pkg-config' file
- Bastian Kleineidam sent in a patch for better support of 64bit architectures
- Joost Remijn of eidetica.com sent in a patch fixing a nasty realloc()
bug
- Preston Smith fixed the compilation for systems where 'char' is
handled as 'unsigned char' (like ARM)
(for infos see http://www.arm.linux.org.uk/docs/faqs/signedchar.shtml)
- Ross Alexander of NEC Europe sent in two patches to dotconf.m4, fixing
version handling and prefix usage
- a small fix for all RPM users out there. dotconf up to 1.0.9 did not put
/usr/lib/libdotconf.so into the binary package