Commit fb601be9 authored by mh's avatar mh
Browse files

initial commit

parents
Pipeline #9051 failed with stages
in 4 minutes and 5 seconds
---
stages:
- build
- push
.build_rpm:
stage: build
tags:
- rpmbuild
image: $CI_REGISTRY/immerda/container-images/rpmbuild/centos:${RELEASE}
script:
- sudo -u user spectool -g -S -R rubygem-iconv.spec
- ibuild-rpm rubygem-iconv.spec
artifacts:
expire_in: 1 day
paths:
- "*.rpm"
- checksums
.push_rpm:
stage: push
tags:
- rpmbuild
image: $CI_REGISTRY/immerda/container-images/rpmbuild/centos:$RELEASE
script:
- ipush "el${RELEASE}"
- echo -e "Hi\nThere are new RPMs availabe to be signed for ${CI_PROJECT_URL} on EL${RELEASE}\nHave a look at the pipeline ${CI_PIPELINE_URL}\n\nChecksums:\n\n$(cat checksums)" | imail "New RPM built for ${CI_PROJECT_NAME}"
build_el7:
variables:
RELEASE: 7
extends: .build_rpm
build_el8:
variables:
RELEASE: 8
extends: .build_rpm
push_el7:
needs:
- build_el7
variables:
RELEASE: 7
extends: .push_rpm
push_el8:
needs:
- build_el8
variables:
RELEASE: 8
extends: .push_rpm
# Generated from iconv-1.0.4.gem by gem2rpm -*- rpm-spec -*-
%global gem_name iconv
Name: rubygem-%{gem_name}
Version: 1.0.8
Release: 1%{?dist}
Summary: iconv wrapper library
Group: Development/Languages
License: BSDL
URL: https://github.com/nurse/iconv
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: rubygems-devel
BuildRequires: ruby(release)
BuildRequires: ruby
BuildRequires: ruby-devel
%description
iconv wrapper library
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}
%build
%install
mkdir -p %{buildroot}%{gem_dir}
mkdir -p %{buildroot}%{gem_extdir_mri}/lib/%{gem_name}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mv %{buildroot}%{gem_libdir}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/lib/%{gem_name}
# Remove the binary extension sources and build leftovers.
rm -rf %{buildroot}%{gem_instdir}/ext
# Fix spec shebangs.
# https://bitbucket.org/ged/ruby-pg/issue/74/
for file in `find %{buildroot}%{gem_instdir}/spec -type f ! -perm /a+x -name "*.rb"`; do
[ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] \
&& sed -i -e 's/^#!\/usr\/bin\/env spec/#!\/usr\/bin\/env rspec/' $file \
&& chmod -v 755 $file
done
%check
#pushd .%{gem_instdir}
#tar xzvf %{SOURCE1}
#rspec spec
#popd
%files
%dir %{gem_instdir}
%{gem_libdir}
%{gem_extdir_mri}
%exclude %{gem_cache}
%{gem_spec}
%{gem_instdir}/%{gem_name}.gemspec
%license %{gem_instdir}/LICENSE.txt
%license %{gem_instdir}/BSDL
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/.travis.yml
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/Gemfile*
%{gem_instdir}/Rakefile
%{gem_instdir}/test
%changelog
* Wed Sep 23 2015 mh <mh@immerda.ch> - 1.0.4-1
- Initial package
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment