123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- Name: libconfuse
- Version: 2.7
- Release: 1%{?_dist_release}
- Summary: A configuration file parser library
- Summary(ja): 設定ファイル解析ライブラリ
- Group: System Environment/Libraries
- License: ISC
- URL: http://www.nongnu.org/confuse/
- Source0: http://bzero.se/confuse/confuse-%{version}.tar.gz
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
- BuildRequires: check-devel
- BuildRequires: pkgconfig
- %description
- libConfuse is a configuration file parser library, licensed under
- the terms of the ISC license, and written in C. It supports
- sections and (lists of) values (strings, integers, floats,
- booleans or other sections), as well as some other features (such
- as single/double-quoted strings, environment variable expansion,
- functions and nested include statements). It makes it very
- easy to add configuration file capability to a program using
- a simple API.
- The goal of libConfuse is not to be the configuration file parser
- library with a gazillion of features. Instead, it aims to be
- easy to use and quick to integrate with your code.
- %description -l ja
- libConfuse は C で書かれた設定ファイル解析ライブラリで、
- ISC ライセンスで配布されています。文字列、整数、浮動小数点、
- 真偽値などの値一覧およびセクションをサポートし、さらに
- シングルクオート/ダブルクオートされた文字列や環境変数の展開、関数、
- ネストしたインクルードもサポートしています。
- シンプルな API を使い、これらの設定ファイル解析昨日をプログラムに
- 組み入れることが可能になります。
- %package devel
- Summary: Development files for %{name}
- Summary(ja): %{name} の開発用ファイル
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: pkgconfig
- %description devel
- Development files for %{name}.
- %description devel -l ja
- %{name} の用開発ファイルです。
- %prep
- %setup -q -n confuse-%{version}
- %build
- %configure --enable-shared --disable-static
- make %{?_smp_mflags} AM_CFLAGS="-Wall -Wextra"
- %check
- make check
- %install
- rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT
- # Nuke libtool archive(s)
- rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
- # Install man pages
- mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/
- cp -p doc/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3/
- # Extract the example sources
- mkdir -p ex2/examples
- cp -p examples/{ftpconf.c,ftp.conf,simple.c,simple.conf,reread.c,reread.conf} \
- ex2/examples/
- %find_lang confuse
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files -f confuse.lang
- %defattr(-,root,root,-)
- %doc AUTHORS NEWS README
- %doc doc/html
- %{_libdir}/libconfuse.so.*
- %{_mandir}/man?/*.*
- %files devel
- %defattr(-,root,root,-)
- %doc ex2/examples
- %{_includedir}/confuse.h
- %{_libdir}/libconfuse.so
- %{_libdir}/pkgconfig/libconfuse.pc
- %changelog
- * Tue Dec 30 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.7-1
- - updated to 2.7
- - built on current VineSeed
- * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6-2
- - rebuild with rpm-4.8.1 for pkg-config file
- * Mon May 26 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6-1
- - initial build for Vine Linux
- * Mon Feb 04 2008 Jarod Wilson <jwilson@redhat.com> 2.6-1
- - New upstream release
- - Switch from LGPL to ISC license
- - Build fix from Hans Ulrich Niedermann
- * Tue Sep 05 2006 Jarod Wilson <jwilson@redaht.com> 2.5-3
- - Rebuild for new glibc
- * Wed Aug 16 2006 Jarod Wilson <jwilson@redhat.com> 2.5-2
- - Put -devel package in the right Group
- - Add defattr for -devel files
- * Wed Aug 16 2006 Jarod Wilson <jwilson@redhat.com> 2.5-1
- - Initial build
|