]> git.pld-linux.org Git - packages/flex.git/commitdiff
- revision up to 7,
authorkloczek <kloczek@pld-linux.org>
Thu, 31 Dec 1998 12:19:37 +0000 (12:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added flex info pages and %post, %postun and
  {un}registering info pages.

Changed files:
    flex.spec -> 1.4

flex.spec

index 0d073eb0ef6a12494a000cf84d082cd6abc5e874..a916685fb907f3505de9faf7c4916ce65b0a2ba2 100644 (file)
--- 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 <kloczek@rudy.mif.pg.gda.pl>
+  [2.5.4a-7]
+- added flex info pages and %post, %postun and
+  {un}registering info pages.
+
 * Mon Dec 28 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
   [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 <wojtek@shadow.eu.org>
+  [2.5.4a-5]
 - added buildroot support,
 - build from non root's account,
 - minor modifications of spec file,
This page took 0.077689 seconds and 4 git commands to generate.