|
|
@ -134,6 +134,7 @@ GENERATED FILES |
|
|
|
* resolve-rpmbuilddeps.sh - script to install RPM package dependencies |
|
|
|
* resolve-rpmbuilddeps.sh - script to install RPM package dependencies |
|
|
|
* build-in-docker.sh - script to build the project encapsulated in a docker container |
|
|
|
* build-in-docker.sh - script to build the project encapsulated in a docker container |
|
|
|
* build-in-docker.conf - additional configuration for build-in-docker.sh |
|
|
|
* build-in-docker.conf - additional configuration for build-in-docker.sh |
|
|
|
|
|
|
|
* rpmsign.exp - script for signing rpms unattended |
|
|
|
* build-resource-file.sh - build resource.qrc file from a resource directory |
|
|
|
* build-resource-file.sh - build resource.qrc file from a resource directory |
|
|
|
* sql-to-dot.sed - script to convert SQL schema files to graphviz dot in doxygen |
|
|
|
* sql-to-dot.sed - script to convert SQL schema files to graphviz dot in doxygen |
|
|
|
* mac-create-app-bundle.sh - script to create apple mac os-x app-bundle |
|
|
|
* mac-create-app-bundle.sh - script to create apple mac os-x app-bundle |
|
|
@ -148,7 +149,8 @@ GENERATED FILES |
|
|
|
* src/version.hxx - if you enabled AX_USE_CXX |
|
|
|
* src/version.hxx - if you enabled AX_USE_CXX |
|
|
|
* src/version.cxx - if you enabled AX_USE_CXX |
|
|
|
* src/version.cxx - if you enabled AX_USE_CXX |
|
|
|
* etc/makefile.am - if you enable AX_USE_ETC |
|
|
|
* etc/makefile.am - if you enable AX_USE_ETC |
|
|
|
* html/makefile.am - if you enabled AX_BUILD_HTML |
|
|
|
* html/makefile.am - if you enabled AX_BUILD_HTML or AX_BUILD_HTML_NPM |
|
|
|
|
|
|
|
* html/package.json.in - if you enabled AX_BUILD_HTML_NPM |
|
|
|
* scripts/makefile.am - if you enabled AX_USE_SCRIPTS |
|
|
|
* scripts/makefile.am - if you enabled AX_USE_SCRIPTS |
|
|
|
* nodejs/makefile.am - if you add AX_USE_NODEJS |
|
|
|
* nodejs/makefile.am - if you add AX_USE_NODEJS |
|
|
|
* nodejs/${DEFAULT_PROJECT_NAME}.js - if you add AX_USE_NODEJS |
|
|
|
* nodejs/${DEFAULT_PROJECT_NAME}.js - if you add AX_USE_NODEJS |
|
|
@ -223,7 +225,7 @@ FILE DEPENDENCIES |
|
|
|
configuration a dependent, i.e.: |
|
|
|
configuration a dependent, i.e.: |
|
|
|
|
|
|
|
|
|
|
|
* test/makefile.am depends on AX_USE_LIBTOOL |
|
|
|
* test/makefile.am depends on AX_USE_LIBTOOL |
|
|
|
* html/makefile.am depends on AX_BUILD_HTML |
|
|
|
* html/makefile.am depends on AX_BUILD_HTML or AX_BUILD_HTML_NPM |
|
|
|
* doc/doxyfile.in depends on AX_BUILD_EXAMPLES |
|
|
|
* doc/doxyfile.in depends on AX_BUILD_EXAMPLES |
|
|
|
* debian/control.in depends on AX_USE_DOXYGEN, AX_USE_PERLDOC, |
|
|
|
* debian/control.in depends on AX_USE_DOXYGEN, AX_USE_PERLDOC, |
|
|
|
AX_USE_CPPUNIT AX_CXX_QT, AX_CHECK_QT, AX_REQUIRE_QT, AX_USE_LIBTOOL |
|
|
|
AX_USE_CPPUNIT AX_CXX_QT, AX_CHECK_QT, AX_REQUIRE_QT, AX_USE_LIBTOOL |
|
|
@ -374,7 +376,7 @@ run() { |
|
|
|
|
|
|
|
|
|
|
|
testtag() { |
|
|
|
testtag() { |
|
|
|
local IFS="|" |
|
|
|
local IFS="|" |
|
|
|
egrep -q '^ *'"($*)" configure.ac |
|
|
|
egrep -q '^ *'"($*)"' *(\(.*)? *$' configure.ac |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
contains() { |
|
|
|
contains() { |
|
|
@ -538,6 +540,7 @@ copy makefile_test.inc.am |
|
|
|
copy resolve-debbuilddeps.sh |
|
|
|
copy resolve-debbuilddeps.sh |
|
|
|
copy resolve-rpmbuilddeps.sh |
|
|
|
copy resolve-rpmbuilddeps.sh |
|
|
|
copy build-in-docker.sh |
|
|
|
copy build-in-docker.sh |
|
|
|
|
|
|
|
copy rpmsign.exp |
|
|
|
copy build-resource-file.sh |
|
|
|
copy build-resource-file.sh |
|
|
|
copy sql-to-dot.sed |
|
|
|
copy sql-to-dot.sed |
|
|
|
copy mac-create-app-bundle.sh |
|
|
|
copy mac-create-app-bundle.sh |
|
|
@ -583,6 +586,7 @@ AX_INIT_STANDARD_PROJECT |
|
|
|
#AX_BUILD_TEST |
|
|
|
#AX_BUILD_TEST |
|
|
|
#AX_BUILD_EXAMPLES |
|
|
|
#AX_BUILD_EXAMPLES |
|
|
|
#AX_BUILD_HTML |
|
|
|
#AX_BUILD_HTML |
|
|
|
|
|
|
|
#AX_BUILD_HTML_NPM |
|
|
|
|
|
|
|
|
|
|
|
# qt features, uncomment, what you need: |
|
|
|
# qt features, uncomment, what you need: |
|
|
|
#AX_CHECK_QT([QT], [QtCore QtGui QtNetwork], [QtWidgets]) |
|
|
|
#AX_CHECK_QT([QT], [QtCore QtGui QtNetwork], [QtWidgets]) |
|
|
@ -590,7 +594,7 @@ AX_INIT_STANDARD_PROJECT |
|
|
|
#AX_QT_NO_KEYWORDS |
|
|
|
#AX_QT_NO_KEYWORDS |
|
|
|
|
|
|
|
|
|
|
|
# create output |
|
|
|
# create output |
|
|
|
AC_OUTPUT |
|
|
|
AX_OUTPUT |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
PACKAGE_NAME=$(sed -n 's/.*m4_define *( *x_package_name *, *\([^ ]*\) *).*/\1/p' configure.ac) |
|
|
|
PACKAGE_NAME=$(sed -n 's/.*m4_define *( *x_package_name *, *\([^ ]*\) *).*/\1/p' configure.ac) |
|
|
@ -1081,7 +1085,9 @@ to --condition AX_USE_NODEJS nodejs/etc/systemd/system/${PACKAGE_NAME}.service < |
|
|
|
Description=$(head -1 README) |
|
|
|
Description=$(head -1 README) |
|
|
|
|
|
|
|
|
|
|
|
[Service] |
|
|
|
[Service] |
|
|
|
ExecStart=/usr/bin/nodejs /usr/share/${PACKAGE_NAME}/nodejs/${PACKAGE_NAME} > /var/log/${PACKAGE_NAME}.log |
|
|
|
ExecStart=/usr/bin/nodejs /usr/share/${PACKAGE_NAME}/nodejs/${PACKAGE_NAME} |
|
|
|
|
|
|
|
StandardOutput=journal |
|
|
|
|
|
|
|
StandardError=journal |
|
|
|
Restart=on-abort |
|
|
|
Restart=on-abort |
|
|
|
|
|
|
|
|
|
|
|
[Install] |
|
|
|
[Install] |
|
|
@ -1280,11 +1286,59 @@ LDADD = -l${PACKAGE_NAME#lib} |
|
|
|
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
to --condition AX_BUILD_HTML html/makefile.am <<EOF |
|
|
|
to --condition AX_BUILD_HTML_NPM html/package.json.in <<EOF |
|
|
|
${HEADER}EXTRA_DIST = \${www_DATA} |
|
|
|
{ |
|
|
|
|
|
|
|
"name": "@PACKAGE_NAME@", |
|
|
|
|
|
|
|
"version": "@PACKAGE_VERSION@", |
|
|
|
|
|
|
|
"private": true, |
|
|
|
|
|
|
|
"dependencies": { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"description": "@DESCRIPTION@", |
|
|
|
|
|
|
|
"devDependencies": {}, |
|
|
|
|
|
|
|
"scripts": { |
|
|
|
|
|
|
|
"test": "echo \"Error: no test specified\" && exit 1" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"author": "@AUTHOR@", |
|
|
|
|
|
|
|
"license": "@LICENSE@", |
|
|
|
|
|
|
|
"path": { |
|
|
|
|
|
|
|
"prefix": "@PREFIX@", |
|
|
|
|
|
|
|
"sysconf": "@SYSCONFDIR@", |
|
|
|
|
|
|
|
"pkgdata": "@PKGDATADIR@", |
|
|
|
|
|
|
|
"localstate": "@LOCALSTATEDIR@", |
|
|
|
|
|
|
|
"log": "@LOCALSTATEDIR@/log/@PACKAGE_NAME@.log", |
|
|
|
|
|
|
|
"config": "@SYSCONFDIR@/@PACKAGE_NAME@.json", |
|
|
|
|
|
|
|
"nodejs": "@PKGDATADIR@/nodejs" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
to --condition 'AX_BUILD_HTML|AX_BUILD_HTML_NPM' html/makefile.am <<EOF |
|
|
|
|
|
|
|
${HEADER}EXTRA_DIST = $(testtag AX_BUILD_HTML_NPM && echo "package.json.in") |
|
|
|
|
|
|
|
|
|
|
|
wwwdir = \${pkgdatadir}/html |
|
|
|
wwwdir = \${pkgdatadir}/html |
|
|
|
www_DATA = |
|
|
|
www_DATA = $(testtag AX_BUILD_HTML_NPM && echo "package.json") |
|
|
|
|
|
|
|
dist_www_DATA = |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(if testtag AX_BUILD_HTML_NPM; then |
|
|
|
|
|
|
|
cat<<EOF2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: node_modules |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node_modules: package.json.in |
|
|
|
|
|
|
|
HOME=. npm install |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean-local: |
|
|
|
|
|
|
|
-rm -r node_modules .npm |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install-data-hook: |
|
|
|
|
|
|
|
test -d \$(DESTDIR)\${wwwdir} || mkdir -p \$(DESTDIR)\${wwwdir} |
|
|
|
|
|
|
|
chmod -R u+w \$(DESTDIR)\${wwwdir} |
|
|
|
|
|
|
|
cp -r . \$(DESTDIR)\${wwwdir} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uninstall-local: |
|
|
|
|
|
|
|
-chmod -R u+w \$(DESTDIR)\${wwwdir} |
|
|
|
|
|
|
|
-rm -rf \$(DESTDIR)\${wwwdir} |
|
|
|
|
|
|
|
EOF2 |
|
|
|
|
|
|
|
fi) |
|
|
|
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
EOF |
|
|
|
EOF |
|
|
@ -1500,7 +1554,7 @@ $( if testtag AX_USE_LIBTOOL; then |
|
|
|
Package: @PACKAGE_NAME@-dev |
|
|
|
Package: @PACKAGE_NAME@-dev |
|
|
|
Section: libdevel |
|
|
|
Section: libdevel |
|
|
|
Architecture: any |
|
|
|
Architecture: any |
|
|
|
Depends: @PACKAGE_NAME@ (= \${binary:Version}), ${BUILD_DEPENDS}${RUN_DEPENDS} @DEB_DEPEND@ @DEB_BUILD_DEPEND@ @DEB_DEPEND_IFEXISTS@ |
|
|
|
Depends: @PACKAGE_NAME@ (= \${binary:Version}), ${BUILD_DEPENDS}${RUN_DEPENDS} @DEB_BUILD_DEPEND@ @DEB_DEPEND_IFEXISTS@ |
|
|
|
Description: @DESCRIPTION@ - Development Package |
|
|
|
Description: @DESCRIPTION@ - Development Package |
|
|
|
@README_DEB@ |
|
|
|
@README_DEB@ |
|
|
|
EOF2 |
|
|
|
EOF2 |
|
|
@ -1548,11 +1602,12 @@ License: LGPL |
|
|
|
Group: $(if testtag AX_USE_LIBTOOL; then |
|
|
|
Group: $(if testtag AX_USE_LIBTOOL; then |
|
|
|
echo Development/Libraries/C++; |
|
|
|
echo Development/Libraries/C++; |
|
|
|
else |
|
|
|
else |
|
|
|
echo Applications/...; |
|
|
|
echo @RPM_GROUP@; |
|
|
|
fi) |
|
|
|
fi) |
|
|
|
|
|
|
|
$(if testtag AX_RPM_DEPEND; then echo "Requires: @RPM_DEPEND@"; fi) |
|
|
|
Source0: %{name}-%{version}.tar.gz |
|
|
|
Source0: %{name}-%{version}.tar.gz |
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
|
|
BuildRequires: gnupg, ${VCSDEPENDS_RPM} make, automake, autoconf, rpm-build$( |
|
|
|
BuildRequires: gnupg, expect, ${VCSDEPENDS_RPM} make, automake, autoconf, rpm-build$( |
|
|
|
if testtag AX_USE_CXX; then |
|
|
|
if testtag AX_USE_CXX; then |
|
|
|
echo -n ", binutils-devel, gcc-c++" |
|
|
|
echo -n ", binutils-devel, gcc-c++" |
|
|
|
fi |
|
|
|
fi |
|
|
@ -1565,7 +1620,7 @@ BuildRequires: gnupg, ${VCSDEPENDS_RPM} make, automake, autoconf, rpm-build$( |
|
|
|
if testtag AX_USE_PERLDOC; then |
|
|
|
if testtag AX_USE_PERLDOC; then |
|
|
|
echo -n ", libpod-tree-perl"; |
|
|
|
echo -n ", libpod-tree-perl"; |
|
|
|
fi |
|
|
|
fi |
|
|
|
) |
|
|
|
) @RPM_BUILD_DEPEND@ @RPM_DEPEND_IFEXISTS@ |
|
|
|
%if 0%{?fedora} != 20 |
|
|
|
%if 0%{?fedora} != 20 |
|
|
|
$(if testtag AX_USE_DOXYGEN; then echo -n "BuildRequires: graphviz"; fi) |
|
|
|
$(if testtag AX_USE_DOXYGEN; then echo -n "BuildRequires: graphviz"; fi) |
|
|
|
%endif |
|
|
|
%endif |
|
|
@ -1638,12 +1693,14 @@ rm -rf \$RPM_BUILD_ROOT |
|
|
|
%files |
|
|
|
%files |
|
|
|
%defattr(-,root,root,-) |
|
|
|
%defattr(-,root,root,-) |
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
|
echo '/usr/%_lib/@PACKAGE_NAME@.so.*' |
|
|
|
echo '/usr/%_lib/*.so.*' |
|
|
|
else |
|
|
|
else |
|
|
|
echo '/usr/bin/*' |
|
|
|
echo '/usr/bin/*' |
|
|
|
echo '/usr/share/applications/*' |
|
|
|
echo '/usr/share/applications/*' |
|
|
|
fi) |
|
|
|
fi) |
|
|
|
/usr/share/@PACKAGE_NAME@ |
|
|
|
$(if testtag AX_USE_NODEJS AX_BUILD_HTML AX_BUILD_HTML_NPM; then |
|
|
|
|
|
|
|
echo '/usr/share/@PACKAGE_NAME@' |
|
|
|
|
|
|
|
fi) |
|
|
|
%doc |
|
|
|
%doc |
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
|
cat <<EOF2 |
|
|
|
cat <<EOF2 |
|
|
@ -1655,7 +1712,7 @@ $(if testtag AX_USE_LIBTOOL; then |
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/README |
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/README |
|
|
|
EOF2 |
|
|
|
EOF2 |
|
|
|
else |
|
|
|
else |
|
|
|
echo '/usr/share/doc/packages/@PACKAGE_NAME@' |
|
|
|
echo '/usr/share' |
|
|
|
fi) |
|
|
|
fi) |
|
|
|
|
|
|
|
|
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
@ -1663,7 +1720,7 @@ cat <<EOF2 |
|
|
|
%package devel |
|
|
|
%package devel |
|
|
|
Summary: @DESCRIPTION@ |
|
|
|
Summary: @DESCRIPTION@ |
|
|
|
Group: Development/Libraries/C++ |
|
|
|
Group: Development/Libraries/C++ |
|
|
|
Requires: @PACKAGE_NAME@ = @VERSION@ |
|
|
|
Requires: @PACKAGE_NAME@ = @VERSION@ @RPM_BUILD_DEPEND@ |
|
|
|
|
|
|
|
|
|
|
|
%description devel |
|
|
|
%description devel |
|
|
|
@README@ |
|
|
|
@README@ |
|
|
@ -1672,14 +1729,18 @@ This Package contains all files required for developement. |
|
|
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
%files devel |
|
|
|
%defattr(-,root,root,-) |
|
|
|
%defattr(-,root,root,-) |
|
|
|
/usr/%_lib/@PACKAGE_NAME@.so |
|
|
|
/usr/%_lib/*.so |
|
|
|
/usr/%_lib/@PACKAGE_NAME@.a |
|
|
|
/usr/%_lib/*.a |
|
|
|
/usr/%_lib/@PACKAGE_NAME@.la |
|
|
|
/usr/%_lib/*.la |
|
|
|
/usr/%_lib/pkgconfig |
|
|
|
/usr/%_lib/pkgconfig |
|
|
|
/usr/include/* |
|
|
|
/usr/include/* |
|
|
|
%doc |
|
|
|
%doc |
|
|
|
/usr/share/@PACKAGE_NAME@ |
|
|
|
$(if testtag AX_USE_DOXYGEN AX_USE_PERLDOC; then |
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/html |
|
|
|
echo '/usr/share/doc/packages/@PACKAGE_NAME@/html' |
|
|
|
|
|
|
|
fi) |
|
|
|
|
|
|
|
$(if testtag AX_BUILD_EXAMPLES; then |
|
|
|
|
|
|
|
echo '/usr/share/doc/packages/@PACKAGE_NAME@/examples' |
|
|
|
|
|
|
|
fi) |
|
|
|
EOF2 |
|
|
|
EOF2 |
|
|
|
fi) |
|
|
|
fi) |
|
|
|
|
|
|
|
|
|
|
|