~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to changehat/mod_apparmor/apache2-mod_apparmor.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: apache2-mod_apparmor.spec.in 306 2007-01-18 07:33:09Z steve-beattie $
2
1
# ----------------------------------------------------------------------
3
2
#    Copyright (c) 2004, 2005 NOVELL (All rights reserved)
4
3
#
42
41
License: LGPL
43
42
BuildRoot: %{?_tmppath:}%{!?_tmppath:/var/tmp}/%{name}-%{version}-build
44
43
Url: http://forge.novell.com/modules/xfmod/project/?apparmor
45
 
Prereq: libapparmor
46
 
BuildRequires: libapparmor
47
44
Obsoletes: mod_change_hat mod-change-hat mod-apparmor apache2-mod-apparmor
48
45
Provides: mod_change_hat mod-change-hat mod-apparmor apache2-mod-apparmor
49
46
 
50
47
%if %{distro} == "suse"
 
48
%if 0%{?suse_version} < 1010
 
49
BuildRequires: libimmunix
 
50
%else
 
51
%if 0%{?suse_version} < 1030
 
52
BuildRequires: libapparmor
 
53
%else
 
54
BuildRequires: libapparmor-devel
 
55
%endif
 
56
%endif
 
57
%else
 
58
BuildRequires: libapparmor-devel
 
59
%endif
 
60
 
 
61
%if %{distro} == "suse"
51
62
%define apxs /usr/sbin/apxs2
52
63
%define apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
53
64
Prereq: apache2-prefork
75
86
%setup -q
76
87
 
77
88
%build
78
 
make %{module_name}.so APXS=%{apxs}
 
89
make APXS=%{apxs}
79
90
 
80
91
%install
81
 
make install DESTDIR=${RPM_BUILD_ROOT} DISTRO=%{distro}
 
92
make install DESTDIR=${RPM_BUILD_ROOT} DISTRO=%{distro} MANDIR=%{_mandir}
82
93
 
83
94
%if %{distro} == "suse"
84
95
       mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/apache2-prefork/
104
115
  %endif
105
116
%endif
106
117
%doc COPYING.LGPL
 
118
%{_mandir}/man*/*
 
119
%doc *.[0-9].html
 
120
%doc common/apparmor.css
107
121
 
108
122
%post
109
123
%if %{distro} == "suse"
123
137
%endif
124
138
 
125
139
%changelog
 
140
* Sun Jul 29 2007 - sbeattie@suse.de
 
141
- Convert builddep on libapparmor to libapparmor-devel
 
142
* Tue Apr  3 2007 - sbeattie@suse.de
 
143
- Add mod_apparmor manpage to package
126
144
* Wed Sep 06 2006 - poeml@suse.de
127
145
- rename to apache2-mod_apparmor
128
146
- use a2enmod instead of frob_sysconfig