Merge lp:~ignacio-nin/percona-playback/percona-playback-packaging into lp:percona-playback

Proposed by Ignacio Nin
Status: Merged
Approved by: Stewart Smith
Approved revision: 157
Merged at revision: 159
Proposed branch: lp:~ignacio-nin/percona-playback/percona-playback-packaging
Merge into: lp:percona-playback
Diff against target: 270 lines (+194/-0)
15 files modified
debian/README.Debian (+6/-0)
debian/README.source (+9/-0)
debian/changelog (+5/-0)
debian/compat (+1/-0)
debian/control (+34/-0)
debian/copyright (+26/-0)
debian/docs (+2/-0)
debian/files (+2/-0)
debian/percona-playback-dev.dirs (+2/-0)
debian/percona-playback-dev.install (+3/-0)
debian/percona-playback.dirs (+2/-0)
debian/percona-playback.install (+2/-0)
debian/rules (+13/-0)
debian/source/format (+1/-0)
percona-playback.spec (+86/-0)
To merge this branch: bzr merge lp:~ignacio-nin/percona-playback/percona-playback-packaging
Reviewer Review Type Date Requested Status
Percona core Pending
Review via email: mp+119474@code.launchpad.net

Description of the change

Packaging tools for Percona Playback

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'debian'
2=== added file 'debian/README.Debian'
3--- debian/README.Debian 1970-01-01 00:00:00 +0000
4+++ debian/README.Debian 2012-08-14 06:35:35 +0000
5@@ -0,0 +1,6 @@
6+percona-playback for Debian
7+---------------------------
8+
9+<possible notes regarding this package - if none, delete this file>
10+
11+ -- Ignacio Nin <nacho@debian> Fri, 20 Jul 2012 00:24:10 -0400
12
13=== added file 'debian/README.source'
14--- debian/README.source 1970-01-01 00:00:00 +0000
15+++ debian/README.source 2012-08-14 06:35:35 +0000
16@@ -0,0 +1,9 @@
17+percona-playback for Debian
18+---------------------------
19+
20+<this file describes information about the source package, see Debian policy
21+manual section 4.14. You WILL either need to modify or delete this file>
22+
23+
24+
25+
26
27=== added file 'debian/changelog'
28--- debian/changelog 1970-01-01 00:00:00 +0000
29+++ debian/changelog 2012-08-14 06:35:35 +0000
30@@ -0,0 +1,5 @@
31+percona-playback (0.4-1) unstable; urgency=low
32+
33+ * Initial release
34+
35+ -- Ignacio Nin <ignacio.nin@percona.com> Fri, 20 Jul 2012 00:24:10 -0400
36
37=== added file 'debian/compat'
38--- debian/compat 1970-01-01 00:00:00 +0000
39+++ debian/compat 2012-08-14 06:35:35 +0000
40@@ -0,0 +1,1 @@
41+7
42
43=== added file 'debian/control'
44--- debian/control 1970-01-01 00:00:00 +0000
45+++ debian/control 2012-08-14 06:35:35 +0000
46@@ -0,0 +1,34 @@
47+Source: percona-playback
48+Priority: extra
49+Maintainer: Ignacio Nin <ignacio.nin@percona.com>
50+Build-Depends: debhelper (>= 7.0.50~), autoconf, automake, libtool, gettext, intltool,
51+ libdrizzle-dev, libpcap-dev, libtbb-dev, libmysqlclient-dev,
52+ libboost-program-options-dev, libboost-thread-dev, pkg-config
53+Standards-Version: 3.8.4
54+Section: libs
55+Homepage: <insert the upstream URL, if relevant>
56+#Vcs-Git: git://git.debian.org/collab-maint/percona-playback.git
57+#Vcs-Browser: http://git.debian.org/?p=collab-maint/percona-playback.git;a=summary
58+
59+Package: percona-playback-dev
60+Section: libdevel
61+Architecture: any
62+Depends: percona-playback (= ${binary:Version})
63+Description: A tool for replaying captured database server load
64+ Percona Playback is a tool for replaying the captured load of one database
65+ server against another in the most realistic way possible. Captured load can
66+ come in the form of MySQL slow query logs or tcpdump capture.
67+ It's multithreaded, modular and configurable to allow for flexibility and
68+ future extension.
69+
70+Package: percona-playback
71+Section: database
72+Architecture: any
73+Depends: ${shlibs:Depends}, ${misc:Depends},
74+ libdrizzle, libpcap, libtbb, mysql, libboost-program-options, libboost-thread
75+Description: A tool for replaying captured database server load
76+ Percona Playback is a tool for replaying the captured load of one database
77+ server against another in the most realistic way possible. Captured load can
78+ come in the form of MySQL slow query logs or tcpdump capture.
79+ It's multithreaded, modular and configurable to allow for flexibility and
80+ future extension.
81
82=== added file 'debian/copyright'
83--- debian/copyright 1970-01-01 00:00:00 +0000
84+++ debian/copyright 2012-08-14 06:35:35 +0000
85@@ -0,0 +1,26 @@
86+This work was packaged for Debian by:
87+
88+ Ignacio Nin <ignacio.nin@percona.com> on Fri, 20 Jul 2012 00:24:10 -0400
89+
90+It was downloaded from:
91+
92+ lp:percona-playback
93+
94+Upstream Author(s):
95+
96+ Percona Inc. <mysql-dev@percona.com>
97+
98+Copyright:
99+
100+ Copyright (C) 2012 Percona Inc.
101+
102+License:
103+
104+ GPLv22
105+
106+The Debian packaging is:
107+
108+ Copyright (C) 2012 Ignacio Nin <ignacio.nin@percona.com>
109+
110+and is licensed under the GPL version 3,
111+see "/usr/share/common-licenses/GPL-3".
112
113=== added file 'debian/docs'
114--- debian/docs 1970-01-01 00:00:00 +0000
115+++ debian/docs 2012-08-14 06:35:35 +0000
116@@ -0,0 +1,2 @@
117+README
118+LICENSE
119
120=== added file 'debian/files'
121--- debian/files 1970-01-01 00:00:00 +0000
122+++ debian/files 2012-08-14 06:35:35 +0000
123@@ -0,0 +1,2 @@
124+percona-playback-dev_0.4-1_amd64.deb libdevel extra
125+percona-playback_0.4-1_amd64.deb database extra
126
127=== added file 'debian/percona-playback-dev.dirs'
128--- debian/percona-playback-dev.dirs 1970-01-01 00:00:00 +0000
129+++ debian/percona-playback-dev.dirs 2012-08-14 06:35:35 +0000
130@@ -0,0 +1,2 @@
131+usr/lib
132+usr/include
133
134=== added file 'debian/percona-playback-dev.install'
135--- debian/percona-playback-dev.install 1970-01-01 00:00:00 +0000
136+++ debian/percona-playback-dev.install 2012-08-14 06:35:35 +0000
137@@ -0,0 +1,3 @@
138+usr/include/*
139+usr/lib/lib*.so
140+usr/lib/*.la
141
142=== added file 'debian/percona-playback.dirs'
143--- debian/percona-playback.dirs 1970-01-01 00:00:00 +0000
144+++ debian/percona-playback.dirs 2012-08-14 06:35:35 +0000
145@@ -0,0 +1,2 @@
146+usr/bin
147+usr/lib
148
149=== added file 'debian/percona-playback.install'
150--- debian/percona-playback.install 1970-01-01 00:00:00 +0000
151+++ debian/percona-playback.install 2012-08-14 06:35:35 +0000
152@@ -0,0 +1,2 @@
153+usr/bin/percona-playback
154+usr/lib/lib*.so.*
155
156=== added file 'debian/rules'
157--- debian/rules 1970-01-01 00:00:00 +0000
158+++ debian/rules 2012-08-14 06:35:35 +0000
159@@ -0,0 +1,13 @@
160+#!/usr/bin/make -f
161+# -*- makefile -*-
162+# Sample debian/rules that uses debhelper.
163+# This file was originally written by Joey Hess and Craig Small.
164+# As a special exception, when this file is copied by dh-make into a
165+# dh-make output file, you may use that output file without restriction.
166+# This special exception was added by Craig Small in version 0.37 of dh-make.
167+
168+# Uncomment this to turn on verbose mode.
169+#export DH_VERBOSE=1
170+
171+%:
172+ dh $@
173
174=== added directory 'debian/source'
175=== added file 'debian/source/format'
176--- debian/source/format 1970-01-01 00:00:00 +0000
177+++ debian/source/format 2012-08-14 06:35:35 +0000
178@@ -0,0 +1,1 @@
179+1.0
180
181=== added file 'percona-playback.spec'
182--- percona-playback.spec 1970-01-01 00:00:00 +0000
183+++ percona-playback.spec 2012-08-14 06:35:35 +0000
184@@ -0,0 +1,86 @@
185+# Copyright (C) 2011-2012 Percona Inc.
186+# This program is free software: you can redistribute it and/or modify it
187+# under the terms of the GNU General Public License version 2, as published
188+# by the Free Software Foundation.
189+#
190+# This program is distributed in the hope that it will be useful, but
191+# WITHOUT ANY WARRANTY; without even the implied warranties of
192+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
193+# PURPOSE. See the GNU General Public License for more details.
194+#
195+# You should have received a copy of the GNU General Public License along
196+# with this program. If not, see <http://www.gnu.org/licenses/>.
197+
198+# boost 1.41 requirement for rhel5
199+%define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
200+%if "%rhelver" == "5"
201+ %define boost_req boost141-devel
202+ %define boost_runreq boost141-program-options
203+%else
204+ %define boost_req boost-devel
205+ %define boost_runreq boost-program-options
206+%endif
207+
208+Name: percona-playback
209+Version: 0.4
210+Release: 1%{?dist}
211+Summary: A tool for replaying captured database server load
212+
213+License: GPL
214+URL: http://www.percona.com/
215+Source: percona-playback-%{version}.tar.gz
216+Group: Applications/Databases
217+BuildRequires: autoconf automake libtool libdrizzle-devel gettext-devel libpcap-devel tbb-devel mysql-devel intltool %{boost_req} pkgconfig
218+Requires: libdrizzle libpcap tbb mysql %{boost_runreq}
219+BuildRoot: %{_tmppath}/%{name}-%{version}-build
220+
221+%description
222+Percona Playback is a tool for replaying the captured load of one database
223+server against another in the most realistic way possible. Captured load can
224+come in the form of MySQL slow query logs or tcpdump capture.
225+It's multithreaded, modular and configurable to allow for flexibility and
226+future extension.
227+
228+%package devel
229+Summary: Development files for %{name}
230+Group: Applications/Databases
231+Requires: %{name}%{?_isa} = %{version}-%{release}
232+
233+%description devel
234+The %{name}-devel package contains libraries and header files for
235+developing applications that use %{name}.
236+
237+
238+%prep
239+%setup -q
240+
241+
242+%build
243+autoreconf -i
244+%configure --disable-static
245+make %{?_smp_mflags}
246+
247+
248+%install
249+rm -rf $RPM_BUILD_ROOT
250+make install DESTDIR=$RPM_BUILD_ROOT
251+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
252+
253+
254+%post -p /sbin/ldconfig
255+
256+%postun -p /sbin/ldconfig
257+
258+
259+%files
260+%doc
261+%{_bindir}/percona-playback
262+%{_libdir}/*.so.*
263+
264+%files devel
265+%doc
266+%{_includedir}/*
267+%{_libdir}/*.so
268+
269+
270+%changelog

Subscribers

People subscribed via source and target branches

to all changes: