18e617e
%global gem_name xmlparser
752b4db
752b4db
Summary: Ruby bindings to the Expat XML parsing library
18e617e
Name: rubygem-%{gem_name}
18e617e
Version: 0.7.2.1
930ac02
Release: 30%{?dist}
752b4db
# src/lib/xml/xpath.rb is GPLv2+
752b4db
# src/ext/encoding.h and the functions of encoding map are GPLv2+ or Artistic
752b4db
# All other files are Ruby or GPLv2+ or MIT
752b4db
# For a breakdown of the licensing, see also README
752b4db
License: GPLv2+ and ( Ruby or GPLv2+ or MIT ) and ( GPLv2+ or Artistic ) 
18e617e
URL: http://rubygems.org/gems/xmlparser
18e617e
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
bb477b9
# Handle 'format not a string literal and no format arguments' error.
bb477b9
# https://bugzilla.redhat.com/show_bug.cgi?id=1037312
bb477b9
# Thanks to Gregor Herrmann for the patch.
bb477b9
# https://www.mail-archive.com/debian-bugs-rc@lists.debian.org/msg297233.html
bb477b9
Patch0: rubygem-xmlparser-ftbfs-fix.patch
752b4db
BuildRequires: ruby
752b4db
BuildRequires: ruby(rubygems)
f82cbbc
BuildRequires: ruby(release)
752b4db
BuildRequires: ruby-devel
18e617e
BuildRequires: rubygems-devel
752b4db
BuildRequires: rubygem(rake)
752b4db
BuildRequires: rubygem(mkrf)
752b4db
BuildRequires: expat-devel
03757a2
BuildRequires: perl
752b4db
752b4db
%description
752b4db
Ruby bindings to the Expat XML parsing library. 
752b4db
752b4db
%prep
bb477b9
gem unpack %{SOURCE0}
bb477b9
%setup -q -D -T -n  %{gem_name}-%{version}
bb477b9
bb477b9
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
bb477b9
bb477b9
%patch0 -p1
752b4db
752b4db
%build
bb477b9
gem build %{gem_name}.gemspec
f82cbbc
%gem_install
752b4db
752b4db
%install
752b4db
rm -rf %{buildroot}
18e617e
mkdir -p %{buildroot}%{gem_dir}
18e617e
cp -rp .%{gem_dir}/* %{buildroot}%{gem_dir}/
752b4db
18e617e
# remove development stuff
18e617e
rm -rf %{buildroot}%{gem_instdir}/ext
752b4db
18e617e
# install externals
bb477b9
mkdir -p %{buildroot}%{gem_extdir_mri}/
bb477b9
cp -a ./%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
752b4db
752b4db
752b4db
%files
bb477b9
%{gem_extdir_mri}
18e617e
%dir %{gem_instdir}/
18e617e
%doc %{gem_instdir}/[A-Z]*
f82cbbc
%doc %{gem_docdir}
18e617e
%{gem_instdir}/[a-z]*
18e617e
%exclude %{gem_cache}
18e617e
%{gem_spec}
752b4db
752b4db
%changelog
930ac02
* Wed Jan  6 2021 Vít Ondruch <vondruch@redhat.com> - 0.7.2.1-30
930ac02
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0
930ac02
e560737
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-29
e560737
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e560737
1bb0b66
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-28
1bb0b66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1bb0b66
6f0b440
* Fri Jan 17 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.7.2.1-27
6f0b440
- F-32: rebuild against ruby27
6f0b440
3278635
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-26
3278635
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3278635
898240a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-25
898240a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
898240a
d888b6c
* Thu Jan 17 2019 Vít Ondruch <vondruch@redhat.com> - 0.7.2.1-24
d888b6c
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6
d888b6c
03757a2
* Tue Aug 07 2018 Ulrich Schwickerath  <ulrich.schwickerath@web.de> - 0.7.2.1-23
03757a2
- require perl for building
03757a2
- fix bogus dates 
03757a2
c3f7ab8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-22
c3f7ab8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c3f7ab8
c2f99b9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-21
c2f99b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c2f99b9
6e91ccf
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.7.2.1-20
6e91ccf
- Rebuilt for switch to libxcrypt
6e91ccf
3ec0ea6
* Thu Jan 04 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.7.2.1-19
3ec0ea6
- F-28: rebuild for ruby25
3ec0ea6
9170386
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-18
9170386
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9170386
1fb4a32
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-17
1fb4a32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1fb4a32
b4f4ba7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-16
b4f4ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b4f4ba7
ab93b30
* Wed Jan 11 2017 Vít Ondruch <vondruch@redhat.com> - 0.7.2.1-15
ab93b30
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
ab93b30
614db6b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2.1-14
614db6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
614db6b
2409c71
* Mon Jan 11 2016 Vít Ondruch <vondruch@redhat.com> - 0.7.2.1-13
2409c71
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
2409c71
5031ac8
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2.1-12
5031ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5031ac8
61d67b9
* Fri Jan 16 2015 Vít Ondruch <vondruch@redhat.com> - 0.7.2.1-11
61d67b9
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
61d67b9
75c7540
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2.1-10
75c7540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
75c7540
31db6c4
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2.1-9
31db6c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
31db6c4
bb477b9
* Thu Apr 10 2014 Josef Stribny <jstribny@redhat.com> - 0.7.2.1-8
bb477b9
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
bb477b9
- Fix FTBFS if "-Werror=format-security" flag is used (rhbz#1037312).
bb477b9
39827ec
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2.1-7
39827ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
39827ec
f82cbbc
* Mon Mar 18 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.2.1-6
f82cbbc
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
f82cbbc
dee6797
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2.1-5
dee6797
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dee6797
7e4a902
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2.1-4
7e4a902
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7e4a902
18e617e
* Thu Apr 26 2012 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.7.2.1-3
18e617e
- sync with updated gem version from rubyforge instead of private copy
18e617e
- use macros for files section
18e617e
- cleanup macros in changelog section to make rpmlint happy
18e617e
18e617e
* Wed Apr 25 2012 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.7.2-2
18e617e
- use macros following the new gem packaging guidelines for fed17+
18e617e
559c815
* Tue Mar 20 2012 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.7.2-1
559c815
- spec file patch to support fedora 17+
559c815
- update to 0.7.2 from Yoshidam
559c815
752b4db
* Tue Mar 06 2012 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-9
752b4db
- replace build requirement for ruby-libs by ruby 
752b4db
752b4db
* Wed Dec 07 2011 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-8
18e617e
- remove the link to xmlparser.so and move it to ruby_sitearch
752b4db
752b4db
* Wed Dec 07 2011 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-7
752b4db
- fix for /usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81 should be owned by the package
752b4db
- fix installation path for .so files
18e617e
- add dependency on ruby-libs which owns the ruby_sitearch directory
752b4db
03757a2
* Tue Jul 12 2011 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-6
752b4db
- add more details about licensing
752b4db
03757a2
* Tue Jul 12 2011 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-5
752b4db
- specify
752b4db
- fix format of changelog
752b4db
- remove ruby-sitelib
752b4db
03757a2
* Mon Jul 11 2011 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-4
752b4db
- cleaner way to treat SOURCE
752b4db
- remove explicit dependency on expat
752b4db
- make globals conditional
752b4db
03757a2
* Sun Jul 10 2011 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-3
752b4db
- fix build problems 
752b4db
03757a2
* Fri Jul 08 2011 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-2
752b4db
- add dependencies
752b4db
752b4db
* Wed Jul 06 2011 Ulrich Schwickerath <ulrich.schwickerath@web.de> - 0.6.81-1
752b4db
- Initial package from gem2rpm
752b4db