cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cons RPM spec file is missing defattr directives.


From: Aleksey Nogin
Subject: Cons RPM spec file is missing defattr directives.
Date: Tue, 06 Nov 2001 17:30:05 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5+) Gecko/20011101

Currently, the cons RPMs insist on installing all cons files as user
"rv" (and complains if user "rv" does not exist), not "root" as it
should be. This happens because the spec file does not have an
appropriate %defattr directive. Here is the fix:

Index: pkg/rpm/cons.spec.proto
===================================================================
RCS file: /cvs/cons/pkg/rpm/cons.spec.proto,v
retrieving revision 1.9
diff -u -r1.9 cons.spec.proto
--- pkg/rpm/cons.spec.proto     2001/05/25 17:04:52     1.9
+++ pkg/rpm/cons.spec.proto     2001/11/04 18:46:02
@@ -87,11 +87,13 @@
  cp -p -r test/t test/Algorithm test/Test
$RPM_BUILD_ROOT__RPM_LIBDIR__/test

  %files
+%defattr(-,root,root)
  %doc __RPM_DOCS__
  %doc __RPM_MANDIR__/__CONS_MAN__
  __RPM_BINDIR__/cons

  %files test
+%defattr(-,root,root)
  %doc __RPM_TEST_DOCS__
  %doc __RPM_MANDIR__/__CONS_TEST_MAN__
  /usr/lib/cons-__VERSION__/test

Aleksey
--------------------------------------------------------------
Home Page: http://nogin.org/
E-Mail: address@hidden (office), address@hidden (home)
Office: Upson 4139, tel: 1-607-255-4934




reply via email to

[Prev in Thread] Current Thread [Next in Thread]