Re: ANNOUNCEMENT: /bin/lsb_release V1.3
"George Kraft/Austin/IBM" <gk4@us.ibm.com> writes:
> The source, RPM packages, and DEB packages can be downloaded from:
would be possible to make this patch on the spec file of the rpm :
--- lsb-release.spec.old Thu Nov 2 08:58:52 2000
+++ lsb-release.spec Thu Nov 2 09:03:30 2000
@@ -8,7 +8,6 @@
Name: lsb-release
Version: 1.3
Release: 1
-Prefix: /
Copyright: GPL
Source: lsb-release-1.3.tgz
Group: System/Tools
@@ -16,7 +15,8 @@
Vendor: Linux Standard Base
Packager: George Kraft IV <gk4@us.ibm.com>
BuildArchitectures: noarch
-BuildRoot: /var/tmp/%{name}-root
+BuildRoot: %{_tmppath}/%{name}-root
+Prefix: %{_prefix}
%description
Linux Standard Base (LSB) tools.
@@ -30,19 +30,23 @@
make
%install
-make prefix=${RPM_BUILD_ROOT}%{prefix} mandir=${RPM_BUILD_ROOT}/usr/share/man/ install
-mkdir -p ${RPM_BUILD_ROOT}%{prefix}/usr/share/doc
-cp lsb-release.template ${RPM_BUILD_ROOT}%{prefix}/usr/share/doc/
+make prefix=%buildroot%{prefix} mandir=%buildroot/%{_mandir} install
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%{prefix}/bin/lsb_release
-%{prefix}/usr/share/man/man1/lsb_release.1.gz
-%{prefix}/usr/share/doc/lsb-release.template
+%defattr(-,root,root)
+%doc lsb-release.template
+%{_bindir}/lsb_release
+%{_mandir}/man1/lsb_release.1*
%changelog
+* Thu Nov 2 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com>
+- add %defattr to fix build as non root.
+- fix %file for non rh distribution.
+- macros.
+
* Mon Oct 30 2000 Christopher Yeoh <cyeoh@linuxcare.com>
- Repackage so lsb_release goes in /bin
--
MandrakeSoft Inc http://www.chmouel.org
--Chmouel
Reply to: