]> git.deb.at Git - pkg/abook.git/commitdiff
cleanup
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 8 Mar 2004 06:15:52 +0000 (06:15 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 8 Mar 2004 06:15:52 +0000 (06:15 +0000)
abook.spec.in

index f5962cca696a60eac461f83f4d37ce6a523cab02..445f32f87f204a013db351da5f933807215f3f9a 100644 (file)
@@ -1,30 +1,36 @@
-Summary: Text-based addressbook program
-Name: @PACKAGE@
-Version: @VERSION@
-Release: 1
-Copyright: GPL
-Group: Utilities
-Source: http://prdownloads.sourceforge.net/abook/%{name}-%{version}.tar.gz
-Url: http://abook.sourceforge.net/
-BuildPreReq: ncurses-devel readline-devel
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Summary:       Text-based addressbook program
+Name:          @PACKAGE@
+Version:       @VERSION@
+Release:       1
+Copyright:     GPL
+Group:         Utilities
+Source:                http://prdownloads.sourceforge.net/abook/%{name}-%{version}.tar.gz
+URL:           http://abook.sourceforge.net/
+BuildPreReq:   ncurses-devel readline-devel
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
 
 %description
 Abook is a text-based addressbook program designed to
 use with mutt mail client.
 
+
 %prep
 %setup -q
 
+
 %build
 %configure
-make
+make %{_smp_mflags}
+
 
 %install
 %makeinstall
 
+
 %clean
-rm -rf "$RPM_BUILD_ROOT"
+[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf -- "%{buildroot}"
+
 
 %files
 %defattr(-,root,root)
@@ -33,6 +39,7 @@ rm -rf "$RPM_BUILD_ROOT"
 %{_mandir}/man1/abook.*
 %{_mandir}/man5/abookrc.*
 
+
 %changelog
 * Mon Mar 11 2002 Jaakko Heinonen <jheinonen@users.sourceforge.net>
 - rewrote the spec file originally written by