Author: pawelz Date: Thu Jun 24 15:47:41 2010 GMT Module: packages Tag: HEAD ---- Log message: - initial PLD release, please review.
---- Files affected: packages/ruby-ronn: ruby-ronn.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/ruby-ronn/ruby-ronn.spec diff -u /dev/null packages/ruby-ronn/ruby-ronn.spec:1.1 --- /dev/null Thu Jun 24 17:47:41 2010 +++ packages/ruby-ronn/ruby-ronn.spec Thu Jun 24 17:47:36 2010 @@ -0,0 +1,130 @@ +# $Revision$, $Date$ +%define pkgname ronn +Summary: Markdown to man and HTML translator +Name: ruby-ronn +Version: 0.7.0 +Release: 0.1 +License: MIT +Source0: http://github.com/rtomayko/ronn/tarball/0.7.0/%{name}-%{version}.tar.gz +# Source0-md5: bcdcf74d931e2f8442b063bfbc9788df +Group: Development/Languages +URL: http://github.com/rtomayko/ronn +Requires: ruby-hpricot +Requires: ruby-mustache +Requires: ruby-rdiscount +BuildRequires: rpmbuild(macros) >= 1.484 +BuildRequires: ruby >= 1:1.8.6 +BuildRequires: ruby-modules +BuildRequires: setup.rb +%{?ruby_mod_ver_requires_eq} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Ruby library for ronn. + +%package -n ronn +Summary: Markdown to man and HTML translator +Group: Applications/Publishing +Requires: %{name} = %{version}-%{release} + +%description -n ronn +Ronn builds manuals. It converts simple, human readable textfiles to +roff for terminal display, and also to HTML for the web. + +The source format includes all of Markdown but has a more rigid +structure and syntax extensions for features commonly found in +manpages (definition lists, link notation, etc.). The ronn-format(7) +manual page defines the format in detail. + +%package rdoc +Summary: HTML documentation for %{pkgname} +Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname} +Group: Documentation +Requires: ruby >= 1:1.8.7-4 + +%description rdoc +HTML documentation for %{pkgname}. + +%description rdoc -l pl.UTF-8 +Dokumentacja w formacie HTML dla %{pkgname}. + +%package ri +Summary: ri documentation for %{pkgname} +Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname} +Group: Documentation +Requires: ruby + +%description ri +ri documentation for %{pkgname}. + +%description ri -l pl.UTF-8 +Dokumentacji w formacie ri dla %{pkgname}. + +%prep +%setup -q -c +mv rtomayko-ronn-*/* . +rm -rf rtomayko-ronn-* + +%build + +cp %{_datadir}/setup.rb . + +ruby setup.rb config \ + --rbdir=%{ruby_rubylibdir} \ + --sodir=%{ruby_archdir} + +ruby setup.rb setup + +rdoc --ri --op ri lib +rdoc --op rdoc lib +rm ri/created.rid + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}} + +cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} +cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version} + +ruby setup.rb install \ + --prefix=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_mandir}/man{1,7} +mv $RPM_BUILD_ROOT%{_mandir}/{,man1/}%{pkgname}.1 +mv $RPM_BUILD_ROOT%{_mandir}/{,man7/}%{pkgname}-format.7 + +# Remove HTML and source markdown files +rm $RPM_BUILD_ROOT%{_mandir}/*.*.* +rm $RPM_BUILD_ROOT%{_mandir}/index* + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES README.md +%{ruby_rubylibdir}/%{pkgname}.rb +%{ruby_rubylibdir}/%{pkgname} + +%files -n %{pkgname} +%{_bindir}/%{pkgname} +%{_mandir}/man1/%{pkgname}.1* +%{_mandir}/man7/%{pkgname}-format.7* + +%files rdoc +%defattr(644,root,root,755) +%{ruby_rdocdir}/%{name}-%{version} + +%files ri +%defattr(644,root,root,755) +%{ruby_ridir}/Ronn + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2010/06/24 15:47:36 pawelz +- initial PLD release, please review. + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
