SPECS: wpkg.spec - as all files are needed to customize by user, m...

glen glen at pld-linux.org
Sun Nov 13 17:57:37 CET 2005


Author: glen                         Date: Sun Nov 13 16:57:37 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- as all files are needed to customize by user, moved everything to /etc where config files reside

---- Files affected:
SPECS:
   wpkg.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SPECS/wpkg.spec
diff -u SPECS/wpkg.spec:1.17 SPECS/wpkg.spec:1.18
--- SPECS/wpkg.spec:1.17	Sun Nov 13 17:17:28 2005
+++ SPECS/wpkg.spec	Sun Nov 13 17:57:32 2005
@@ -3,7 +3,7 @@
 Summary(pl):	WPKG - a Windows Packager - instalator pakietów dla Windows
 Name:		wpkg
 Version:	0.9.1
-Release:	1
+Release:	1.1
 Epoch:		0
 License:	GPL v2
 Group:		Applications
@@ -15,9 +15,12 @@
 Source4:	%{name}-install-service.bat
 Source5:	%{name}-start.bat
 URL:		http://wpkg.org/
+Requires:	samba
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_sysconfdir /etc/%{name}
+
 %description
 WPKG is an automated software deployment, upgrade and removal script
 for Windows. It can be used to push/pull software packages, such as
@@ -42,22 +45,17 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/%{name}/files,%{_sysconfdir}/{%{name},samba}}
+install -d $RPM_BUILD_ROOT{/etc/samba,%{_sysconfdir}/files}
 
-install wpkg.js		$RPM_BUILD_ROOT%{_datadir}/%{name}/wpkg.js
-install hosts.xml 	$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hosts.xml
-install packages.xml	$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/packages.xml
-install profiles.xml	$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/profiles.xml
-install %{SOURCE1}	$RPM_BUILD_ROOT%{_sysconfdir}/samba
-install %{SOURCE2}	$RPM_BUILD_ROOT%{_datadir}/%{name}/files
-install %{SOURCE3}	$RPM_BUILD_ROOT%{_datadir}/%{name}/files
-install %{SOURCE4}	$RPM_BUILD_ROOT%{_datadir}/%{name}/files
-install %{SOURCE5}	$RPM_BUILD_ROOT%{_datadir}/%{name}
-
-cd $RPM_BUILD_ROOT%{_datadir}/%{name}
-ln -s %{_sysconfdir}/%{name}/hosts.xml hosts.xml
-ln -s %{_sysconfdir}/%{name}/packages.xml packages.xml
-ln -s %{_sysconfdir}/%{name}/profiles.xml profiles.xml
+install wpkg.js		$RPM_BUILD_ROOT%{_sysconfdir}/wpkg.js
+install hosts.xml 	$RPM_BUILD_ROOT%{_sysconfdir}/hosts.xml
+install packages.xml	$RPM_BUILD_ROOT%{_sysconfdir}/packages.xml
+install profiles.xml	$RPM_BUILD_ROOT%{_sysconfdir}/profiles.xml
+install %{SOURCE1}	$RPM_BUILD_ROOT/etc/samba
+install %{SOURCE2}	$RPM_BUILD_ROOT%{_sysconfdir}/files
+install %{SOURCE3}	$RPM_BUILD_ROOT%{_sysconfdir}/files
+install %{SOURCE4}	$RPM_BUILD_ROOT%{_sysconfdir}/files
+install %{SOURCE5}	$RPM_BUILD_ROOT%{_sysconfdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -65,8 +63,14 @@
 %files
 %defattr(644,root,root,755)
 %doc README TODO LICENSE
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
-%{_datadir}/%{name}
+%dir %{_sysconfdir}
+%{_sysconfdir}/*.js
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.xml
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.bat
+%dir %{_sysconfdir}/files
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/files/*
+
+%config(noreplace) %verify(not md5 mtime size) /etc/samba/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -74,6 +78,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2005/11/13 16:57:32  glen
+- as all files are needed to customize by user, moved everything to /etc where config files reside
+
 Revision 1.17  2005/11/13 16:17:28  darekr
 - cleanup
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/wpkg.spec?r1=1.17&r2=1.18&f=u




More information about the pld-cvs-commit mailing list