SPECS: pmk.spec - create config file

glen glen at pld-linux.org
Wed Jun 22 12:08:24 CEST 2005


Author: glen                         Date: Wed Jun 22 10:08:24 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- create config file

---- Files affected:
SPECS:
   pmk.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/pmk.spec
diff -u SPECS/pmk.spec:1.2 SPECS/pmk.spec:1.3
--- SPECS/pmk.spec:1.2	Wed Jun 22 12:07:14 2005
+++ SPECS/pmk.spec	Wed Jun 22 12:08:19 2005
@@ -1,11 +1,10 @@
 # $Revision$, $Date$
 # TODO
-# - better summary?
 # - mandir should be passed in build not install (pmk bug?)
-Summary:	The meaning of PMK is "Pre Make Kit".
+Summary:	Pre Make Kit
 Name:		pmk
 Version:	0.9.3
-Release:	0.1
+Release:	0.2
 Epoch:		0
 License:	BSD
 Group:		Development/Building
@@ -15,9 +14,9 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-The meaning of PMK is "Pre Make Kit". It started as an alternative to
-GNU Autoconf for POSIX platforms. Now, it's also an alternative to GNU
-Libtool and pkg-config.
+The pmk project tries to provide an alternative to GNU autoconf, GNU
+libtool and pkg-config. It also provides a basic BSD install like tool
+and a source scanner to help building of pmkfiles.
 
 Goals:
 - Make it easy to use for both users and developers.
@@ -32,27 +31,37 @@
 %setup -q
 
 %build
-PREFIX=%{_prefix} \
 SYSCONFDIR=%{_sysconfdir} \
 DATADIR=%{_datadir} \
 CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
-sh pmkcfg.sh
+sh pmkcfg.sh -p %{_prefix}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
 %{__make} install \
 	MANDIR=%{_mandir} \
 	DESTDIR=$RPM_BUILD_ROOT
 
+> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
+
+%post
+# due HW specific vars, need to do it on target host
+%{_bindir}/pmksetup -u PREFIX=%{_prefix} > /dev/null
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS BONUS README BUGS STATUS CREDITS TODO Changelog INSTALL LICENSE
+%doc doc/ samples/
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
+
 %attr(755,root,root) %{_bindir}/pmk
 %attr(755,root,root) %{_bindir}/pmkinstall
 %attr(755,root,root) %{_bindir}/pmkpc
@@ -72,9 +81,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/06/22 10:08:19  glen
+- create config file
+
 Revision 1.2  2005/06/22 10:07:14  darekr
 - missing dir
 
 Revision 1.1  2005/06/22 09:53:43  glen
 - alternative to autoconf/libtool/pkgconfig on POSIX platforms
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pmk.spec?r1=1.2&r2=1.3&f=u




More information about the pld-cvs-commit mailing list