libconfig-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. Name: libconfig
  2. Summary: C/C++ configuration file library
  3. Summary(ja): C/C++ 設定ファイルライブラリ
  4. Version: 1.4.9
  5. Release: 2%{?_dist_release}
  6. License: LGPLv2+
  7. Group: System Environment/Libraries
  8. Source0: http://www.hyperrealm.com/libconfig/libconfig-%{version}.tar.gz
  9. URL: http://www.hyperrealm.com/libconfig/
  10. BuildRequires: texinfo, task-texlive
  11. BuildRequires: bison, flex
  12. %description
  13. Libconfig is a simple library for manipulating structured configuration
  14. files. This file format is more compact and more readable than XML. And
  15. unlike XML, it is type-aware, so it is not necessary to do string parsing
  16. in application code.
  17. %package devel
  18. Summary: Development files for libconfig
  19. Summary(ja): libconfig の開発ファイル
  20. Group: Development/Libraries
  21. Requires: %{name} = %{version}-%{release}
  22. Requires: pkgconfig
  23. Requires(post): install-info
  24. Requires(preun): install-info
  25. %description devel
  26. Development libraries and headers for developing software against
  27. libconfig.
  28. %prep
  29. %setup -q
  30. iconv -f iso-8859-1 -t utf-8 -o AUTHORS{.utf8,}
  31. mv AUTHORS{.utf8,}
  32. %build
  33. %configure --disable-static
  34. make %{?_smp_mflags}
  35. make pdf
  36. %install
  37. make DESTDIR=$RPM_BUILD_ROOT install install-pdf
  38. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  39. rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
  40. # Prevent multilib conflicts
  41. sed -i '/^\/CreationDate/d' $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/libconfig.pdf
  42. sed -i '/^\/ModDate/d' $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/libconfig.pdf
  43. sed -i '/^\/ID /d' $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/libconfig.pdf
  44. %post -p /sbin/ldconfig
  45. %post devel
  46. /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
  47. %postun -p /sbin/ldconfig
  48. %preun devel
  49. if [ $1 = 0 ]; then
  50. /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
  51. fi
  52. %files
  53. %defattr(-,root,root,-)
  54. %doc AUTHORS ChangeLog COPYING.LIB README
  55. %{_libdir}/libconfig*.so.*
  56. %files devel
  57. %defattr(-,root,root,-)
  58. %{_includedir}/libconfig*
  59. %{_libdir}/libconfig*.so
  60. %{_libdir}/pkgconfig/libconfig*.pc
  61. %{_defaultdocdir}/%{name}/
  62. %{_infodir}/libconfig.info*
  63. %changelog
  64. * Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.9-2
  65. - rebuild with gcc-5.4.0
  66. * Mon Nov 05 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.9-1
  67. - initial build for Vine Linux
  68. * Mon Oct 1 2012 Tom Callaway <spot@fedoraproject.org> - 1.4.9-1
  69. - update to 1.4.9
  70. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-3
  71. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  72. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  74. * Fri Aug 12 2011 Tom Callaway <spot@fedoraproject.org> - 1.4.8-1
  75. - update to 1.4.8
  76. * Wed Mar 23 2011 Tom Callaway <spot@fedoraproject.org> - 1.4.7-1
  77. - update to 1.4.7
  78. * Tue Mar 1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.6-1
  79. - Update to 1.4.6
  80. - Install libconfig_tests
  81. - Fix rpmlint warnings
  82. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-2
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  84. * Wed May 5 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4.5-1
  85. - update to 1.4.5
  86. * Wed Aug 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3.2-1
  87. - update to 1.3.2
  88. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
  89. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  90. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  92. * Wed Dec 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3.1-2
  93. - prevent multilib conflicts with the generated pdf
  94. * Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3.1-1
  95. - update to 1.3.1
  96. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-2
  97. - Autorebuild for GCC 4.3
  98. * Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-1
  99. - bump to 1.2.1
  100. * Fri Nov 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-4
  101. - nuke %%{_infodir}/dir, we handle it in %%post
  102. * Fri Nov 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-3
  103. - move all docs to devel
  104. - move scriptlets around to match
  105. - move requires around to match
  106. * Fri Nov 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-2
  107. - BR: texinfo-tex (not Requires)
  108. * Fri Nov 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-1
  109. - Initial package for Fedora