[521] | 1 | Name: libconfuse |
---|
[9198] | 2 | Version: 2.7 |
---|
| 3 | Release: 1%{?_dist_release} |
---|
[521] | 4 | Summary: A configuration file parser library |
---|
| 5 | Summary(ja): 設定ファイル解析ライブラリ |
---|
| 6 | |
---|
| 7 | Group: System Environment/Libraries |
---|
| 8 | License: ISC |
---|
| 9 | URL: http://www.nongnu.org/confuse/ |
---|
| 10 | Source0: http://bzero.se/confuse/confuse-%{version}.tar.gz |
---|
| 11 | |
---|
[9198] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 13 | BuildRequires: check-devel |
---|
| 14 | BuildRequires: pkgconfig |
---|
[521] | 15 | |
---|
| 16 | |
---|
| 17 | %description |
---|
| 18 | libConfuse is a configuration file parser library, licensed under |
---|
| 19 | the terms of the ISC license, and written in C. It supports |
---|
| 20 | sections and (lists of) values (strings, integers, floats, |
---|
| 21 | booleans or other sections), as well as some other features (such |
---|
| 22 | as single/double-quoted strings, environment variable expansion, |
---|
| 23 | functions and nested include statements). It makes it very |
---|
| 24 | easy to add configuration file capability to a program using |
---|
| 25 | a simple API. |
---|
| 26 | |
---|
| 27 | The goal of libConfuse is not to be the configuration file parser |
---|
| 28 | library with a gazillion of features. Instead, it aims to be |
---|
| 29 | easy to use and quick to integrate with your code. |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %description -l ja |
---|
| 33 | libConfuse は C で書かれた設定ファイル解析ライブラリで、 |
---|
| 34 | ISC ライセンスで配布されています。文字列、整数、浮動小数点、 |
---|
| 35 | 真偽値などの値一覧およびセクションをサポートし、さらに |
---|
| 36 | シングルクオート/ダブルクオートされた文字列や環境変数の展開、関数、 |
---|
| 37 | ネストしたインクルードもサポートしています。 |
---|
| 38 | シンプルな API を使い、これらの設定ファイル解析昨日をプログラムに |
---|
| 39 | 組み入れることが可能になります。 |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Development files for %{name} |
---|
[9198] | 44 | Summary(ja): %{name} の開発用ファイル |
---|
[521] | 45 | Group: Development/Libraries |
---|
| 46 | Requires: %{name} = %{version}-%{release} |
---|
| 47 | Requires: pkgconfig |
---|
| 48 | |
---|
| 49 | %description devel |
---|
| 50 | Development files for %{name}. |
---|
| 51 | |
---|
| 52 | %description devel -l ja |
---|
[9198] | 53 | %{name} の用開発ファイルです。 |
---|
[521] | 54 | |
---|
| 55 | |
---|
| 56 | %prep |
---|
| 57 | %setup -q -n confuse-%{version} |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %build |
---|
| 61 | %configure --enable-shared --disable-static |
---|
| 62 | make %{?_smp_mflags} AM_CFLAGS="-Wall -Wextra" |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %check |
---|
| 66 | make check |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %install |
---|
| 70 | rm -rf $RPM_BUILD_ROOT |
---|
| 71 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 72 | # Nuke libtool archive(s) |
---|
| 73 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 74 | # Install man pages |
---|
| 75 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/ |
---|
| 76 | cp -p doc/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3/ |
---|
| 77 | # Extract the example sources |
---|
| 78 | mkdir -p ex2/examples |
---|
| 79 | cp -p examples/{ftpconf.c,ftp.conf,simple.c,simple.conf,reread.c,reread.conf} \ |
---|
| 80 | ex2/examples/ |
---|
| 81 | |
---|
| 82 | %find_lang confuse |
---|
| 83 | |
---|
| 84 | %clean |
---|
| 85 | rm -rf $RPM_BUILD_ROOT |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %post -p /sbin/ldconfig |
---|
| 89 | |
---|
| 90 | %postun -p /sbin/ldconfig |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %files -f confuse.lang |
---|
| 94 | %defattr(-,root,root,-) |
---|
| 95 | %doc AUTHORS NEWS README |
---|
| 96 | %doc doc/html |
---|
| 97 | %{_libdir}/libconfuse.so.* |
---|
| 98 | %{_mandir}/man?/*.* |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %files devel |
---|
| 102 | %defattr(-,root,root,-) |
---|
| 103 | %doc ex2/examples |
---|
| 104 | %{_includedir}/confuse.h |
---|
| 105 | %{_libdir}/libconfuse.so |
---|
| 106 | %{_libdir}/pkgconfig/libconfuse.pc |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | %changelog |
---|
[9198] | 110 | * Tue Dec 30 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.7-1 |
---|
| 111 | - updated to 2.7 |
---|
| 112 | - built on current VineSeed |
---|
| 113 | |
---|
[1901] | 114 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6-2 |
---|
| 115 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 116 | |
---|
[521] | 117 | * Mon May 26 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6-1 |
---|
| 118 | - initial build for Vine Linux |
---|
| 119 | |
---|
| 120 | * Mon Feb 04 2008 Jarod Wilson <jwilson@redhat.com> 2.6-1 |
---|
| 121 | - New upstream release |
---|
| 122 | - Switch from LGPL to ISC license |
---|
| 123 | - Build fix from Hans Ulrich Niedermann |
---|
| 124 | |
---|
| 125 | * Tue Sep 05 2006 Jarod Wilson <jwilson@redaht.com> 2.5-3 |
---|
| 126 | - Rebuild for new glibc |
---|
| 127 | |
---|
| 128 | * Wed Aug 16 2006 Jarod Wilson <jwilson@redhat.com> 2.5-2 |
---|
| 129 | - Put -devel package in the right Group |
---|
| 130 | - Add defattr for -devel files |
---|
| 131 | |
---|
| 132 | * Wed Aug 16 2006 Jarod Wilson <jwilson@redhat.com> 2.5-1 |
---|
| 133 | - Initial build |
---|