Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
a5f434a9
Commit
a5f434a9
authored
Jan 05, 2013
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил возможность отключить сборку SQLITE (--disable-sqlite). Немного переписал spec.
parent
a63651fb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
11 deletions
+48
-11
autogen.sh
autogen.sh
+1
-1
libuniset.spec
conf/libuniset.spec
+27
-6
configure.ac
configure.ac
+17
-1
Makefile.am
extensions/DBServer-SQLite/Makefile.am
+3
-3
No files found.
autogen.sh
View file @
a5f434a9
...
...
@@ -8,4 +8,4 @@ export CFLAGS
CXXFLAGS
=
"
$CFLAGS
"
export
CXXFLAGS
./configure
--enable-maintainer-mode
--prefix
=
/usr
./configure
--enable-maintainer-mode
--prefix
=
/usr
$*
conf/libuniset.spec
View file @
a5f434a9
%def_enable doc
%def_enable mysql
%def_enable sqlite
%define oname uniset
Name: libuniset
...
...
@@ -17,8 +20,14 @@ Source: /var/ftp/pvt/Etersoft/Ourside/unstable/sources/tarball/%name-%version.ta
# Automatically added by buildreq on Fri Nov 26 2010
BuildRequires: libcomedi-devel libcommoncpp2-devel libomniORB-devel libsigc++2.0-devel python-modules xsltproc
%if_enabled mysql
# Using old package name instead of libmysqlclient-devel it absent in branch 5.0 for yauza
BuildRequires: libMySQL-devel
%endif
%if_enabled sqlite
BuildRequires: libsqlite3-devel
%endif
%if_enabled doc
BuildRequires: doxygen
...
...
@@ -37,6 +46,7 @@ Requires: %name = %version-%release
%description devel
Libraries needed to develop for UniSet.
%if_enabled mysql
%package mysql-dbserver
Group: Development/Databases
Summary: MySQL-dbserver implementatioin for UniSet
...
...
@@ -56,7 +66,9 @@ Obsoletes: %oname-mysql-devel
%description mysql-devel
Libraries needed to develop for uniset MySQL
%endif
%if_enabled sqlite
%package sqlite-dbserver
Group: Development/Databases
Summary: SQLite-dbserver implementatioin for UniSet
...
...
@@ -76,6 +88,7 @@ Obsoletes: %oname-sqlite-devel
%description sqlite-devel
Libraries needed to develop for uniset SQLite
%endif
%package utils
Summary: UniSet utilities
...
...
@@ -87,6 +100,8 @@ Obsoletes: %oname-utils
%description utils
UniSet utilities
%if_enabled doc
%package doc
Group: Development/C++
Summary: Documentations for developing with UniSet
...
...
@@ -95,6 +110,8 @@ BuildArch: noarch
%description doc
Documentations for developing with UniSet
%endif
%package extensions
Group: Development/C++
...
...
@@ -123,12 +140,7 @@ Libraries needed to develop for uniset extensions
%build
%autoreconf
%if_enabled doc
%configure
%else
%configure --disable-docs --disable-static
%endif
%configure %{subst_enable doc} %{subst_enable mysql} %{subst_enable sqlite}
%make
%install
...
...
@@ -161,19 +173,27 @@ rm -f %buildroot%_libdir/*.la
%_includedir/%oname/*.tcc
%_includedir/%oname/IOs/
%_includedir/%oname/modbus/
%if_enabled mysql
%_includedir/%oname/mysql/
%endif
%if_enabled sqlite
%_includedir/%oname/sqlite/
%endif
%_libdir/libUniSet.so
%_datadir/idl/%oname/
%_pkgconfigdir/libUniSet.pc
%if_enabled mysql
%files mysql-dbserver
%_bindir/%oname-mysql-*dbserver
%_libdir/*-mysql.so*
%files mysql-devel
%_pkgconfigdir/libUniSetMySQL.pc
%endif
%if_enabled sqlite
%files sqlite-dbserver
%_bindir/%oname-sqlite-*dbserver
...
...
@@ -181,6 +201,7 @@ rm -f %buildroot%_libdir/*.la
%files sqlite-devel
%_pkgconfigdir/libUniSetSQLite.pc
%endif
%if_enabled doc
%files doc
...
...
configure.ac
View file @
a5f434a9
...
...
@@ -38,7 +38,23 @@ PKG_CHECK_MODULES(XML, libxml-2.0)
PKG_CHECK_MODULES(OMNI, omniORB4)
PKG_CHECK_MODULES(SIGC, sigc++-2.0)
PKG_CHECK_MODULES(COMCPP, libccgnu2)
PKG_CHECK_MODULES(SQLITE3, sqlite3)
#check sqlite support
AC_MSG_CHECKING([sqlite support])
buildsqlite=true
AC_ARG_ENABLE(sqlite, AC_HELP_STRING([--disable-sqlite], [disable SQLite support]),
[ if test $enableval = yes; then buildsqlite=true; else buildsqlite=false; fi],[ buildsqlite=true; ])
if test ${buildsqlite} = true; then
AC_MSG_RESULT([enabled])
PKG_CHECK_MODULES(SQLITE3, sqlite3)
else
AC_MSG_RESULT([disabled])
fi
AM_CONDITIONAL(DISABLE_SQLITE, test ${buildsqlite} = false)
# export
LDFLAGS="${OMNI_LIBS} ${XML_LIBS}"
...
...
extensions/DBServer-SQLite/Makefile.am
View file @
a5f434a9
#
if DISABLE_SQLITE
if
DISABLE_SQLITE
#
else
else
USQLITE_VER
=
@LIBVER@
...
...
@@ -27,4 +27,4 @@ devel_includedir = $(includedir)/@PACKAGE@/sqlite
pkgconfigdir
=
$(libdir)
/pkgconfig
pkgconfig_DATA
=
libUniSetSQLite.pc
#
endif
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment