libidn-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libidn
  3. Summary: Internationalized Domain Name support library
  4. Version: 1.22
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: GPLv3+
  8. URL: http://www.gnu.org/software/libidn/
  9. Source0: http://josefsson.org/libidn/releases/libidn-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: gettext
  12. BuildRequires: pkgconfig
  13. Requires(post): /sbin/install-info
  14. Requires(preun): /sbin/install-info
  15. %description
  16. GNU Libidn is an implementation of the Stringprep, Punycode and
  17. IDNA specifications defined by the IETF Internationalized Domain
  18. Names (IDN) working group, used for internationalized domain
  19. names.
  20. %package devel
  21. Summary: Development files for the libidn library
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. This package includes header files and libraries necessary for
  26. developing programs which use the GNU libidn library.
  27. # compat32
  28. %package -n compat32-%{name}
  29. Summary: Internationalized Domain Name support library
  30. Group: System Environment/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. %description -n compat32-%{name}
  33. GNU Libidn is an implementation of the Stringprep, Punycode and
  34. IDNA specifications defined by the IETF Internationalized Domain
  35. Names (IDN) working group, used for internationalized domain
  36. names.
  37. %package -n compat32-%{name}-devel
  38. Summary: Development files for the libidn library
  39. Group: Development/Libraries
  40. Requires: compat32-%{name} = %{version}-%{release}
  41. Requires: %{name}-devel = %{version}-%{release}
  42. %description -n compat32-%{name}-devel
  43. This package includes header files and libraries necessary for
  44. developing programs which use the GNU libidn library.
  45. %prep
  46. %setup -q
  47. # Disable static library creation by default.
  48. %define with_static 0
  49. %build
  50. %configure --disable-csharp --disable-java \
  51. %if ! %{with_static}
  52. --disable-static
  53. %endif
  54. make %{?_smp_mflags}
  55. make %{?_smp_mflags} -C tests check
  56. %install
  57. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  58. %makeinstall
  59. rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.la
  60. # provide more examples
  61. make %{?_smp_mflags} -C examples distclean
  62. # clean up docs
  63. find doc -name "Makefile*" | xargs rm
  64. rm -rf $RPM_BUILD_ROOT%{_datadir}/info/dir
  65. %find_lang %{name}
  66. %post
  67. /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
  68. /sbin/ldconfig
  69. %preun
  70. if [ $1 = 0 ]; then
  71. /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir
  72. fi
  73. %postun -p /sbin/ldconfig
  74. %post -n compat32-%{name} -p /sbin/ldconfig
  75. %postun -n compat32-%{name} -p /sbin/ldconfig
  76. %clean
  77. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  78. %files -f %{name}.lang
  79. %defattr(-,root,root)
  80. %doc ChangeLog NEWS FAQ README THANKS COPYING*
  81. %{_bindir}/idn
  82. %{_mandir}/man1/idn.1*
  83. %{_datadir}/emacs/site-lisp
  84. %{_libdir}/libidn.so.*
  85. #{_libdir}/libidn.la
  86. %{_infodir}/*
  87. %files devel
  88. %defattr(0644,root,root,755)
  89. %doc doc/libidn.html doc/libidn-components.png examples contrib
  90. %{_libdir}/libidn.so
  91. %if %{with_static}
  92. %{_libdir}/libidn.a
  93. %endif
  94. %{_includedir}/*.h
  95. %{_libdir}/pkgconfig/*.pc
  96. %{_mandir}/man3/*
  97. # compat32
  98. %if %{build_compat32}
  99. %files -n compat32-%{name}
  100. %defattr(-,root,root)
  101. %{_libdir}/libidn.so.*
  102. #{_libdir}/libidn.la
  103. %files -n compat32-%{name}-devel
  104. %defattr(0644,root,root,755)
  105. %{_libdir}/libidn.so
  106. %if %{with_static}
  107. %{_libdir}/libidn.a
  108. %endif
  109. %{_libdir}/pkgconfig/*.pc
  110. %endif
  111. %changelog
  112. * Sat Oct 1 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.22-1
  113. - new upstream release
  114. * Sat Sep 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.19-1
  115. - new upstream release
  116. - built with rpm-4.8.1
  117. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.11-2
  118. - added compat32 package for x86_64 arch support.
  119. - disabled static library creation by default.
  120. * Mon Nov 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.11-1
  121. - new upstream release
  122. * Thu Jun 26 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8-1
  123. - new upstream release
  124. - applied new versioning policy
  125. - added --disable-csharp and --disable-java options to %%configure
  126. * Wed Jul 11 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.6.14-0vl1
  127. - new upstream release
  128. * Sun May 13 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.6.9-0vl1
  129. - new upstream release
  130. * Wed Aug 31 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.18-0vl2
  131. - rebuild for VineSeed
  132. * Wed Aug 31 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.18-0vl1
  133. - new upstream release
  134. * Thu Dec 16 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.12-0vl2
  135. - rebuild for VineSeed
  136. * Wed Dec 15 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.12-0vl1
  137. - new upstream release
  138. - build for Vine Linux 3.1
  139. * Thu Oct 7 2004 Joe Orton <jorton@redhat.com> 0.5.6-1
  140. - update to 0.5.6 (#134343)
  141. * Thu Sep 30 2004 Miloslav Trmac <mitr@redhat.com> - 0.5.4-3
  142. - Fix Group: (#134068)
  143. * Tue Aug 31 2004 Joe Orton <jorton@redhat.com> 0.5.4-2
  144. - move ldconfig from preun to postun (#131280)
  145. * Sun Aug 8 2004 Joe Orton <jorton@redhat.com> 0.5.4-1
  146. - update to 0.5.4 (#129341)
  147. * Thu Jul 15 2004 Robert Scheck <redhat@linuxnetz.de> 0.5.2-1
  148. - upgrade to 0.5.2, enabled i18n support and info files (#127906)
  149. * Fri Jul 9 2004 Joe Orton <jorton@redhat.com> 0.5.1-1
  150. - update to 0.5.1 (#127496)
  151. * Mon Jun 28 2004 Joe Orton <jorton@redhat.com> 0.5.0-1
  152. - update to 0.5.0 (#126836)
  153. * Tue Jun 22 2004 Than Ngo <than@redhat.com> 0.4.9-2
  154. - add prereq: /sbin/ldconfig
  155. - move la file in main package
  156. * Tue Jun 15 2004 Robert Scheck <redhat@linuxnetz.de> 0.4.9-1
  157. - upgrade to 0.4.9 (#126353)
  158. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  159. - rebuilt
  160. * Thu Apr 29 2004 Joe Orton <jorton@redhat.com> 0.4.4-1
  161. - update to 0.4.4; remove contrib from -devel docs
  162. * Thu Apr 29 2004 Joe Orton <jorton@redhat.com> 0.4.3-1
  163. - update to 0.4.3, remove -rpath patch
  164. * Tue Jan 27 2004 Joe Orton <jorton@redhat.com> 0.3.7-1
  165. - update to 0.3.7, simplify
  166. * Wed Jan 07 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.3.6-1mdk
  167. - 0.3.6
  168. * Mon Dec 15 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.5-1mdk
  169. - 0.3.5
  170. * Sun Oct 19 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.3-2mdk
  171. - drop the "soname fix" and use the correct way...
  172. * Sat Oct 18 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.3-1mdk
  173. - 0.3.3
  174. * Mon Oct 13 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-1mdk
  175. - initial cooker contrib
  176. - used the package from PLD as a start point