summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b1605b)
raw | patch | inline | side by side (parent: 4b1605b)
author | japes <japes@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Nov 2008 13:29:23 +0000 (13:29 +0000) | ||
committer | japes <japes@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Nov 2008 13:29:23 +0000 (13:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13027 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/redhat/gosa_2_6_plugins.templ | [new file with mode: 0644] | patch | blob |
diff --git a/gosa-core/redhat/gosa_2_6_plugins.templ b/gosa-core/redhat/gosa_2_6_plugins.templ
--- /dev/null
@@ -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}