indent/indent.spec

86 lines
2.3 KiB
RPMSpec
Raw Normal View History

Name: indent
Version: 2.2.11
Release: 1mamba
Summary: A flexible tool to indent C programs
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.gnu.org/directory/GNU/indent.html
Source: http://ftp.de.debian.org/debian/pool/main/i/indent/indent_%{version}.orig.tar.gz
#Source: http://ftp.gnu.org/gnu/indent/indent-%{version}.tar.gz
Patch: %{name}-2.2.9-gcc4fix.patch
Patch1: indent-2.2.11-texinfo-5.0.patch
License: GPL
Requires(post):%{__install_info}
BuildRequires: gettext-devel
BuildRequires: tetex
## AUTOBUILDREQ-BEGIN
BuildRequires: bash
BuildRequires: glibc-devel
BuildRequires: texinfo
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# FIXME: 'texi2pdf' missing
%description
Indent changes the appearance of a C program by inserting or deleting whitespace.
It also has options for controlling the alignment of braces and declarations, program indenting, formatting of both C and C++ comments, and other stylistic parameters.
%prep
%setup -q
%patch -p1
%patch1 -p1
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name}
# remove duplicate file
rm %{buildroot}%{_prefix}/doc/indent/indent.html
%post
%install_info %{name}.info
%preun
%uninstall_info %{name}.info
exit 0
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/indent
%{_bindir}/texinfo2man
%{_datadir}/info/*
%{_datadir}/man/man1/*
%doc AUTHORS COPYING doc/indent.html
#ChangeLog* NEWS README doc/indent.html
%changelog
* Tue Jan 29 2013 Automatic Build System <autodist@mambasoft.it> 2.2.11-1mamba
- update to 2.2.11
* Sun Jul 08 2012 Automatic Build System <autodist@mambasoft.it> 2.2.10-1mamba
- update to 2.2.10
* Tue Dec 11 2007 Aleph0 <aleph0@openmamba.org> 2.2.9-4mamba
- fixed license
* Wed Sep 28 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.9-3qilnx
- specfile fixes: use %%find_lang, install/uninstall info files
* Mon Sep 26 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.2.9-2qilnx
- bug with gcc4 fixed
* Thu Feb 12 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.9-1qilnx
- first build