[rubygem-idn] Initial import (#728088)
Shawn Starr
spstarr at fedoraproject.org
Sun Jan 29 18:27:17 UTC 2012
commit a1368e2f9f78bb430ec25ee11b6024da992f3178
Author: Shawn Starr <shawn.starr at rogers.com>
Date: Sun Jan 29 13:22:50 2012 -0500
Initial import (#728088)
.gitignore | 1 +
rubygem-idn.spec | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 111 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..de97003 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/idn-0.0.2.gem
diff --git a/rubygem-idn.spec b/rubygem-idn.spec
new file mode 100644
index 0000000..eed3bce
--- /dev/null
+++ b/rubygem-idn.spec
@@ -0,0 +1,109 @@
+# Generated from idn-0.0.2.gem by gem2rpm -*- rpm-spec -*-
+%global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname idn
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary: Ruby Bindings for the GNU LibIDN library
+Name: rubygem-%{gemname}
+Version: 0.0.2
+Release: 2%{?dist}
+Group: Development/Languages
+
+# ASL license for ext/idn.c, ext/idn.h, ext/punycode.c and ext/stringprep.c
+License: ASL 2.0 and LGPLv2+
+URL: http://rubyforge.org/projects/idn/
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: ruby(abi) = 1.8
+Requires: ruby(rubygems)
+
+BuildRequires: ruby(rubygems)
+BuildRequires: libidn-devel
+BuildRequires: ruby-devel
+
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+Ruby Bindings for the GNU LibIDN library, an implementation of the Stringprep,
+Punycode and IDNA specifications defined by the IETF Internationalized Domain
+Names (IDN) working group.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains documentation for %{name}.
+
+%prep
+%setup -q -c -T
+mkdir -p ./%{gemdir}
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+gem install \
+ -V \
+ --local \
+ --install-dir ./%{gemdir} \
+ --force --rdoc \
+ --ri \
+ %{SOURCE0}
+
+pushd .%{geminstdir}
+
+%build
+mkdir -p .%{gemdir}
+TOPDIR=$(pwd)
+
+## remove all shebang, set permission to 0644
+find .%{geminstdir}/{Rakefile,lib,spec} -type f | \
+ xargs -n 1 sed -i -e '/^#!\/usr\/bin\/env ruby/d'
+find .%{geminstdir}/{Rakefile,lib,spec} -type f | \
+ xargs chmod 0644
+
+mkdir -p ./%{ruby_sitearch}/%{gemname}/
+
+%install
+mkdir -p %{buildroot}
+cp -a ./* %{buildroot}/
+
+# Arch dependent files go here
+mkdir -p %{buildroot}%{ruby_sitearch}/%{gemname}
+mv %{buildroot}%{geminstdir}/lib/*.so %{buildroot}%{ruby_sitearch}/%{gemname}
+#mv %{buildroot}%{geminstdir}/ext/idn.h %{buildroot}%{ruby_sitearch}
+chmod 0755 %{buildroot}%{ruby_sitearch}/%{gemname}/%{gemname}.so
+
+pushd .%{geminstdir}
+
+popd
+
+%check
+pushd .%{geminstdir}
+testrb -Ilib test/tc_*.rb
+popd
+
+%files
+%dir %{geminstdir}/
+%doc %{geminstdir}/CHANGES
+%doc %{geminstdir}/LICENSE
+%{ruby_sitearch}/%{gemname}/*.so
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%exclude %{geminstdir}/ext
+%exclude %{geminstdir}/.yardoc
+%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
+
+%files doc
+%{geminstdir}/Rakefile
+%{geminstdir}/NOTICE
+%{geminstdir}/README
+
+%{geminstdir}/test
+%{gemdir}/doc/%{gemname}-%{version}
+
+%changelog
+
+* Sun Nov 06 2011 Shawn Starr <shawn.starr at rogers.com> - 0.0.2-2
+- Update spec based on bugzilla review feedback.
+
+* Thu Jul 21 2011 Shawn Starr <shawn.starr at rogers.com> - 0.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..aade531 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+156e1e84ee596a62d59760326c746186 idn-0.0.2.gem
More information about the scm-commits
mailing list