rpms/rubygem-rdiscount/devel import.log, NONE, 1.1 rubygem-rdiscount.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Gerd Pokorra gerd at fedoraproject.org
Mon Jun 21 06:55:15 UTC 2010


Author: gerd

Update of /cvs/pkgs/rpms/rubygem-rdiscount/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv19554/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log rubygem-rdiscount.spec 
Log Message:
Initial files for rdiscount-1.6.3.2.gem



--- NEW FILE import.log ---
rubygem-rdiscount-1_6_3_2-4_fc12:HEAD:rubygem-rdiscount-1.6.3.2-4.fc12.src.rpm:1277102397


--- NEW FILE rubygem-rdiscount.spec ---
# Generated from rdiscount-1.6.3.2.gem by gem2rpm -*- rpm-spec -*-

%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}

%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname rdiscount
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}

Summary: Fast Implementation of Gruber's Markdown in C
Name: rubygem-%{gemname}
Version: 1.6.3.2
Release: 4%{?dist}
Group: Development/Languages
License: ASL 1.1
URL: http://github.com/rtomayko/rdiscount
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
Requires: ruby(abi) = 1.8
Requires: rubygems
BuildRequires: rubygems
BuildRequires: ruby-devel
BuildRequires: rubygem(rake)
Provides: rubygem(%{gemname}) = %{version}


%package doc
Summary: Documentation for %{name}
Group: Documentation
BuildArch: noarch
Requires: %{name} = %{version}-%{release}


%description
Description: Discount is an implementation of John Gruber's Markdown markup
language in C. It implements all of the language described in the markdown
syntax document and passes the Markdown 1.0 test suite.

#--

%description doc
This package contains Rakefile, test directory and documentation for
%{name}.


%prep
%setup -q -c -T

%build
mkdir -p .%{gemdir}
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install -V --local --install-dir $(pwd)/%{gemdir} \
            --force --rdoc %{SOURCE0}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man7
mkdir -p %{buildroot}%{ruby_sitearch}
mv .%{geminstdir}/man/rdiscount.1 %{buildroot}%{_mandir}/man1
mv .%{geminstdir}/man/markdown.7 %{buildroot}%{_mandir}/man7
cp -a .%{gemdir}/*  %{buildroot}%{gemdir}
rm -rf %{buildroot}%{geminstdir}/ext
mv %{buildroot}%{geminstdir}/lib/rdiscount.so %{buildroot}%{ruby_sitearch}

mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gemdir}/bin
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x

%clean
rm -rf %{buildroot}

%check
export GEM_PATH=$(pwd)/%{gemdir}
pushd .%{geminstdir}
#
rake test:unit


%files
%defattr(-, root, root, -)
%{_bindir}/rdiscount
%dir %{geminstdir}
%{geminstdir}/bin/
%{geminstdir}/lib/
%doc %{geminstdir}/COPYING
%doc %{geminstdir}/README.markdown
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%{ruby_sitearch}/rdiscount.so
%{_mandir}/man1/rdiscount.1.gz
%{_mandir}/man7/markdown.7.gz

#--

%files doc
%defattr(-, root, root, -)
%doc %{geminstdir}/Rakefile
%{gemdir}/doc/%{gemname}-%{version}
%{geminstdir}/man
%{geminstdir}/test
%{geminstdir}/rdiscount.gemspec


%changelog
* Sat Jun 12 2010 Gerd Pokorra <gp at zimt.uni-siegen.de> - 1.6.3.2-4
- removed the unused macro "ruby_sitelib"
- put the file rdiscount.gemspec to the doc-subpackage
- add dependency to the main package for the doc-subpackage

* Thu Jun 10 2010 Gerd Pokorra <gp at zimt.uni-siegen.de> - 1.6.3.2-3
- changed ruby(abi) dependency to be strict
- changed rubygem module related dependency style
- only arch-dependent files are in "ruby_sitearch"
- tests are now successful; "rake test:unit" is used
- "geminstdir" macro is used when possible
- "geminstdir" is owned by package
- ext/ subdirectory is removed form "buildroot" during install; no exclude

* Tue Jun 08 2010 Gerd Pokorra <gp at zimt.uni-siegen.de> - 1.6.3.2-2
- files under ext/ subdirectory excluded
- remove BuildRoot tag
- add "Requires: ruby(abi) >= 1.8"
- use global macro instead of define macro
- changed license tag

* Sun Jun 06 2010 Gerd Pokorra <gp at zimt.uni-siegen.de> - 1.6.3.2-1
- add "BuildRequires: ruby-devel"
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-rdiscount/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	21 Jun 2010 02:36:35 -0000	1.1
+++ .cvsignore	21 Jun 2010 06:55:14 -0000	1.2
@@ -0,0 +1 @@
+rdiscount-1.6.3.2.gem


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-rdiscount/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	21 Jun 2010 02:36:35 -0000	1.1
+++ sources	21 Jun 2010 06:55:14 -0000	1.2
@@ -0,0 +1 @@
+4dd15db2e2a3def6ed41d13f7063f925  rdiscount-1.6.3.2.gem



More information about the scm-commits mailing list