libidn-vl.spec 6.2 KB

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