libidn2-vl.spec 7.9 KB

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