Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 5c024fdc4ec3d1b6d3b4942aef727d1e > files > 2

indent-2.2.7-1mdk.src.rpm

%define release 1mdk
%define version 2.2.7

Summary: A GNU program for formatting C code.
Name: indent
Version: %{version}
Release: %{release}
License: GPL
Group: Development/C
Source: ftp://ftp.gnu.org/pub/gnu/indent/%{name}-%{version}.tar.bz2
URL: http://home.hccnet.nl/d.ingamells/beautify.html
Prereq: /sbin/install-info
BuildRoot: %{_tmppath}/indent-root

%description
Indent is a GNU program for beautifying C code, so that it is easier to
read.  Indent can also convert from one C writing style to a different
one.  Indent understands correct C syntax and tries to handle incorrect
C syntax.

Install the indent package if you are developing applications in C and
you'd like to format your code automatically.

%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
mkdir -p $RPM_BUILD_ROOT%{_docdir}
mkdir -p $RPM_BUILD_ROOT%{_infodir}
install -m644 man/indent.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -m644 doc/indent.info $RPM_BUILD_ROOT%{_infodir}
install -m644 doc/indent.html $RPM_BUILD_ROOT%{_docdir}

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/install-info %{_infodir}/indent.info.bz2 %{_infodir}/dir --entry="* indent: (indent).				Program to format source code."

%preun
if [ "$1" = 0 ]; then
	/sbin/install-info --delete %{_infodir}/indent.info.bz2 %{_infodir}/dir --entry="* indent: (indent).                 	 Program to format source code."
fi

%files
%defattr(-,root,root)
%doc indent.html AUTHORS COPYING NEWS ChangeLog README
%{_bindir}/indent
%{_mandir}/man1/indent.1*
%{_infodir}/indent.info*

%changelog
* Mon Jan 14 2002 Florin <florin@mandrakesoft.com> 2.2.7-1mdk
- 2.2.7
- New Url tag
- fix the man, info and html page install

* Mon Nov 19 2001 Florin <florin@mandrakesoft.com> 2.2.6-2mdk
- s/Copyright/License
- add doc sections
- add url

* Sun Nov 19 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.6-1mdk
- bump up a new and shiny source to cooker.
- really use spechelper. (denosucks)

* Tue Aug 29 2000 Florin Grad <florin@mandrakesoft.com> 2.2.4-3mdk
- adding the macros

* Thu Apr 4 2000 Denis Havlik <denis@mandrakesoft.com> 2.2.4-2mdk
- new group: Development/C
- spechelper 

* Wed Nov 10 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- 2.2.4.

* Fri Nov 5 1999 Damien Krotkine <damien@mandrakesoft.com>
- Mandrake release

* Sun Aug  1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- 2.2.0

* Thu Jul 15 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- Insert PO-Traduction.
- 2.1.1

* Thu Jul 08 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- 2.1.0

* Tue May 11 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions
- handle RPM_OPT_FLAGS

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 11)

* Fri Dec 18 1998 Bill Nottingham <notting@redhat.com>
- build for 6.0 tree

* Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
- build root

* Thu May 07 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Tue Oct 21 1997 Otto Hammersmith <otto@redhat.com>
- use install-info

* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
- built against glibc