From d06216dd68377122d3b432a1b95dea9b2ddf18fe Mon Sep 17 00:00:00 2001 From: japes Date: Tue, 25 Nov 2008 13:29:23 +0000 Subject: [PATCH] Needed by the script create_gosa_rpm.sh. Has to be stored in the same directory. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13027 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/redhat/gosa_2_6_plugins.templ | 64 +++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 gosa-core/redhat/gosa_2_6_plugins.templ diff --git a/gosa-core/redhat/gosa_2_6_plugins.templ b/gosa-core/redhat/gosa_2_6_plugins.templ new file mode 100644 index 000000000..584398f71 --- /dev/null +++ b/gosa-core/redhat/gosa_2_6_plugins.templ @@ -0,0 +1,64 @@ +# Some sort of "detection" of suse +%{?suse_version:%define suse 1} +%{!?suse_version:%define suse 0} + +# Define Packagename, e.g.: +# rpmbuild --rebuild --define 'sourcename gosa' gosa.srpm +%{!?sourcename:%define sourcename %{name}-%{version}} + +# +# Distribution +# +Summary: @@DESCRIPTION@@ +Name: gosa-plugin-@@NAME@@ +Version: @@VERSION@@ +Release: @@RELEASE@@ +License: GPL +Source: ftp://oss.GONICUS.de/pub/gosa/%{sourcename}.tar.bz2 +URL: @@HOMEPAGE@@ +Group: System/Administration +Vendor: GONICUS GmbH +Packager: @@AUTHOR@@ +Buildarch: noarch +%if %{suse} +Requires: gosa >= 2.6.0 @@DEPENDS@@ +%else +Requires: gosa >= 2.6.0 @@DEPENDS@@ +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildArch: noarch + +%define confdir /etc/%{name} + +%if %{suse} + %{echo:Building SuSE rpm} + %define docdir /usr/share/doc/packages/gosa +%else + %{echo:Building other rpm} + %define webconf /etc/httpd/conf.d/ + %define docdir /usr/share/doc/gosa-%{version} +%endif + +%description +@@DESCRIPTION@@ + +%prep +%setup -q -n %{sourcename} + +%build + +%install +# Create buildroot +mkdir -p %{buildroot}/usr/share/gosa/plugins/%{name} +mv ./* %{buildroot}/usr/share/gosa/plugins/%{name} +#cp -ua ./@@NAME@@* %{buildroot}/usr/share/gosa/plugins/@@NAME@@ + +%post +/usr/sbin/update-gosa + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%attr (-,root,root) /usr/share/gosa/plugins/%{name} -- 2.30.2