LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File txt2man.spec of Package txt2man (Project home:stefjakobs)

Summary:    Converts flat ASCII text to man page forma
Name:       txt2man
Version:    1.5.6
Release:    1
License:    GPL-2.0
Group:      Development/Tools/Doc Generators
URL:        http://mvertes.free.fr/ 

BuildArch:  noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-build
Source1:    txt2man
Source2:    txt2man.1
Source3:    Changelog.txt
Source4:    src2man
Source5:    src2man.1
Source6:    bookman
Source7:    bookman.1
Requires:	gawk

%description
Txt2man converts flat ASCII text to man page format. It is a shell
script using gnu awk, that should run on any Unix like system.

%prep

%build

%install
install -d -m 0755 %{buildroot}/%{_bindir}
install -d -m 0755 %{buildroot}/%{_mandir}/man1
install -d -m 0755 %{buildroot}/%{_docdir}/%{name}
install -m 0755 %{SOURCE1} %{buildroot}/%{_bindir}/%{name}
install -m 0644 %{SOURCE2} %{buildroot}/%{_mandir}/man1/
install -m 0755 %{SOURCE4} %{buildroot}/%{_bindir}/src2man
install -m 0644 %{SOURCE5} %{buildroot}/%{_mandir}/man1/
install -m 0755 %{SOURCE6} %{buildroot}/%{_bindir}/bookman
install -m 0644 %{SOURCE7} %{buildroot}/%{_mandir}/man1/
install -m 0644 %{SOURCE3} %{buildroot}/%{_docdir}/%{name}/

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, -)
%{_bindir}/%{name}
%{_bindir}/src2man
%{_bindir}/bookman
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/Changelog.txt
%doc %{_mandir}/man1/%{name}.1*
%doc %{_mandir}/man1/src2man.1*
%doc %{_mandir}/man1/bookman.1*

%changelog
* Sat May 1 2011 Stefan Jakobs <stefan.jakobs@rus.uni-stuttgart.de> - 1.5.6
- initial release