libconfuse-vl.spec 3.6 KB

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