~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to ceph.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum, Clint Byrum, Micah Gersten
  • Date: 2011-02-12 22:50:26 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110212225026-yyyw4tk0msgql3ul
Tags: 0.24.2-0ubuntu1
[ Clint Byrum <clint@ubuntu.com> ]
* New upstream release. (LP: #658670, LP: #684011)
* debian/patches/fix-mkcephfs.patch: dropped (applied upstream)
* Removed .la files from libceph1-dev, libcrush1-dev and 
  librados1-dev (per Debian policy v3.9.1 10.2).
* debian/control: adding pkg-config as a build dependency
* debian/control: depend on libcrypto++-dev instead of libssl-dev
* debian/watch: added watch file

[ Micah Gersten <micahg@ubuntu.com> ]
* debian/control: add Homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%define with_radosgw %{?_with_radosgw: 1} %{!?_with_radosgw: 0}
 
2
%define with_gtk2 %{?_with_gtk2: 1} %{!?_with_gtk2: 0}
2
3
 
3
4
Name:          ceph
4
5
Version:       @VERSION@
11
12
Source:        http://ceph.newdream.net/download/%{name}-%{version}.tar.gz
12
13
BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel, 
13
14
BuildRequires: libedit-devel, fuse-devel, git, perl, gdbm,
14
 
BuildRequires: openssl-devel, libatomic_ops-devel
 
15
BuildRequires: cryptopp-devel, libatomic_ops-devel, google-perftools-devel
 
16
BuildRequires: pkgconfig
15
17
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16
 
Requires(post): chkconfig, binutils, libedit
 
18
Requires(post): chkconfig, binutils, libedit, google-perftools
17
19
Requires(preun): chkconfig
18
20
Requires(preun): initscripts
19
21
 
51
53
conjunction with any FastCGI capable web server.
52
54
%endif
53
55
 
 
56
%if %{with_gtk2}
 
57
%package gcephtool
 
58
Summary:        Ceph graphical monitoring tool
 
59
Group:          System Environment/Base
 
60
License:        LGPLv2
 
61
Requires:       gtk2 gtkmm24
 
62
BuildRequires:  gtk2-devel gtkmm24-devel
 
63
 
 
64
%description gcephtool
 
65
gcephtool is a graphical monitor for the clusters running the Ceph distributed
 
66
file system.
 
67
%endif
 
68
 
54
69
%prep
55
70
%setup -q
56
71
 
57
72
%build
58
73
./autogen.sh
 
74
MY_CONF_OPT=""
 
75
 
59
76
%if %{with_radosgw}
60
 
%{configure} --without-hadoop --with-radosgw
61
 
%else
62
 
%{configure} --without-hadoop --without-radosgw
63
 
%endif
 
77
MY_CONF_OPT="$MY_CONF_OPT --with-radosgw"
 
78
%else
 
79
MY_CONF_OPT="$MY_CONF_OPT --without-radosgw"
 
80
%endif
 
81
 
 
82
%if %{with_gtk2}
 
83
MY_CONF_OPT="$MY_CONF_OPT --with-gtk2"
 
84
%else
 
85
MY_CONF_OPT="$MY_CONF_OPT --without-gtk2"
 
86
%endif
 
87
 
 
88
%{configure} --prefix=/usr --sbindir=/sbin \
 
89
--localstatedir=/var --sysconfdir=/etc \
 
90
--without-hadoop $MY_CONF_OPT
 
91
 
64
92
make -j$(getconf _NPROCESSORS_ONLN) CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
65
93
 
66
94
%install
69
97
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
70
98
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
71
99
install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
72
 
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/ceph/sample.ceph.conf
73
 
install -m 0644 -D debian/ceph.logrotate $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
 
100
chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.ceph.conf
 
101
install -m 0644 -D src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
74
102
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/
75
103
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
76
104
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/stat
77
105
 
 
106
# To avoid that libcls_rbd.so.1.0.0 is beeing stiped by find-debuginfo.sh
 
107
# we petend that the debug symbols have already been extracted
 
108
mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/%{_libdir}/rados-classes/
 
109
touch $RPM_BUILD_ROOT/usr/lib/debug/%{_libdir}/rados-classes/libcls_rbd.so.1.0.0.debug
 
110
 
78
111
%clean
79
112
rm -rf $RPM_BUILD_ROOT
80
113
 
98
131
%defattr(-,root,root,-)
99
132
%doc README COPYING
100
133
%{_bindir}/ceph
 
134
%{_bindir}/cephfs
101
135
%{_bindir}/cconf
102
136
%{_bindir}/cclass
103
137
%{_bindir}/cclsinfo
111
145
%{_bindir}/cmds
112
146
%{_bindir}/cosd
113
147
%{_bindir}/rados
114
 
%{_bindir}/radosacl
115
148
%{_bindir}/rbd
 
149
%{_bindir}/cdebugpack
116
150
%{_initrddir}/ceph
117
151
%{_libdir}/libceph.so.*
118
152
%{_libdir}/libcrush.so.*
119
153
%{_libdir}/librados.so.*
120
154
%{_libdir}/rados-classes/libcls_rbd.so.*
121
 
%{_sbindir}/mkcephfs
 
155
/sbin/mkcephfs
122
156
/sbin/mount.ceph
123
157
%{_libdir}/ceph
124
 
%config(noreplace) %{_sysconfdir}/ceph/sample.ceph.conf
125
 
%config(noreplace) %{_sysconfdir}/ceph/sample.fetch_config
 
158
%{_docdir}/ceph/sample.ceph.conf
 
159
%{_docdir}/ceph/sample.fetch_config
126
160
%config(noreplace) %{_sysconfdir}/logrotate.d/ceph
127
161
%{_mandir}/man8/cmon.8*
128
162
%{_mandir}/man8/cmds.8*
135
169
%{_mandir}/man8/monmaptool.8*
136
170
%{_mandir}/man8/cconf.8*
137
171
%{_mandir}/man8/ceph.8*
 
172
%{_mandir}/man8/cephfs.8*
138
173
%{_mandir}/man8/mount.ceph.8*
139
174
%{_mandir}/man8/radosgw.8*
140
175
%{_mandir}/man8/radosgw_admin.8*
141
176
%{_mandir}/man8/rados.8*
142
177
%{_mandir}/man8/rbd.8*
143
178
%{_mandir}/man8/cauthtool.8*
 
179
%{_mandir}/man8/cdebugpack.8*
144
180
%{_mandir}/man8/cclass.8.gz
145
181
%{_mandir}/man8/cclsinfo.8.gz
146
182
%dir %{_localstatedir}/lib/ceph/
176
212
 
177
213
%if %{with_radosgw}
178
214
%files radosgw
 
215
%defattr(-,root,root,-)
179
216
%{_bindir}/radosgw
180
217
%{_bindir}/radosgw_admin
181
218
%endif
182
219
 
 
220
%if %{with_gtk2}
 
221
%files gcephtool
 
222
%defattr(-,root,root,-)
 
223
%{_datadir}/ceph_tool/gui_resources/*
 
224
%endif
 
225
 
183
226
%changelog
 
227
* Thu Dec 9 2010 Colin McCabe <colinm@hq.newdream.net> 0.19.1-6
 
228
- Remove radosacl, since it's a debug binary
 
229
- Fix GUI dependencies
 
230
- Miscellaneous cleanups
 
231
 
184
232
* Fri Apr 30 2010 Sage Weil <sage@newdream.net> 0.19.1-5
185
233
- Remove java deps (no need to build hadoop by default)
186
234
- Include all required librados helpers