diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc26ee9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/builder-3.2.3.gem diff --git a/.rh-ror50-rubygem-builder.metadata b/.rh-ror50-rubygem-builder.metadata new file mode 100644 index 0000000..c3acaa0 --- /dev/null +++ b/.rh-ror50-rubygem-builder.metadata @@ -0,0 +1 @@ +5cd6a92e6360279ec1e5c2456372f1709df9a6b2 SOURCES/builder-3.2.3.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-builder.spec b/SPECS/rubygem-builder.spec new file mode 100644 index 0000000..28d0787 --- /dev/null +++ b/SPECS/rubygem-builder.spec @@ -0,0 +1,165 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name builder + +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 3.2.3 +Release: 1%{?dist} +Summary: Builders for MarkUp +Group: Development/Languages +License: MIT +URL: http://onestepback.org +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# Builder carries copy of Blankslate, which was in the meantime extracted into +# independent gem. +# https://github.com/jimweirich/builder/issues/24 +# +# Moreover, rubygem-blankslate is not yet in Fedora. +# https://bugzilla.redhat.com/show_bug.cgi?id=771316 +# +# Requires: %{?scl_prefix}rubygem(blankslate) +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +# Explicitly require runtime subpackage, as long as older scl-utils do not generate it +%{?scl:Requires: %{?scl_prefix}runtime} + +%description +Builder provides a number of builder objects that make creating structured +data simple to do. Currently the following builder objects are supported: +* XML Markup +* XML Events + + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{pkg_name}. + +%prep +%setup -n %{pkg_name}-%{version} -q -c -T +%{?scl:scl enable %{scl} - << \EOF} +%gem_install -n %{SOURCE0} +%{?scl:EOF} + + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +# Fix anything executable that does not have a shebang. +for file in `find %{buildroot}/%{gem_instdir} -name "*.rb"`; do + [ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod +x $file +done + +chmod -x %{buildroot}%{gem_instdir}/doc/releases/builder-2.1.1.rdoc + + +%check +pushd .%{gem_instdir} + +%{?scl:scl enable %{scl} - << \EOF} +set -e +ruby -Ilib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)' +%{?scl:EOF} +popd + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGES +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%doc %{gem_instdir}/doc +%{gem_instdir}/rakelib +%{gem_instdir}/test + +%changelog +* Mon Jan 16 2017 Vít Ondruch - 3.2.3-1 +- Update to Builder 3.2.3. + +* Wed Apr 06 2016 Pavel Valena - 3.2.2-7 +- Fix: build should fail on test failure + +* Fri Feb 19 2016 Pavel Valena - 3.2.2-6 +- Add scl macros + +* Thu Feb 04 2016 Fedora Release Engineering - 3.2.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 3.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue May 26 2015 Josef Stribny - 3.2.2-3 +- Fix tests to run with Minitest + +* Sun Jun 08 2014 Fedora Release Engineering - 3.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 20 2014 Vít Ondruch - 3.2.2-1 +- Update to Builder 3.2.2. + +* Sun Aug 04 2013 Fedora Release Engineering - 3.1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sat Feb 23 2013 Vít Ondruch - 3.1.4-3 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Thu Feb 14 2013 Fedora Release Engineering - 3.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Oct 17 2012 Vít Ondruch - 3.1.4-1 +- Update to Builder 3.1.4. + +* Thu Oct 11 2012 Vít Ondruch - 3.1.3-1 +- Update to Builder 3.1.3. + +* Wed Jul 18 2012 Vít Ondruch - 3.0.0-1 +- Update to Builder 3.0.0. + +* Fri Feb 03 2012 Vít Ondruch - 2.1.2-9 +- Fixed license. + +* Thu Jan 19 2012 Vít Ondruch - 2.1.2-8 +- Rebuilt for Ruby 1.9.3. + +* Sat Jan 14 2012 Fedora Release Engineering - 2.1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Nov 25 2011 Vít Ondruch - 2.1.2-6 +- Fix FTBFS rhbz#712927. + +* Wed Feb 09 2011 Fedora Release Engineering - 2.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jul 26 2009 Fedora Release Engineering - 2.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 2.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Jul 29 2008 Jeroen van Meeuwen - 2.1.2-2 +- Rebuild for review + +* Sun Jul 13 2008 root - 2.1.2-1 +- Initial package