parent
e55205521d
commit
7dc2179629
7 changed files with 89 additions and 18 deletions
@ -0,0 +1,15 @@ |
||||
#! /bin/bash -ex |
||||
|
||||
# build and test everything in a fresh docker installation |
||||
|
||||
DOCKER_ID=$(docker run -d -v $(pwd):/workdir -w /workdir ubuntu sleep infinity) |
||||
trap "docker rm -f ${DOCKER_ID}" INT TERM EXIT |
||||
docker exec ${DOCKER_ID} apt-get install -y software-properties-common apt-transport-https dpkg-dev |
||||
docker exec ${DOCKER_ID} apt-add-repository universe |
||||
docker exec ${DOCKER_ID} apt-add-repository https://dev.marc.waeckerlin.org/repository |
||||
wget -O- https://dev.marc.waeckerlin.org/repository/PublicKey \ |
||||
| docker exec -i ${DOCKER_ID} apt-key add - |
||||
docker exec ${DOCKER_ID} apt-get update |
||||
docker exec ${DOCKER_ID} ./resolve-debbuilddeps.sh |
||||
docker exec -u $(id -u) ${DOCKER_ID} svn upgrade || true |
||||
docker exec -u $(id -u) ${DOCKER_ID} ./bootstrap.sh -t "all check distcheck" |
@ -1,15 +0,0 @@ |
||||
## @id $Id$ |
||||
## |
||||
## This file has been added: |
||||
## - by bootstrap.sh |
||||
## - on Wed, 04 November 2015 08:51:26 +0100 |
||||
## Feel free to change it or even remove and rebuild it, up to your needs |
||||
## |
||||
## 1 2 3 4 5 6 7 8 |
||||
## 45678901234567890123456789012345678901234567890123456789012345678901234567890 |
||||
|
||||
AM_CPPFLAGS = -I${top_srcdir}/src -I${top_builddir}/src |
||||
AM_LDFLAGS = -L${abs_top_builddir}/src/.libs |
||||
LDADD = -lwebtester |
||||
|
||||
MAINTAINERCLEANFILES = makefile.in |
@ -0,0 +1,60 @@ |
||||
Summary: @DESCRIPTION@ |
||||
Name: @PACKAGE_NAME@ |
||||
Version: @VERSION@ |
||||
Release: @BUILD_NUMBER@%{?dist} |
||||
License: LGPL |
||||
Group: Applications/... |
||||
Source0: %{name}-%{version}.tar.gz |
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
||||
BuildRequires: gnupg, subversion, automake, autoconf, doxygen, xvfb, mrw-c++-dev, libxml-cxx-dev |
||||
%if 0%{?fedora} != 20 |
||||
BuildRequires: graphviz |
||||
%endif |
||||
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} |
||||
BuildRequires: pkgconfig, redhat-lsb |
||||
%if ! ( 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} ) |
||||
BuildRequires: mscgen |
||||
BuildRequires: qt5-qtbase-devel, qt5-qttools, qt5-qtwebkit-devel |
||||
%else |
||||
BuildRequires: qt-devel |
||||
%endif |
||||
%else%if 0%{?suse_version} || 0%{?sles_version} |
||||
BuildRequires: pkg-config, lsb-release |
||||
%if 0%{?suse_version} < 1200 || 0%{?sles_version} < 1200 |
||||
BuildRequires: libqt4-devel, qt4-x11-tools, libQtWebKit-devel |
||||
%else |
||||
BuildRequires: libqt5-qtbase-devel, libqt5-qttools, libQt5WebKit5-devel |
||||
%endif |
||||
%endif%endif |
||||
|
||||
%description |
||||
@README@ |
||||
|
||||
|
||||
|
||||
%prep |
||||
%setup -q |
||||
./configure --prefix=/usr \ |
||||
--sysconfdir=/etc \ |
||||
--docdir=/usr/share/doc/packages/@PACKAGE_NAME@ \ |
||||
--libdir=/usr/%_lib |
||||
|
||||
%build |
||||
make |
||||
|
||||
%install |
||||
DESTDIR=$RPM_BUILD_ROOT make install |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
||||
%files |
||||
%defattr(-,root,root,-) |
||||
/usr/bin/* |
||||
%doc |
||||
/usr/share/* |
||||
|
||||
|
||||
|
||||
%changelog |
||||
|
Loading…
Reference in new issue