[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/ruby-gettext-package/FC-6 ruby-gettext-package.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2



Author: mtasaka

Update of /cvs/extras/rpms/ruby-gettext-package/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7271/FC-6

Modified Files:
	.cvsignore sources 
Added Files:
	ruby-gettext-package.spec 
Log Message:
Initial import


--- NEW FILE ruby-gettext-package.spec ---
%{!?ruby_sitelib:	%define ruby_sitelib	%(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
%{!?ruby_sitearch:	%define ruby_sitearch	%(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
%define		rubyabi		1.8

Name:		ruby-gettext-package
Version:	1.9.0
Release:	2%{?dist}
Summary:	Localization Library and Tools for Ruby
Group:		Development/Languages

License:	Ruby License/LGPL
URL:		http://www.yotabanana.com/hiki/ruby-gettext.html?ruby-gettext
Source0:	http://rubyforge.org/frs/download.php/16681/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	irb
BuildRequires:	ruby-devel
BuildRequires:	ruby(abi) = %{rubyabi}
Requires:	ruby(abi) = %{rubyabi}
Requires:	irb
Provides:	ruby(gettext-package) = %{version}-%{release}

%description
Ruby-GetText-Package is a Localization(L10n) Library and Tools 
which is modeled after GNU gettext package.

The library converts the messages to localized messages properly 
using client-side locale information. And the tools for developers 
support to create, use, and modify localized message files
(message catalogs) easily.

%package	doc
Summary:	Documentation for %{name}
Group:		Documentation

%description	doc
This package contains documentation for %{name}.

%prep
%setup -q

find samples/ -type f | xargs %{__chmod} 0644

%build
export CFLAGS="$RPM_OPT_FLAGS"
ruby setup.rb config \
	--prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--siteruby=%{ruby_sitelib} \
	--siterubyverarch=%{ruby_sitearch}
ruby setup.rb setup

%install
%{__rm} -rf $RPM_BUILD_ROOT

ruby setup.rb install \
	--prefix=$RPM_BUILD_ROOT

%{__chmod} 0755 $RPM_BUILD_ROOT%{ruby_sitearch}/locale_system.so
for f in `find $RPM_BUILD_ROOT%{ruby_sitelib}/gettext -name \*.rb | sort` ; do
	%{__sed} -i -e '/^#!/d' $f
done

%find_lang rails
%find_lang rgettext
%{__cat} *.lang >> %{name}.lang

%check
RUBYLIB=$RPM_BUILD_ROOT%{ruby_sitelib}:$RPM_BUILD_ROOT%{ruby_sitearch}
export RUBYLIB
ruby setup.rb test

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING ChangeLog NEWS README

%{_bindir}/*
%{ruby_sitelib}/gettext.rb
%{ruby_sitelib}/gettext/
%{ruby_sitearch}/locale_system.so

%files doc
%defattr(-,root,root,-)
%doc samples/
%doc test/

%changelog
* Mon May  7 2007 Mamoru Tasaka <mtasaka ioa s u-tokyo ac jp> - 1.9.0-2
- Create -doc subpackage

* Sat Apr 21 2007 Mamoru Tasaka <mtasaka ioa s u-tokyo ac jp> - 1.9.0-1
- Initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ruby-gettext-package/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	11 May 2007 21:03:53 -0000	1.1
+++ .cvsignore	12 May 2007 03:02:41 -0000	1.2
@@ -0,0 +1 @@
+ruby-gettext-package-1.9.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ruby-gettext-package/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	11 May 2007 21:03:53 -0000	1.1
+++ sources	12 May 2007 03:02:41 -0000	1.2
@@ -0,0 +1 @@
+f40a0aca7abe6dd4fc89e6e61dec7779  ruby-gettext-package-1.9.0.tar.gz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]