Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.7
rubygem-actionmailer-42
rubygem-actionmailer-42.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-actionmailer-42.spec of Package rubygem-actionmailer-42
# Generated from actionmailer-1.3.6.gem by gem2rpm -*- rpm-spec -*- %global gem_name actionmailer Summary: Service layer for easy email delivery and testing Name: rubygem-%{gem_name}-42 Epoch: 1 Version: 4.2.6 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://www.rubyonrails.org Source0: http://rubygems.org/downloads/actionmailer-%{version}.gem # Also the actionmailer gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git # cd rails/actionmailer/ # git checkout v4.2.6 # tar czvf actionmailer-4.2.6-tests.tgz test/ Source2: actionmailer-%{version}-tests.tgz # Let's keep Requires and BuildRequires sorted alphabeticaly BuildRequires: rubygems-devel BuildRequires: rubygem(actionpack) = %{version} BuildRequires: rubygem(actionview) = %{version} BuildRequires: rubygem(activejob) = %{version} BuildRequires: rubygem(mail) >= 2.5.4 BuildRequires: rubygem(mail) < 3 BuildRequires: rubygem(minitest) >= 5.1.0 BuildRequires: rubygem(minitest) <= 5.3.1 BuildRequires: rubygem(mocha) BuildArch: noarch %description Makes it trivial to test and deliver emails sent from a single service layer. %package doc Summary: Documentation for %{name} Group: Documentation Requires:%{name} = %{epoch}:%{version}-%{release} %description doc Documentation for %{name} %prep %setup -q -c -T %gem_install -n %{SOURCE0} # move the tests into place tar xzvf %{SOURCE2} -C .%{gem_instdir} # Remove backup files find ./%{gem_instdir} -type f -name "*~" -delete # Fix anything executable that does not have a shebang for file in `find ./%{gem_instdir} -type f -perm /a+x`; do [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file done # Find files with a shebang that do not have executable permissions for file in `find ./%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file done %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # load_path is not available, remove its require. sed -i '1d' test/abstract_unit.rb ruby -Ilib:test -I. -e "Dir.glob('test/**/*_test.rb').each {|t| require t}" popd %files %dir %{gem_instdir} %{gem_libdir} %doc %{gem_instdir}/MIT-LICENSE %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.rdoc %{gem_instdir}/test
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor