[rubygem-macaddr] Initial import (#1177697).
František Dvořák
valtri at fedoraproject.org
Mon Feb 9 15:44:02 UTC 2015
commit cd83b004dc5f513b4244fab7eaa1b02cf240f9ee
Author: František Dvořák <valtri at civ.zcu.cz>
Date: Mon Feb 9 16:43:07 2015 +0100
Initial import (#1177697).
.gitignore | 1 +
BSDL | 22 +++++++++++
COPYING | 56 +++++++++++++++++++++++++++++
rubygem-macaddr.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 176 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..15f08f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/macaddr-1.7.1.gem
diff --git a/BSDL b/BSDL
new file mode 100644
index 0000000..a009cae
--- /dev/null
+++ b/BSDL
@@ -0,0 +1,22 @@
+Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..a1f19ff
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,56 @@
+Ruby is copyrighted free software by Yukihiro Matsumoto <matz at netlab.jp>.
+You can redistribute it and/or modify it under either the terms of the
+2-clause BSDL (see the file BSDL), or the conditions below:
+
+ 1. You may make and give away verbatim copies of the source form of the
+ software without restriction, provided that you duplicate all of the
+ original copyright notices and associated disclaimers.
+
+ 2. You may modify your copy of the software in any way, provided that
+ you do at least ONE of the following:
+
+ a) place your modifications in the Public Domain or otherwise
+ make them Freely Available, such as by posting said
+ modifications to Usenet or an equivalent medium, or by allowing
+ the author to include your modifications in the software.
+
+ b) use the modified software only within your corporation or
+ organization.
+
+ c) give non-standard binaries non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 3. You may distribute the software in object code or binary form,
+ provided that you do at least ONE of the following:
+
+ a) distribute the binaries and library files of the software,
+ together with instructions (in the manual page or equivalent)
+ on where to get the original distribution.
+
+ b) accompany the distribution with the machine-readable source of
+ the software.
+
+ c) give non-standard binaries non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 4. You may modify and include the part of the software into any other
+ software (possibly commercial). But some files in the distribution
+ are not written by the author, so that they are not under these terms.
+
+ For the list of those files and their copying conditions, see the
+ file LEGAL.
+
+ 5. The scripts and library files supplied as input to or produced as
+ output from the software do not automatically fall under the
+ copyright of the software, but belong to whomever generated them,
+ and may be sold commercially, and may be aggregated with this
+ software.
+
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE.
diff --git a/rubygem-macaddr.spec b/rubygem-macaddr.spec
new file mode 100644
index 0000000..4619e75
--- /dev/null
+++ b/rubygem-macaddr.spec
@@ -0,0 +1,96 @@
+%global gem_name macaddr
+
+Name: rubygem-%{gem_name}
+Version: 1.7.1
+Release: 2%{?dist}
+Summary: MAC Address Determination for Ruby
+
+Group: Development/Languages
+License: Ruby or BSD
+URL: https://github.com/ahoward/macaddr
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# full license text not in the sources
+# https://github.com/ahoward/macaddr/issues/27
+Source1: https://raw.githubusercontent.com/ruby/ruby/trunk/COPYING
+Source2: https://raw.githubusercontent.com/ruby/ruby/trunk/BSDL
+
+BuildArch: noarch
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(systemu) >= 2.6.2
+BuildRequires: rubygem(systemu) < 2.7
+BuildRequires: rubygem(test-unit)
+%if 0%{?fedora} && 0%{?fedora} <= 20 || 0%{?rhel} && 0%{?rhel} <= 7
+Requires: ruby(release)
+Requires: ruby(rubygems)
+Requires: rubygem(systemu) >= 2.6.2
+Requires: rubygem(systemu) < 2.7
+Provides: rubygem(%{gem_name}) = %{version}
+%endif
+
+%description
+Cross platform mac address determination for Ruby.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+BuildArch: noarch
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}.
+
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+
+%build
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+cp -p %{SOURCE1} %{SOURCE2} %{buildroot}%{gem_instdir}/
+
+
+%check
+pushd .%{gem_instdir}
+ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
+popd
+
+
+%files
+%dir %{gem_instdir}/
+%doc %{gem_instdir}/LICENSE
+%license %{gem_instdir}/COPYING
+%license %{gem_instdir}/BSDL
+%{gem_libdir}/
+%exclude %{gem_cache}
+%{gem_spec}
+%exclude %{gem_instdir}/test/
+%exclude %{gem_instdir}/Gemfile
+%exclude %{gem_instdir}/Rakefile
+%exclude %{gem_instdir}/rvmrc.example
+%exclude %{gem_instdir}/%{gem_name}.gemspec
+
+%files doc
+%doc %{gem_docdir}/
+%doc %{gem_instdir}/README
+
+
+%changelog
+* Sun Feb 08 2015 František Dvořák <valtri at civ.zcu.cz> - 1.7.1-2
+- Update for F22, proper BR for test/unit
+
+* Mon Dec 29 2014 František Dvořák <valtri at civ.zcu.cz> - 1.7.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..ac524ff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aade5990769cbeee7a0df9390f3f7030 macaddr-1.7.1.gem
More information about the scm-commits
mailing list