rpms/rubygem-haml/F-12 import.log, NONE, 1.1 rubygem-haml.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Matthew Kent mkent at fedoraproject.org
Sat Mar 27 22:20:25 UTC 2010


Author: mkent

Update of /cvs/pkgs/rpms/rubygem-haml/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv4987/F-12

Modified Files:
	.cvsignore sources 
Added Files:
	import.log rubygem-haml.spec 
Log Message:
- Initial CVS import



--- NEW FILE import.log ---
rubygem-haml-2_2_20-1_magoazul:F-12:rubygem-haml-2.2.20-1.magoazul.src.rpm:1269726554


--- NEW FILE rubygem-haml.spec ---
# Generated from haml-2.2.14.gem by gem2rpm -*- rpm-spec -*-
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname haml
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}

Summary: An elegant, structured XHTML/XML templating engine
Name: rubygem-%{gemname}
Version: 2.2.20
Release: 1%{?dist}
Group: Development/Languages
License: MIT and WTFPL
URL: http://haml-lang.com/
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
# for html2haml
Requires: rubygem(hpricot)

BuildRequires: rubygems
BuildRequires: ruby
BuildRequires: rubygem(rails)
BuildRequires: rubygem(hpricot)

BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}

%description
Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML
that's designed to express the structure of XHTML or XML documents in a
non-repetitive, elegant, easy way, using indentation rather than closing
tags and allowing Ruby to be embedded with ease.
It was originally envisioned as a plugin for Ruby on Rails, but it can
function as a stand-alone templating engine.


%prep

%build

%check
pushd %{buildroot}%{geminstdir}
# The following -path list is from Rakefile
find * \
 -path 'test/*/*_test.rb' \
 -not -path 'test/rails/*' \
 -not -path 'test/plugins/*' \
 -not -path 'test/haml/spec/*' | \
while read f
do
  ruby $f
done
popd

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
            --force --rdoc %{SOURCE0}
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gemdir}/bin
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x

rm %{buildroot}%{geminstdir}/.yardopts

# Remove backup files
find %{buildroot}/%{geminstdir} -type f -name "*~" -delete

# Fix anything executable that does not have a shebang
for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
done

# Find files with a shebang that do not have executable permissions
for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
    [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
done

# Find files that have non-standard-executable-perm
find %{buildroot}/%{geminstdir} -type f -perm /g+wx -exec chmod -v g-w {} \;

# Find files that are not readable
find %{buildroot}/%{geminstdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;


%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, -)
%{_bindir}/haml
%{_bindir}/html2haml
%{_bindir}/sass
%{_bindir}/css2sass
%dir %{geminstdir}
%{geminstdir}/Rakefile
%{geminstdir}/bin
%{geminstdir}/extra
%{geminstdir}/init.rb
%{geminstdir}/lib
%{geminstdir}/rails
%{geminstdir}/test
%doc %{gemdir}/doc/%{gemname}-%{version}
%doc %{geminstdir}/VERSION
%doc %{geminstdir}/MIT-LICENSE
%doc %{geminstdir}/README.md
%doc %{geminstdir}/VERSION_NAME
%doc %{geminstdir}/REVISION
%doc %{geminstdir}/CONTRIBUTING
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec


%changelog
* Mon Jan 04 2010 Michal Babej <mbabej at redhat.com> - 2.2.20-1
- update to new upstream release

* Mon Jan 04 2010 Michal Babej <mbabej at redhat.com> - 2.2.16-1
- update to new upstream release
- get rid of test_files macro
- add shebang/permission handling from Jeroen van Meeuwen

* Fri Dec 04 2009 Michal Babej <mbabej at redhat.com> - 2.2.15-2
- change %%define to %%global
- change license to "MIT and WTFPL" (test/haml/spec/README.md)
- add Requires on hpricot for html2haml
- change %%gemdir to %%geminstdir where appropriate

* Wed Dec 02 2009 Michal Babej <mbabej at redhat.com> - 2.2.15-1
- Update to new upstream release
- URL changed by upstream

* Wed Dec 02 2009 Michal Babej <mbabej at redhat.com> - 2.2.14-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-haml/F-12/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	19 Mar 2010 20:04:43 -0000	1.1
+++ .cvsignore	27 Mar 2010 22:20:24 -0000	1.2
@@ -0,0 +1 @@
+haml-2.2.20.gem


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-haml/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	19 Mar 2010 20:04:43 -0000	1.1
+++ sources	27 Mar 2010 22:20:25 -0000	1.2
@@ -0,0 +1 @@
+4b695cc4b9d587baf19112c78dfc3b27  haml-2.2.20.gem



More information about the scm-commits mailing list