SPECS: rpm-test_scripts_triggers.spec (NEW) - skeleton for testing...

twittner twittner at pld-linux.org
Fri Jun 24 18:09:07 CEST 2005


Author: twittner                     Date: Fri Jun 24 16:09:07 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- skeleton for testing rpm's scripts and triggers sequence, $1 $2 values,
  etc. I hope that will be helpful.

---- Files affected:
SPECS:
   rpm-test_scripts_triggers.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/rpm-test_scripts_triggers.spec
diff -u /dev/null SPECS/rpm-test_scripts_triggers.spec:1.1
--- /dev/null	Fri Jun 24 18:09:07 2005
+++ SPECS/rpm-test_scripts_triggers.spec	Fri Jun 24 18:09:01 2005
@@ -0,0 +1,155 @@
+# $Revision$, $Date$
+#
+%define	_ver	%{!?ver:1}%{?ver:%ver}
+#
+Summary:	testing of rpm's scripts and triggers
+Summary(pl):	testowanie skryptów i wyzwalaczy rpm'a
+Name:		rpm-test_scripts_triggers
+Version:	%{_ver}
+Release:	0.1
+Epoch:		0
+License:	GPL
+Group:		Development/Tools
+Source0:	http://twittner.host.sk/files/%{name}/%{name}.tar.gz
+# Source0-md5:	961d3479998c046fe2512e111bdd5b9b
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+testing of rpm's scripts and triggers.
+
+%description -l pl
+testowanie skryptów i wyzwalaczy rpm'a.
+
+%package first
+Summary:	testing of rpm's scripts and triggers - first subpackage
+Summary(pl):	testowanie skryptów i wyzwalaczy rpm'a - pierwszy podpakiet
+Group:		Development/Tools
+Obsoletes:	%{name}-second
+
+%description first
+testing of rpm's scripts and triggers - first subpackage which
+obsoletes %{name}-second.
+
+%description first -l pl
+testowanie skryptów i wyzwalaczy rpm'a - pierwszy podpakiet obsoletujący
+%{name}-second.
+
+%package second
+Summary:	testing of rpm's scripts and triggers - second subpackage
+Summary(pl):	testowanie skryptów i wyzwalaczy rpm'a - drugi podpakiet
+Group:		Development/Tools
+Obsoletes:	%{name}-first
+
+%description second
+testing of rpm's scripts and triggers - second subpackage which
+obsoletes %{name}-first.
+
+%description second -l pl
+testowanie skryptów i wyzwalaczy rpm'a - drugi podpakiet obsoletujący
+%{name}-first.
+
+%prep
+%setup -q -n %{name}
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+###########################################################
+%pre
+echo '#MAIN PACKAGE#' pre: \$1: ${1}, \$2: $2
+
+%post
+echo '#MAIN PACKAGE#' post: \$1: ${1}, \$2: $2
+
+%preun
+echo '#MAIN PACKAGE#' preun: \$1: ${1}, \$2: $2
+
+%postun
+echo '#MAIN PACKAGE#' postun: \$1: ${1}, \$2: $2
+
+###########################################################
+%pre first
+echo '#FIRST SUBPACKAGE#' pre: \$1: ${1}, \$2: $2
+
+%post first
+echo '#FIRST SUBPACKAGE#' post: \$1: ${1}, \$2: $2
+
+%preun first
+echo '#FIRST SUBPACKAGE#' preun: \$1: ${1}, \$2: $2
+
+%postun first
+echo '#FIRST SUBPACKAGE#' postun: \$1: ${1}, \$2: $2
+
+###########################################################
+%pre second
+echo '#SECOND SUBPACKAGE#' pre: \$1: ${1}, \$2: $2
+
+%post second
+echo '#SECOND SUBPACKAGE#' post: \$1: ${1}, \$2: $2
+
+%preun second
+echo '#SECOND SUBPACKAGE#' preun: \$1: ${1}, \$2: $2
+
+%postun second
+echo '#SECOND SUBPACKAGE#' postun: \$1: ${1}, \$2: $2
+
+###########################################################
+%triggerin -- %{name}
+echo '#MAIN PACKAGE#' triggerin: \$1: ${1}, \$2: $2
+
+%triggerun -- %{name}
+echo '#MAIN PACKAGE#' triggerun: \$1: ${1}, \$2: $2
+
+%triggerpostun -- %{name}
+echo '#MAIN PACKAGE#' triggerpostun: \$1: ${1}, \$2: $2
+
+###########################################################
+%triggerin first -- %{name}-second
+echo '#FIRST SUBPACKAGE#' triggerin: \$1: ${1}, \$2: $2
+
+%triggerun first -- %{name}-second
+echo '#FIRST SUBPACKAGE#' triggerun: \$1: ${1}, \$2: $2
+
+%triggerpostun first -- %{name}-second
+echo '#FIRST SUBPACKAGE#' triggerpostun: \$1: ${1}, \$2: $2
+
+###########################################################
+%triggerin second -- %{name}-first
+echo '#SECOND SUBPACKAGE#' triggerin: \$1: ${1}, \$2: $2
+
+%triggerun second -- %{name}-first
+echo '#SECOND SUBPACKAGE#' triggerun: \$1: ${1}, \$2: $2
+
+%triggerpostun second -- %{name}-first
+echo '#SECOND SUBPACKAGE#' triggerpostun: \$1: ${1}, \$2: $2
+
+###########################################################
+
+%files
+%defattr(644,root,root,755)
+%doc README
+
+%files first
+%defattr(644,root,root,755)
+%doc README
+
+%files second
+%defattr(644,root,root,755)
+%doc README
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/06/24 16:09:01  twittner
+- skeleton for testing rpm's scripts and triggers sequence, $1 $2 values,
+  etc. I hope that will be helpful.
+
================================================================



More information about the pld-cvs-commit mailing list