]> git.pld-linux.org Git - packages/cdecl.git/commitdiff
[2.5-10]
authorkloczek <kloczek@pld-linux.org>
Thu, 15 Apr 1999 15:01:28 +0000 (15:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added passing $RPM_OPT_FLAGS on compile time,
- added gzipping man pages,
- compile against ncurses,
- cosmetic changes for common l&f.

Changed files:
    cdecl.spec -> 1.2

cdecl.spec

index 50de37af8e9ad21fea3c9abd152b162c4b4f172f..3909c5a9d0072032a36837db80d22ce114d03c12 100644 (file)
@@ -1,17 +1,16 @@
-Summary: Programs for encoding and decoding C and C++ function declarations.
-Name: cdecl
-Version: 2.5
-Release: 9
-Copyright: distributable
-Group: Development/Tools
-Source: ftp://sunsite.unc.edu/pub/Linux/devel/lang/c/cdecl-2.5.tar.gz
-Patch: cdecl-2.5.misc.patch
-BuildRoot: /var/tmp/cdecl-root
+Summary:       Programs for encoding and decoding C and C++ function declarations.
+Name:          cdecl
+Version:       2.5
+Release:       10
+Copyright:     distributable
+Group:         Development/Tools
+Source:                ftp://sunsite.unc.edu/pub/Linux/devel/lang/c/%{name}-%{version}.tar.gz
+Patch:         cdecl-misc.patch
+BuildRoot:     /tmp/%{name}-%{version}-root
 
 %description
-The cdecl package includes the cdecl and c++decl utilities, which are
-used to translate English to C or C++ function declarations and vice
-versa.
+The cdecl package includes the cdecl and c++decl utilities, which are used
+to translate English to C or C++ function declarations and vice versa.
 
 You should install the cdecl package if you intend to do C and/or C++
 programming.
@@ -21,26 +20,33 @@ programming.
 %patch -p1
 
 %build
-make
+make CFLAGS="$RPM_OPT_FLAGS -DUSE_READLINE -s" \
+       LIBS="-lreadline -lncurses"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/usr/{bin,man/man1}
+install -d $RPM_BUILD_ROOT/usr/{bin,man/man1}
 
 make BINDIR=$RPM_BUILD_ROOT/usr/bin MANDIR=$RPM_BUILD_ROOT/usr/man/man1 \
        install
 
+gzip -9nf $RPM_BUILD_ROOT/usr/man/man1/*
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root)
-/usr/bin/cdecl
-/usr/bin/c++decl
-/usr/man/man1/cdecl.1
-/usr/man/man1/c++decl.1
+%defattr(644,root,root,755)
+%attr(755,root,root) /usr/bin/*
+/usr/man/man1/*
 
 %changelog
+* Thu Apr 15 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
+  [2.5-10]
+- added passing $RPM_OPT_FLAGS on compile time,
+- added gzipping man pages,
+- compile against ncurses.
+
 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
 - auto rebuild in the new build environment (release 9)
 
This page took 0.034658 seconds and 4 git commands to generate.