]> git.pld-linux.org Git - SPECS.git/blob - openldap-schema-mozillaorgperson.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / openldap-schema-mozillaorgperson.spec
1 Summary:        Mozilla LDAP schema
2 Summary(pl.UTF-8):      Schemat LDAP dla Mozilli
3 Name:           openldap-schema-mozillaorgperson
4 Version:        0.6.3
5 Release:        0.2
6 Epoch:          0
7 License:        ?
8 Group:          Networking/Daemons
9 Source0:        mozillaOrgPerson.schema
10 URL:            https://bugzilla.mozilla.org/show_bug.cgi?id=116692
11 BuildRequires:  rpmbuild(macros) >= 1.304
12 Requires(post,postun):  sed >= 4.0
13 Requires:       openldap-servers
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         schemadir       /usr/share/openldap/schema
18
19 %description
20 This package contains LDAPv3 schema for use with the Mozilla Address
21 Book.
22
23 %description -l pl.UTF-8
24 Ten pakiet zawiera schemat LDAPv3 do używania z książką adresową
25 Mozilli.
26
27 %prep
28 %setup -q -c -T
29 cp %{SOURCE0} .
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{schemadir}
34
35 install *.schema $RPM_BUILD_ROOT%{schemadir}
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %post
41 %openldap_schema_register %{schemadir}/mozillaOrgPerson.schema -d cosine,inetorgperson,core
42 %service -q ldap restart
43
44 %postun
45 if [ "$1" = "0" ]; then
46         %openldap_schema_unregister %{schemadir}/mozillaOrgPerson.schema
47         %service -q ldap restart
48 fi
49
50 %files
51 %defattr(644,root,root,755)
52 %{schemadir}/*.schema
This page took 0.213919 seconds and 3 git commands to generate.