diff --git a/.cvsignore b/.cvsignore index e69de29..d659a3f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +latest.tar.gz diff --git a/code2html.spec b/code2html.spec new file mode 100644 index 0000000..cfc6fb7 --- /dev/null +++ b/code2html.spec @@ -0,0 +1,54 @@ +Name: code2html +Version: 0.9.1 +Release: 2%{?dist} +Summary: Convert source code to HTML + +Group: Applications/Publishing +License: MIT +URL: http://search.cpan.org/dist/code2html/ +Source0: http://www.palfrader.org/code2html/all/latest.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Code2HTML converts a program source code to syntax highlighted HTML. + +%prep +%setup -q +iconv -f iso8859-1 -t utf-8 %{name}.1 > %{name}.1.conv && mv -f %{name}.1.conv %{name}.1 + +%build +# Empty build + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_bindir} +install -p -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}/ + +mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} +install -p -m 644 ChangeLog CREDITS LICENSE README $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ + +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +install -p -m 644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/ + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc ChangeLog CREDITS LICENSE README +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz + + +%changelog +* Mon Jan 26 2009 Rakesh Pandit 0.9.1-2 +- Fixed wrong license field and used -p while installing + +* Mon Jan 26 2009 Rakesh Pandit 0.9.1-1 +- Initial package diff --git a/import.log b/import.log new file mode 100644 index 0000000..40ac67d --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +code2html-0_9_1-2_fc10:HEAD:code2html-0.9.1-2.fc10.src.rpm:1233021094 diff --git a/sources b/sources index e69de29..5929ab7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +368377696547026c79c51a274571dc39 latest.tar.gz