-NFY but close to be done.
authordobrek <dobrek@pld-linux.org>
Mon, 19 Mar 2001 20:52:20 +0000 (20:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dqs.spec -> 1.2

dqs.spec

index f20bf34..825ee97 100644 (file)
--- a/dqs.spec
+++ b/dqs.spec
@@ -1,37 +1,53 @@
 Summary:       Distributet Quening System
-Name:          DQS
+Name:          dqs
 Version:       3.3.1
 Release:       1
 Group:         System/Administration
 Copyright:     GPL
 Vendor:         PLD
-Source0:       ftp://ftp2.scri.fsu.edu/pub/dqs/%{name}-%{version}.tgz
+Source0:       ftp://ftp2.scri.fsu.edu/pub/dqs/DQS-%{version}.tgz
+Source1:        dqs-PLD-dqs.h
+Source2:       dqs-PLD-def.h
+Source3:       dqs-PLD-resolve_file
+Source4:       dqs-PLD-Makefile
+Source5:       dqs-PLD-conf_file
+Source6:       dqs-init
+Patch0:                dqs-install.patch
 URL:           http://www.scri.fsu.edu/~pasko/dqs.html
-#BuildPrereq:  -
-#Requires:     -
-#Prereq:               -
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-
 Distributet quening system
+
 %prep
-%setup  -q
+%setup  -q -n DQS3
+cp %{SOURCE1} SRC/dqs.h
+cp %{SOURCE2} SRC/def.h
+cp %{SOURCE4} Makefile
+%patch0 -p1
 
 %build
-autoheader;autoconf;automake; 
-
-LDFLAGS="-s" ; export LDFLAGS
-%configure 
-
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*.info* \
-       $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       README ChangeLog 
+make  DESTDIR=$RPM_BUILD_ROOT installall
+
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/resolve_file
+install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf_file
+
+install MAN/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
+
+install -d $RPM_BUILD_ROOT/var/spool/%{name}/common_dir
+install -d $RPM_BUILD_ROOT/var/log/%{name}
+install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+install DOC/user_guide/*.html $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+install COPYRIGHT README ChangeLog KnownBugs ReleaseNotes_3.3.1 ToDo  \
+       $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+gzip -n9  $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{COPYRIGHT,README,ChangeLog,KnownBugs,ReleaseNotes_3.3.1,ToDo}
+
 
 %pre
 
@@ -46,5 +62,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/* 
+%doc %{_mandir}/man1
+%doc %{_docdir}/%{name}-%{version}
+%dir /var/spool/%{name}/common_dir
+%dir /var/log/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/*
+
 
 %changelog
This page took 0.030268 seconds and 4 git commands to generate.