From 69d36613f55e7d178bb5981622cdf5dd8543a691 Mon Sep 17 00:00:00 2001 From: kloczek Date: Thu, 31 Dec 1998 12:19:37 +0000 Subject: [PATCH] - revision up to 7, - added flex info pages and %post, %postun and {un}registering info pages. Changed files: flex.spec -> 1.4 --- flex.spec | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/flex.spec b/flex.spec index 0d073eb..a916685 100644 --- a/flex.spec +++ b/flex.spec @@ -5,10 +5,11 @@ Summary(pl): GNU szybki generator analizatora sk Summary(tr): GNU sözdizim çözümleyici Name: flex Version: 2.5.4a -Release: 6 +Release: 7 Copyright: GPL Group: Development/Tools Source: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz +Patch0: flex-info.patch Buildroot: /tmp/%{name}-%{version}-root %description @@ -44,35 +45,54 @@ a %prep %setup -q -n %{name}-2.5.4 +%patch0 -p1 %build -CFLAGS="$RPM_OPT_FLAGS" \ +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ ./configure \ --prefix=/usr -make LDFLAGS="-s" +make + +makeinfo MISC/texinfo/flex.texi %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/{bin,include,man/man1} +install -d $RPM_BUILD_ROOT/usr/{bin,info,include,man/man1} + +install flex.info* $RPM_BUILD_ROOT/usr/info make prefix=$RPM_BUILD_ROOT/usr install cd $RPM_BUILD_ROOT/usr/bin ln -sf flex lex -gzip -9nf $RPM_BUILD_ROOT/usr/man/man1/* +gzip -9nf $RPM_BUILD_ROOT/usr/{info/*,man/man1/*} + +%post +/sbin/install-info /usr/info/flex.info.gz /etc/info-dir + +%preun +if [ $1 = 0 ]; then + /sbin/install-info --delete /usr/info/flex.info.gz /etc/info-dir +fi + +%clean +rm -rf $RPM_BUILD_ROOT %files %defattr(644, root, root, 755) %doc NEWS README %attr(755, root, root) /usr/bin/* %attr(644, root, man) /usr/man/man1/* +/usr/info/flex* /usr/lib/*.a /usr/include/*.h -%clean -rm -rf $RPM_BUILD_ROOT - %changelog +* Tue Dec 29 1998 Tomasz K³oczko + [2.5.4a-7] +- added flex info pages and %post, %postun and + {un}registering info pages. + * Mon Dec 28 1998 Tomasz K³oczko [2.5.4a-6] - added gzipping man pages, @@ -83,6 +103,7 @@ rm -rf $RPM_BUILD_ROOT - removed COPYING from %doc (copyright statment is in Copyright field), * Sun Jun 14 1998 Wojtek ¦lusarczyk + [2.5.4a-5] - added buildroot support, - build from non root's account, - minor modifications of spec file, -- 2.44.0