diff --git a/rubygem-abstract_method.spec b/rubygem-abstract_method.spec index 0594d94..5459afc 100644 --- a/rubygem-abstract_method.spec +++ b/rubygem-abstract_method.spec @@ -1,20 +1,5 @@ -# -# spec file for package rubygem-abstract_method -# -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - +# originally from openSUSE, modified for integration with openEuelr package architecture +%global gem_name abstract_method Name: rubygem-abstract_method Version: 1.2.1 Release: 0 @@ -35,14 +20,24 @@ Abstract Method is a tiny library enabling you to define abstract methods in Ruby classes and modules. %prep +%setup -q -n %{gem_name}-%{version} -b 1 %build - +gem build ../%{gem_name}-%{version}.gemspec +%gem_install %install -%gem_install \ - --doc-files="LICENSE README.md" \ - -f +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +%files +%dir %{gem_instdir} +%license %{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} -%gem_packages +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md %changelog