# Generated from idn-0.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name idn Name: rubygem-%{gem_name} Version: 0.0.2 Release: 45%{?dist} Summary: Ruby Bindings for the GNU LibIDN library # ASL license for ext/idn.c, ext/idn.h, ext/punycode.c and ext/stringprep.c License: ASL 2.0 and LGPLv2+ URL: http://rubyforge.org/projects/idn/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Patch0: rubygem-idn-0.0.2-Fix-for-ruby-1.9.x.patch # Fixes failure due to change in default encoding in Ruby 2.0. # http://rubyforge.org/tracker/index.php?func=detail&aid=29724&group_id=924&atid=3635 Patch1: rubygem-idn-0.0.2-ruby2-encoding-in-tests-fix.patch Patch2: rubygem-idn-c99.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby-devel # Compiler is required for build of gem binary extension. # https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires BuildRequires: gcc BuildRequires: libidn-devel BuildRequires: rubygem(test-unit) %description Ruby Bindings for the GNU LibIDN library, an implementation of the Stringprep, Punycode and IDNA specifications defined by the IETF Internationalized Domain Names (IDN) working group. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %patch -P0 -p0 %patch -P1 -p1 %patch -P2 -p1 %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{gem_extdir_mri} cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/ # Prevent dangling symlink in -debuginfo (rhbz#878863). rm -rf %{buildroot}%{gem_instdir}/ext/ %check pushd .%{gem_instdir} ruby -I$(dirs +1)%{gem_extdir_mri} -e 'Dir.glob "./test/tc_*.rb", &method(:require)' popd %files %dir %{gem_instdir} %{gem_extdir_mri} %license %{gem_instdir}/LICENSE %exclude %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGES %doc %{gem_instdir}/NOTICE %doc %{gem_instdir}/README %{gem_instdir}/Rakefile %{gem_instdir}/test %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.0.2-45 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 0.0.2-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.0.2-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 03 2024 Vít Ondruch - 0.0.2-42 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.3 * Fri Jul 21 2023 Fedora Release Engineering - 0.0.2-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 26 2023 Florian Weimer - 0.0.2-40 - Fix C99 compatibility issue (#2164862) * Fri Jan 20 2023 Fedora Release Engineering - 0.0.2-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 04 2023 Mamoru TASAKA - 0.0.2-38 - Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2 * Sat Jul 23 2022 Fedora Release Engineering - 0.0.2-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 26 2022 Vít Ondruch - 0.0.2-36 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.1 * Fri Jan 21 2022 Fedora Release Engineering - 0.0.2-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 0.0.2-34 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.0.2-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 6 2021 Vít Ondruch - 0.0.2-32 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0 * Wed Jul 29 2020 Fedora Release Engineering - 0.0.2-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.0.2-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jan 18 2020 Mamoru TASAKA - 0.0.2-29 - F-32: rebuild against ruby27 * Fri Jul 26 2019 Fedora Release Engineering - 0.0.2-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.0.2-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jan 17 2019 Vít Ondruch - 0.0.2-26 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6 * Wed Oct 10 2018 Vít Ondruch - 0.0.2-25 - Fix FTBFS in Rawhide (rhbz#1606206). - .spec file refresh. * Sat Jul 14 2018 Fedora Release Engineering - 0.0.2-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.0.2-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 20 2018 Björn Esser - 0.0.2-23 - Rebuilt for switch to libxcrypt * Thu Jan 04 2018 Mamoru TASAKA - 0.0.2-22 - F-28: rebuild for ruby25 * Thu Aug 03 2017 Fedora Release Engineering - 0.0.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.0.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.0.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 10 2017 Vít Ondruch - 0.0.2-18 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4 * Thu Feb 04 2016 Fedora Release Engineering - 0.0.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 11 2016 Vít Ondruch - 0.0.2-16 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3 * Thu Jun 18 2015 Fedora Release Engineering - 0.0.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jan 16 2015 Vít Ondruch - 0.0.2-14 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2 * Mon Aug 18 2014 Fedora Release Engineering - 0.0.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 0.0.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Apr 14 2014 Vít Ondruch - 0.0.2-11 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1 * Sun Aug 04 2013 Fedora Release Engineering - 0.0.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Mar 07 2013 Josef Stribny - 0.0.2-9 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 0.0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Feb 13 2012 Shawn Starr - 0.0.2-6 - Use the proper way to do conversion within C ext code. * Thu Feb 09 2012 Shawn Starr - 0.0.2-5 - Fix tests so it passes now * Thu Feb 09 2012 Vít Ondruch - 0.0.2-4 - Rebuilt for Ruby 1.9.3. * Sun Jan 29 2012 Shawn Starr - 0.0.2-3 - Fix build issue in mock, remove .yardoc since its not being created anymore. * Sun Nov 06 2011 Shawn Starr - 0.0.2-2 - Update spec based on bugzilla review feedback. * Thu Jul 21 2011 Shawn Starr - 0.0.2-1 - Initial package