libidn-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Internationalized Domain Name support library
  3. Name: libidn
  4. Version: 1.11
  5. Release: 2%{?_dist_release}
  6. URL: http://www.gnu.org/software/libidn/
  7. License: LGPL
  8. Source0: http://josefsson.org/libidn/releases/libidn-%{version}.tar.gz
  9. Group: System Environment/Libraries
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: pkgconfig, gettext
  12. Requires(post): /sbin/install-info
  13. Requires(preun): /sbin/install-info
  14. %description
  15. GNU Libidn is an implementation of the Stringprep, Punycode and
  16. IDNA specifications defined by the IETF Internationalized Domain
  17. Names (IDN) working group, used for internationalized domain
  18. names.
  19. %package devel
  20. Summary: Development files for the libidn library
  21. Group: Development/Libraries
  22. Requires: %{name} = %{version}-%{release}
  23. Requires: pkgconfig
  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}/*.info.gz
  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. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.11-2
  113. - added compat32 package for x86_64 arch support.
  114. - disabled static library creation by default.
  115. * Mon Nov 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.11-1
  116. - new upstream release
  117. * Thu Jun 26 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8-1
  118. - new upstream release
  119. - applied new versioning policy
  120. - added --disable-csharp and --disable-java options to %%configure
  121. * Wed Jul 11 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.6.14-0vl1
  122. - new upstream release
  123. * Sun May 13 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.6.9-0vl1
  124. - new upstream release
  125. * Wed Aug 31 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.18-0vl2
  126. - rebuild for VineSeed
  127. * Wed Aug 31 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.18-0vl1
  128. - new upstream release
  129. * Thu Dec 16 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.12-0vl2
  130. - rebuild for VineSeed
  131. * Wed Dec 15 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.12-0vl1
  132. - new upstream release
  133. - build for Vine Linux 3.1
  134. * Thu Oct 7 2004 Joe Orton <jorton@redhat.com> 0.5.6-1
  135. - update to 0.5.6 (#134343)
  136. * Thu Sep 30 2004 Miloslav Trmac <mitr@redhat.com> - 0.5.4-3
  137. - Fix Group: (#134068)
  138. * Tue Aug 31 2004 Joe Orton <jorton@redhat.com> 0.5.4-2
  139. - move ldconfig from preun to postun (#131280)
  140. * Sun Aug 8 2004 Joe Orton <jorton@redhat.com> 0.5.4-1
  141. - update to 0.5.4 (#129341)
  142. * Thu Jul 15 2004 Robert Scheck <redhat@linuxnetz.de> 0.5.2-1
  143. - upgrade to 0.5.2, enabled i18n support and info files (#127906)
  144. * Fri Jul 9 2004 Joe Orton <jorton@redhat.com> 0.5.1-1
  145. - update to 0.5.1 (#127496)
  146. * Mon Jun 28 2004 Joe Orton <jorton@redhat.com> 0.5.0-1
  147. - update to 0.5.0 (#126836)
  148. * Tue Jun 22 2004 Than Ngo <than@redhat.com> 0.4.9-2
  149. - add prereq: /sbin/ldconfig
  150. - move la file in main package
  151. * Tue Jun 15 2004 Robert Scheck <redhat@linuxnetz.de> 0.4.9-1
  152. - upgrade to 0.4.9 (#126353)
  153. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  154. - rebuilt
  155. * Thu Apr 29 2004 Joe Orton <jorton@redhat.com> 0.4.4-1
  156. - update to 0.4.4; remove contrib from -devel docs
  157. * Thu Apr 29 2004 Joe Orton <jorton@redhat.com> 0.4.3-1
  158. - update to 0.4.3, remove -rpath patch
  159. * Tue Jan 27 2004 Joe Orton <jorton@redhat.com> 0.3.7-1
  160. - update to 0.3.7, simplify
  161. * Wed Jan 07 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.3.6-1mdk
  162. - 0.3.6
  163. * Mon Dec 15 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.5-1mdk
  164. - 0.3.5
  165. * Sun Oct 19 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.3-2mdk
  166. - drop the "soname fix" and use the correct way...
  167. * Sat Oct 18 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.3-1mdk
  168. - 0.3.3
  169. * Mon Oct 13 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-1mdk
  170. - initial cooker contrib
  171. - used the package from PLD as a start point