Name: txt2rss Version: 0.1 Release: 3%{?dist} Summary: Convert from txt to rss Group: Applications/Internet License: GPLv3 URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-01.tar.bz2 Source1: txt2rss.1 Patch0: txt2rss-license-block.patch Patch1: txt2rss-conf-path.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %description txt2rss is a shell script that parses a simple txt file (in a simple format) and convert it to RSS feed file. Simple to use and intuitive, you need to set up a config file with parameter like webmaster's name, link of the site and others, after you just call the script with options like and a . %prep %setup -q -c %{name} %patch0 -p0 -b .license-block %patch1 -p0 -b .conf-path %build # Empty build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} install -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}/ mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} install -m 644 feed.css $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ install -m 644 news.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name} install -m 644 %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc news.txt feed.css %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.gz %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf %changelog * Tue Sep 02 2008 Rakesh Pandit 0.1-3 - man page, fixed conf file path * Thu Aug 14 2008 Rakesh Pandit 0.1-2 - applied license block patch * Thu Aug 14 2008 Rakesh Pandit 0.1-1 - Initial build