summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-02-16 12:37:25 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-02-16 12:37:25 -0700
commit8df2025f3c1350b4cc1b20bf418fea5b42f8f91f (patch)
treec5375cd8c6c34236acef5183ac781c7a7d86523d
parent4359e4f1e32cc1b5b5c868e0f10f048e541039a3 (diff)
downloadrubygem-validates_url_format_of-gitorious.tar.gz
rubygem-validates_url_format_of-gitorious.tar.xz
rubygem-validates_url_format_of-gitorious.zip
Downgrade to 0.1.1gitorious
-rw-r--r--.gitignore1
-rw-r--r--rubygem-validates_url_format_of.spec50
-rw-r--r--sources1
3 files changed, 34 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..22cd65d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/validates_url_format_of-0.1.1.gem
diff --git a/rubygem-validates_url_format_of.spec b/rubygem-validates_url_format_of.spec
index 4850475..6d288ad 100644
--- a/rubygem-validates_url_format_of.spec
+++ b/rubygem-validates_url_format_of.spec
@@ -1,32 +1,50 @@
# Generated from validates_url_format_of-0.3.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name validates_url_format_of
+%if 0%{?el6}
+%global rubyabi 1.8
+%else
%global rubyabi 1.9.1
+%endif
Summary: ActiveRecord URL Validation
Name: rubygem-%{gem_name}
-Version: 0.3.0
+Version: 0.1.1
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/conickal/validates_url_format_of
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-Patch0: rubygem-validates_url_format_of-0.3.0-remove-simplecov.patch
Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems) >= 1.3.6
-Requires: rubygem(activerecord) => 3.1.0
-Requires: rubygem(activerecord) < 3.2
+Requires: rubygem(activerecord) => 2.3.0
+Requires: rubygem(activerecord) < 3
BuildRequires: ruby(abi) = %{rubyabi}
-BuildRequires: rubygems-devel >= 1.3.6
+%if 0%{?fedora}
+BuildRequires: rubygems-devel
+%else
+BuildRequires: ruby(rubygems)
+%endif
BuildRequires: rubygem(minitest)
-BuildRequires: rubygem(rdiscount)
# SimpleCov is complex; patched out for now.
#BuildRequires: rubygem(simplecov)
+%if 0%{?el6}
+BuildRequires: rubygem(sqlite3-ruby)
+%else
BuildRequires: rubygem(sqlite3)
-BuildRequires: rubygem(yard)
+%endif
BuildRequires: rubygem(activerecord)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
+# macros for RHEL6 compatibility:
+%{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)}
+%{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}}
+%{!?gem_libdir: %global gem_libdir %{gem_instdir}/lib}
+%{!?gem_cache: %global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem}
+%{!?gem_spec: %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec}
+%{!?gem_docdir: %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}}
+%{!?gem_extdir: %global gem_extdir %{_libdir}/gems/exts/%{gem_name}-%{version}}
+
%description
Rails plugin that provides a validates_url_format_of method to ActiveRecord
models. URLs are validated by regexp.
@@ -47,16 +65,8 @@ mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0}
-# Remove dependency on simplecov
-pushd .%{gem_instdir}
-%patch0 -p1
-popd
-
# Remove developer files
-rm -f .%{gem_instdir}/.gemtest
rm -f .%{gem_instdir}/.gitignore
-rm -f .%{gem_instdir}/.travis.yml
-rm -rf .%{gem_instdir}/.yardoc
# Remove extra gemspec file
rm -f .%{gem_instdir}/%{gem_name}.gemspec
@@ -76,18 +86,22 @@ popd
%files
%dir %{gem_instdir}
%{gem_libdir}
+%{gem_instdir}/init.rb
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
-%doc %{gem_instdir}/LICENSE.md
-%doc %{gem_instdir}/README.md
-%{gem_instdir}/Gemfile
+%doc %{gem_instdir}/VERSION
+%doc %{gem_instdir}/README.markdown
%{gem_instdir}/Rakefile
+%{gem_instdir}/shoulda_macros
%{gem_instdir}/test
%changelog
+* Sat Feb 16 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.1.1-1
+- Downgrade to 0.1.1
+
* Sat Aug 04 2012 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.3.0-1
- Initial package, created by gem2rpm 0.8.1
diff --git a/sources b/sources
new file mode 100644
index 0000000..3e7abbc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b6af3db88941e8c57975cdc0c11f120a validates_url_format_of-0.1.1.gem