Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Fedora Release Engineering | 43b3d6b9ef | |
Bill Nottingham | b9941dabfe | |
Jeroen van Meeuwen | 6a014d8e7c | |
Kevin Fenzi | eea52c51e7 |
|
@ -0,0 +1 @@
|
||||||
|
ferret-0.11.6.gem
|
21
Makefile
21
Makefile
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: rubygem-ferret
|
|
||||||
# $Id$
|
|
||||||
NAME := rubygem-ferret
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
|
@ -0,0 +1,131 @@
|
||||||
|
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
||||||
|
%define gemname ferret
|
||||||
|
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
||||||
|
|
||||||
|
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
|
||||||
|
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
|
||||||
|
|
||||||
|
Summary: Full-featured text search engine library
|
||||||
|
Name: rubygem-%{gemname}
|
||||||
|
Version: 0.11.6
|
||||||
|
Release: 9%{?dist}
|
||||||
|
Group: Development/Languages
|
||||||
|
# License from
|
||||||
|
# - MIT-LICENSE: MIT
|
||||||
|
# - ext/posh.c: 3-clause BSD
|
||||||
|
# - ext/q_parser.c: GPLv2+
|
||||||
|
License: MIT and BSD
|
||||||
|
URL: http://rubyforge.org/projects/ferret/
|
||||||
|
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
Requires: rubygems
|
||||||
|
Requires: ruby(abi) = 1.8
|
||||||
|
BuildRequires: rubygems
|
||||||
|
BuildRequires: ruby-devel
|
||||||
|
BuildRequires: rubygem(rake)
|
||||||
|
Provides: rubygem(%{gemname}) = %{version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Ferret is a high-performance, full-featured text search
|
||||||
|
engine library written entirely in pure Ruby (with an
|
||||||
|
optional C extension). It is inspired by the Java Lucene
|
||||||
|
Project.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Group: Documentation
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package contains documentation for %{name}.
|
||||||
|
|
||||||
|
#%package devel
|
||||||
|
#Requires: rubygem-%{gemname} = %{version}-%{release}
|
||||||
|
#Group: Development/Languages
|
||||||
|
#Summary: Development files for rubygem-ferret
|
||||||
|
|
||||||
|
#%description devel
|
||||||
|
#Ferret is a high-performance, full-featured text search
|
||||||
|
#engine library written entirely in pure Ruby (with an
|
||||||
|
#optional C extension). It is inspired by the Java Lucene
|
||||||
|
#Project. These are the devel files.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c -T
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir -p ./%{gemdir}
|
||||||
|
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
|
||||||
|
gem install \
|
||||||
|
--local \
|
||||||
|
--install-dir ./%{gemdir} \
|
||||||
|
-V --force \
|
||||||
|
%{SOURCE0}
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}%{gemdir}
|
||||||
|
cp -a ./%{gemdir}/* %{buildroot}%{gemdir}
|
||||||
|
|
||||||
|
install -d -m0755 %{buildroot}%{ruby_sitearch}
|
||||||
|
mv %{buildroot}%{geminstdir}/lib/ferret_ext.so %{buildroot}%{ruby_sitearch}
|
||||||
|
|
||||||
|
# You know ferret_ext.so needs to be 755 for find-debuginfo.sh to find it
|
||||||
|
chmod 0755 %{buildroot}%{ruby_sitearch}/ferret_ext.so
|
||||||
|
|
||||||
|
rm -rf %{buildroot}%{geminstdir}/ext
|
||||||
|
mkdir -p %{buildroot}/%{_bindir}
|
||||||
|
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
|
||||||
|
rmdir %{buildroot}%{gemdir}/bin
|
||||||
|
|
||||||
|
%check
|
||||||
|
# Tests fail on ppc64, so make it fail softly
|
||||||
|
pushd .%{geminstdir}
|
||||||
|
rake test_units || :
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
%doc %{geminstdir}/CHANGELOG
|
||||||
|
%doc %{geminstdir}/MIT-LICENSE
|
||||||
|
%doc %{geminstdir}/README
|
||||||
|
%doc %{geminstdir}/TODO
|
||||||
|
%doc %{geminstdir}/TUTORIAL
|
||||||
|
%{_bindir}/ferret-browser
|
||||||
|
%dir %{geminstdir}
|
||||||
|
%{geminstdir}/lib
|
||||||
|
%{geminstdir}/bin
|
||||||
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
||||||
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
||||||
|
%{ruby_sitearch}/ferret_ext.so
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{gemdir}/doc/%{gemname}-%{version}/
|
||||||
|
%{geminstdir}/Rakefile
|
||||||
|
%{geminstdir}/setup.rb
|
||||||
|
%{geminstdir}/test/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Apr 05 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.11.6-9
|
||||||
|
- Update from comments in #468597
|
||||||
|
- Update to reflect new package guidelines
|
||||||
|
|
||||||
|
* Wed Oct 29 2008 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.11.6-7
|
||||||
|
- Adjust license tag for package (#468597)
|
||||||
|
- Adjust Source0 URL (#468597)
|
||||||
|
- Make sure that the gem installation dir itself is owned by this package (#468597)
|
||||||
|
|
||||||
|
* Sun Oct 25 2008 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.11.6-6
|
||||||
|
- Majorly revise packaging strategy (#468597)
|
||||||
|
- Found all licenses in each of the files
|
||||||
|
- Include license file
|
||||||
|
|
||||||
|
* Sun Oct 25 2008 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.11.6-2
|
||||||
|
- Better use of macros
|
||||||
|
- rpmlint now silent
|
||||||
|
|
||||||
|
* Sun Oct 25 2008 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.11.6-1
|
||||||
|
- Initial package
|
Loading…
Reference in New Issue