libidn2-vl.spec 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Library to support IDNA2008 internationalized domain names
  3. Summary(ja): IDNA2008 国際化ドメイン名をサポートするためのライブラリ
  4. Name: libidn2
  5. Version: 2.0.4
  6. Release: 4%{?_dist_release}
  7. License: (GPLv2+ or LGPLv3+) and GPLv3+
  8. Group: System Environment/Libraries
  9. URL: https://www.gnu.org/software/libidn/#libidn2
  10. Source0: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
  11. Source1: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz.sig
  12. Patch0: libidn2-2.0.0-rpath.patch
  13. Patch1: libidn2-2.0.4-std3-ascii-rules.patch
  14. BuildRequires: libunistring-devel
  15. Requires(post): /sbin/install-info, /sbin/ldconfig
  16. Requires(preun): /sbin/install-info
  17. Requires(postun): /sbin/ldconfig
  18. Provides: bundled(gnulib)
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. Libidn2 is an implementation of the IDNA2008 specifications in RFC
  23. 5890, 5891, 5892, 5893 and TR46 for internationalized domain names
  24. (IDN). It is a standalone library, without any dependency on libidn.
  25. %package devel
  26. Summary: Development files for libidn2
  27. Summary(ja): libidn2 ライブラリの開発用ファイル
  28. Group: Development/Libraries
  29. Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
  30. %description devel
  31. The libidn2-devel package contains libraries and header files for
  32. developing applications that use libidn2.
  33. # compat32
  34. %package -n compat32-%{name}
  35. Summary: Library to support IDNA2008 internationalized domain names
  36. Summary(ja): IDNA2008 国際化ドメイン名をサポートするためのライブラリ
  37. Group: System Environment/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. %description -n compat32-%{name}
  40. Libidn2 is an implementation of the IDNA2008 specifications in RFC
  41. 5890, 5891, 5892, 5893 and TR46 for internationalized domain names
  42. (IDN). It is a standalone library, without any dependency on libidn.
  43. %package -n compat32-%{name}-devel
  44. Summary: Development files for the libidn2 library
  45. Summary(ja): libidn2 ライブラリの開発用ファイル
  46. Group: Development/Libraries
  47. Requires: compat32-%{name} = %{version}-%{release}
  48. Requires: %{name}-devel = %{version}-%{release}
  49. %description -n compat32-%{name}-devel
  50. The libidn2-devel package contains libraries and header files for
  51. developing applications that use libidn2.
  52. %prep
  53. %setup -q
  54. %patch0 -p1 -b .rpath
  55. touch -c -r configure.rpath configure
  56. touch -c -r m4/libtool.m4.rpath m4/libtool.m4
  57. %patch1 -p1 -b .std3-ascii-rules
  58. touch -c -r lib/idna.c.std3-ascii-rules lib/idna.c
  59. touch -c -r lib/lookup.c.std3-ascii-rules lib/lookup.c
  60. touch -c -r tests/test-lookup.c.std3-ascii-rules tests/test-lookup.c
  61. %build
  62. %configure --disable-static
  63. make %{?_smp_mflags}
  64. %install
  65. rm -rf $RPM_BUILD_ROOT
  66. make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
  67. # Clean-up examples for documentation
  68. make %{?_smp_mflags} -C examples distclean
  69. rm -f examples/Makefile*
  70. # Don't install any libtool .la files
  71. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  72. # Some file cleanups
  73. rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
  74. %check
  75. make %{?_smp_mflags} -C tests check
  76. %post
  77. /sbin/ldconfig
  78. /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
  79. %preun
  80. if [ $1 = 0 ]; then
  81. /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
  82. fi
  83. %postun -p /sbin/ldconfig
  84. %if %{?build_compat32}
  85. %post -n compat32-%{name} -p /sbin/ldconfig
  86. %postun -n compat32-%{name} -p /sbin/ldconfig
  87. %endif
  88. %files
  89. %defattr(-,root,root,-)
  90. %{!?_licensedir:%global license %%doc}
  91. %license COPYING COPYING.LESSERv3 COPYING.unicode COPYINGv2
  92. %doc AUTHORS NEWS README.md
  93. %{_bindir}/idn2
  94. %{_mandir}/man1/idn2.1*
  95. %{_libdir}/%{name}.so.*
  96. %{_infodir}/%{name}.info*
  97. %files devel
  98. %defattr(-,root,root,-)
  99. %doc doc/%{name}.html examples
  100. %{_libdir}/%{name}.so
  101. %{_libdir}/pkgconfig/%{name}.pc
  102. %{_includedir}/*.h
  103. %{_mandir}/man3/*
  104. %{_datadir}/gtk-doc/
  105. %if %{?build_compat32}
  106. %files -n compat32-%{name}
  107. %defattr(-,root,root,-)
  108. %{_libdir}/%{name}.so.*
  109. %files -n compat32-%{name}-devel
  110. %defattr(-,root,root,-)
  111. %{_libdir}/%{name}.so
  112. %{_libdir}/pkgconfig/%{name}.pc
  113. %endif
  114. %changelog
  115. * Fri Feb 23 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-4
  116. - initial build for Vine Linux.
  117. * Sun Feb 18 2018 Robert Scheck <robert@fedoraproject.org> 2.0.4-3
  118. - Added upstream patch to fix STD3 ASCII rules (#1543021)
  119. * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
  120. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  121. * Wed Aug 30 2017 Robert Scheck <robert@fedoraproject.org> 2.0.4-1
  122. - Upgrade to 2.0.4 (#1486881, #1486882)
  123. * Tue Aug 01 2017 Robert Scheck <robert@fedoraproject.org> 2.0.3-1
  124. - Upgrade to 2.0.3 (#1468608, #1474324)
  125. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
  126. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  127. * Sun Apr 30 2017 Robert Scheck <robert@fedoraproject.org> 2.0.2-1
  128. - Upgrade to 2.0.2 (#1444712)
  129. * Thu Apr 06 2017 Robert Scheck <robert@fedoraproject.org> 2.0.0-1
  130. - Upgrade to 2.0.0 (#1439727)
  131. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-2
  132. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  133. * Fri Jan 27 2017 Robert Scheck <robert@fedoraproject.org> 0.16-1
  134. - Upgrade to 0.16 (#1416642)
  135. * Mon Nov 21 2016 Robert Scheck <robert@fedoraproject.org> 0.11-1
  136. - Upgrade to 0.11
  137. - Reflect dual-licensing of library in license tag (#1397021)
  138. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-4
  139. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  140. * Mon Dec 7 2015 Than Ngo <than@redhat.com> 0.10-2
  141. - fix build failure related to missing automake-1.14
  142. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
  143. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  144. * Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.10-2
  145. - Rebuilt for Fedora 23 Change
  146. https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
  147. * Sun Oct 12 2014 Robert Scheck <robert@fedoraproject.org> 0.10-1
  148. - Upgrade to 0.10
  149. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-7
  150. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  151. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-6
  152. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  153. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-5
  154. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  155. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-4
  156. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  157. * Fri Nov 16 2012 Robert Scheck <robert@fedoraproject.org> 0.8-3
  158. - Added provide bundled(gnulib) as it's a copylib (#821769)
  159. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-2
  160. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  161. * Sun Jan 15 2012 Robert Scheck <robert@fedoraproject.org> 0.8-1
  162. - Upgrade to 0.8
  163. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
  164. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  165. * Sat Aug 13 2011 Robert Scheck <robert@fedoraproject.org> 0.7-1
  166. - Upgrade to 0.7
  167. * Sat Jun 04 2011 Robert Scheck <robert@fedoraproject.org> 0.6-1
  168. - Upgrade to 0.6
  169. * Wed May 18 2011 Robert Scheck <robert@fedoraproject.org> 0.5-1
  170. - Upgrade to 0.5
  171. * Mon May 16 2011 Robert Scheck <robert@fedoraproject.org> 0.4-1
  172. - Upgrade to 0.4
  173. * Sat May 07 2011 Robert Scheck <robert@fedoraproject.org> 0.3-1
  174. - Upgrade to 0.3
  175. - Initial spec file for Fedora and Red Hat Enterprise Linux