Code

Moved slapd to be recommended
[gosa.git] / gosa-core / redhat / gosa_2_6_plugins.templ
1 # Some sort of "detection" of suse
2 %{?suse_version:%define suse 1}
3 %{!?suse_version:%define suse 0}
5 # Define Packagename, e.g.:
6 # rpmbuild --rebuild --define 'sourcename gosa' gosa.srpm
7 %{!?sourcename:%define sourcename %{name}-%{version}}
9 #
10 # Distribution
11 #
12 Summary:                @@DESCRIPTION@@ 
13 Name:                   gosa-plugin-@@NAME@@
14 Version:                @@VERSION@@
15 Release:                @@RELEASE@@
16 License:                GPL
17 Source:                 ftp://oss.GONICUS.de/pub/gosa/%{sourcename}.tar.bz2
18 URL:                    @@HOMEPAGE@@
19 Group:                  System/Administration
20 Vendor:                 GONICUS GmbH
21 Packager:               @@AUTHOR@@
22 Buildarch:              noarch
23 %if %{suse}
24 Requires:               gosa >= 2.6.0 @@DEPENDS@@
25 %else
26 Requires:               gosa >= 2.6.0 @@DEPENDS@@
27 %endif
28 BuildRoot:              %{_tmppath}/%{name}-%{version}-root
29 BuildArch:              noarch
31 %define confdir         /etc/%{name}
33 %if %{suse}
34         %{echo:Building SuSE rpm}
35         %define docdir /usr/share/doc/packages/gosa
36 %else
37         %{echo:Building other rpm}
38         %define webconf /etc/httpd/conf.d/      
39         %define docdir /usr/share/doc/gosa-%{version}
40 %endif
42 %description
43 @@DESCRIPTION@@
45 %prep
46 %setup -q -n %{sourcename}
48 %build
50 %install
51 # Create buildroot
52 mkdir -p %{buildroot}/usr/share/gosa/plugins/%{name}
53 mv ./* %{buildroot}/usr/share/gosa/plugins/%{name}
54 #cp -ua ./@@NAME@@* %{buildroot}/usr/share/gosa/plugins/@@NAME@@
56 %post
57 /usr/sbin/update-gosa
59 %clean
60 rm -rf %{buildroot}
62 %files
63 %defattr(-,root,root)
64 %attr (-,root,root) /usr/share/gosa/plugins/%{name}