SPECS: oracle-xe.spec (NEW) - initial - NFY (!)

pawelz pawelz at pld-linux.org
Fri Mar 13 20:36:34 CET 2009


Author: pawelz                       Date: Fri Mar 13 19:36:34 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial
- NFY (!)

---- Files affected:
SPECS:
   oracle-xe.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/oracle-xe.spec
diff -u /dev/null SPECS/oracle-xe.spec:1.1
--- /dev/null	Fri Mar 13 20:36:34 2009
+++ SPECS/oracle-xe.spec	Fri Mar 13 20:36:29 2009
@@ -0,0 +1,92 @@
+# $Revision$, $Date$
+
+%define         _enable_debug_packages                  0
+%define         no_install_post_strip                   1
+%define         no_install_post_chrpath                 1
+
+%define		oracle_rel 1.0
+%define		oracle_ver 10.2.0
+%define		oracle_home /usr/lib/oracle/xe/app/oracle/product/%{oracle_ver}
+Summary:	Oracle XE
+Summary(pl.UTF-8):	Wyrocznia XE
+Name:		oracle-xe
+Version:	%{oracle_ver}.1
+Release:	0.1
+License:	Proprietary (not distributable)
+Group:		Applications
+Source0:	%{name}-%{version}-%{oracle_rel}.i386.rpm
+# NoSource0-md5:	707641df1e51320607ba9b0a7b19fb3d
+NoSource:       0
+URL:		-
+%if %{with initscript}
+BuildRequires:	rpmbuild(macros) >= 1.228
+Requires(post,preun):	/sbin/chkconfig
+%endif
+#BuildRequires:	-
+#BuildRequires:	autoconf
+#BuildRequires:	automake
+#BuildRequires:	intltool
+#BuildRequires:	libtool
+#Requires(postun):	-
+#Requires(pre,post):	-
+#Requires(preun):	-
+#Requires:	-
+#Provides:	-
+Provides:	group(dba)
+Provides:	user(oracle)
+#Obsoletes:	-
+#Conflicts:	-
+ExclusiveArch:	%{ix86}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Oracle XE.
+
+%description -l pl.UTF-8
+Wyrocznia XE.
+
+%prep
+%setup -c -T
+
+rpm2cpio %{SOURCE0} | cpio -dimu
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{oracle_home}
+
+cp -a usr/lib/oracle/xe/app/oracle/product/%{oracle_ver} $RPM_BUILD_ROOT%{oracle_home} 
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+%groupadd -g 234 -r -f dba
+%useradd -u 234 -r -d /usr/lib/oracle/xe -s /bin/false -c "Oracle" -g dba oracle
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+	%service -q %{name} stop
+	/sbin/chkconfig --del %{name}
+fi
+
+%postun
+
+%files
+%defattr(644,root,root,755)
+%{oracle_home}
+%doc usr/share/doc/oracle_xe/*
+
+%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  2009/03/13 19:36:29  pawelz
+- initial
+- NFY (!)
+
================================================================


More information about the pld-cvs-commit mailing list