libconfuse-vl.spec 3.7 KB

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