...
 
Commits (6)
libical3 (3.0.4-2) unstable; urgency=medium
* Fix Enable GObject Introspection
* Add debian/tests suite with autopkgtests
* Update Standards-Version to 4.3.0 (No change)
-- Nicolas Mora <nicolas@babelouest.org> Fri, 04 Jan 2019 15:42:36 -0500
-- Nicolas Mora <nicolas@babelouest.org> Sun, 06 Jan 2019 13:38:06 -0500
libical3 (3.0.4-1) unstable; urgency=medium
......
......@@ -2,21 +2,26 @@ Source: libical3
Section: libs
Priority: optional
Maintainer: Nicolas Mora <nicolas@babelouest.org>
Build-Depends: cmake,
debhelper (>= 11),
Build-Depends: debhelper (>= 11),
autopkgtest (>= 5.6~),
cmake,
gobject-introspection,
tzdata,
libicu-dev,
libgirepository1.0-dev,
libdb-dev,
libxml2-dev,
valac,
python3-gi,
gtk-doc-tools
Standards-Version: 4.3.0
Homepage: https://github.com/libical/libical
Package: libical-dev
Section: libdevel
Architecture: any
Depends: libical3 (= ${binary:Version}),
Depends: gir1.2-ical-3.0 (= ${binary:Version}),
libical3 (= ${binary:Version}),
${misc:Depends},
libicu-dev,
libdb-dev,
......@@ -29,6 +34,19 @@ Description: iCalendar library implementation in C (development)
and provides a C API for manipulating the component properties, parameters,
and subcomponents.
Package: libical-doc
Section: doc
Architecture: all
Depends: ${misc:Depends}
Suggests: libical-dev
Description: iCalendar library implementation in C (development)
libical is an open source implementation of the IETF's iCalendar calendaring
and scheduling protocols (RFC 2445, 2446, and 2447). It parses iCal components
and provides a C API for manipulating the component properties, parameters,
and subcomponents.
.
This package contains the documentation.
Package: libical3
Architecture: any
Multi-Arch: same
......@@ -42,3 +60,20 @@ Description: iCalendar library implementation in C (runtime)
.
This package contains the files necessary for running applications that use
the libical library.
Package: gir1.2-ical-3.0
Section: introspection
Architecture: any
Depends: ${gir:Depends}, ${misc:Depends}, ${shlibs:Depends}
Provides: gir1.2-icalglib-3.0
Description: iCalendar library implementation in C (runtime)
libical is an open source implementation of the IETF's iCalendar calendaring
and scheduling protocols (RFC 2445, 2446, and 2447). It parses iCal components
and provides a C API for manipulating the component properties, parameters,
and subcomponents.
.
This package contains introspection data.
.
It can be used by packages using the GIRepository format to generate dynamic
bindings.
/usr/lib/*/girepository-1.0/*.typelib
......@@ -2,3 +2,7 @@ usr/include
usr/lib/*/libical*.a
usr/lib/*/libical*.so
usr/lib/*/pkgconfig/libical.pc
usr/lib/*/pkgconfig/libical-glib.pc
usr/lib/*/cmake
usr/share/gir-1.0/*.gir
usr/share/vala/vapi/*.vapi
usr/share/gtk-doc/html/libical-glib/*
Change GObject Introspection files to a fixed API version
--- a/src/libical-glib/CMakeLists.txt
+++ b/src/libical-glib/CMakeLists.txt
@@ -118,17 +118,13 @@
endforeach()
include(GObjectIntrospectionMacros)
- set(LIBICAL_GLIB_GIR_VERSION_STRING "${LIBICAL_LIB_MAJOR_VERSION}.${LIBICAL_LIB_MINOR_VERSION}")
+ set(LIBICAL_GLIB_GIR_VERSION_STRING "${LIBICAL_LIB_MAJOR_VERSION}.0")
+ set(LIB_VERSION "${LIBICAL_LIB_MAJOR_VERSION}_0")
set(GObjectIntrospection_GIRS)
set(GObjectIntrospection_SCANNER_FLAGS)
set(GObjectIntrospection_SCANNER_ARGS)
set(GObjectIntrospection_COMPILER_ARGS)
- set(LIB_VERSION)
-
- set(LIB_VERSION ${LIBICAL_GLIB_GIR_VERSION_STRING})
- string(REPLACE "." "_" LIB_VERSION "${LIB_VERSION}")
- string(REPLACE "-" "_" LIB_VERSION "${LIB_VERSION}")
set(GObjectIntrospection_SCANNER_ARGS
--add-include-path=${CMAKE_CURRENT_BINARY_DIR}
@@ -139,8 +135,8 @@
--add-include-path=${CMAKE_SOURCE_DIR}/src/libical
--library-path=${LIBRARY_OUTPUT_PATH}
--identifier-prefix=ICal
- --pkg-export libical-glib-${LIBICAL_LIB_VERSION_STRING}
- --c-include="libical-glib/libical-glib.h"
+ --pkg-export libical-glib
+ --c-include=libical-glib/libical-glib.h
--cflags-begin
-I${CMAKE_BINARY_DIR}/src
-I${CMAKE_BINARY_DIR}/src/libical
--- a/src/libical/CMakeLists.txt
+++ b/src/libical/CMakeLists.txt
@@ -165,20 +165,23 @@
#set(GObjectIntrospection_SCANNER_ARGS "--add-include-path=${CMAKE_CURRENT_SOURCE_DIR}")
#set(GObjectIntrospection_COMPILER_ARGS "--includedir=${CMAKE_CURRENT_SOURCE_DIR}")
- set(LIB_VERSION ${LIBICAL_LIB_VERSION_STRING})
- string(REPLACE "." "_" LIB_VERSION "${LIB_VERSION}")
- string(REPLACE "-" "_" LIB_VERSION "${LIB_VERSION}")
-
- set(libical_${LIB_VERSION}_gir "libical")
- set(libical_${LIB_VERSION}_gir_VERSION ${LIBICAL_LIB_VERSION_STRING})
- set(GObjectIntrospection_SCANNER_ARGS -I${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/src/libical/ical.h)
- set(libical_${LIB_VERSION}_gir_LIBRARY "ical")
- set(libical_${LIB_VERSION}_gir_INCLUDES GObject-2.0)
+ set(LIBICAL_GIR_VERSION_STRING "${LIBICAL_LIB_MAJOR_VERSION}.0")
+ set(LIB_VERSION "${LIBICAL_LIB_MAJOR_VERSION}_0")
+ set(ICal_${LIB_VERSION}_gir "libical")
+ set(ICal_${LIB_VERSION}_gir_VERSION ${LIBICAL_GIR_VERSION_STRING})
+ set(GObjectIntrospection_SCANNER_ARGS
+ --c-include=libical/ical.h
+ --pkg-export libical
+ --identifier-prefix=ical
+ -I${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/src/libical/ical.h)
+ set(ICal_${LIB_VERSION}_gir_LIBRARY "ical")
+ set(ICal_${LIB_VERSION}_gir_INCLUDES GObject-2.0)
set(_includes ${_includes} "-L${LIBRARY_OUTPUT_PATH}")
- set(libical_${LIB_VERSION}_gir_CFLAGS ${_includes})
- set(libical_${LIB_VERSION}_gir_LIBS ical)
+ set(ICal_${LIB_VERSION}_gir_CFLAGS ${_includes})
+ set(ICal_${LIB_VERSION}_gir_LIBS ical)
- list(APPEND GObjectIntrospection_GIRS libical-${LIBICAL_LIB_VERSION_STRING}.gir)
+ list(APPEND GObjectIntrospection_GIRS ICal-${LIBICAL_GIR_VERSION_STRING}.gir)
gir_add_introspections(GObjectIntrospection_GIRS)
endif()
icalbdbset.patch
gobject-introspection-version.patch
......@@ -2,14 +2,20 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND=-DGOBJECT_INTROSPECTION=true -DICAL_GLIB_VAPI=true
%:
dh $@ --buildsystem=cmake --no-parallel --list-missing \
--dbgsym-migration='libical-dbg (<< 2~)'
dh $@ --with gir --buildsystem=cmake --no-parallel
override_dh_auto_configure:
dh_auto_configure -- -DGOBJECT_INTROSPECTION=true -DICAL_GLIB_VAPI=true
override_dh_missing:
dh_missing --list-missing
ifneq (,$(filter $(DEB_HOST_ARCH), kfreebsd-amd64 kfreebsd-i386))
override_dh_auto_test:
: # the tests hang on the buildds, don't run them
: -dh_auto_test
endif
override_dh_strip:
dh_strip --dbgsym-migration='libical-dbg (<< 2~)'
Tests: unit-test
Depends: @, gcc, g++, libc-dev, check, cmake, valac, tzdata, libicu-dev, libgirepository1.0-dev, libdb-dev, libxml2-dev,
Depends: @, gcc, libc-dev, cmake, check, gobject-introspection, libgirepository1.0-dev, libxml2-dev, valac, python3-gi, gtk-doc-tools
......@@ -6,6 +6,6 @@ exec 2>&1
mkdir build
cd build
cmake ..
cmake -DGOBJECT_INTROSPECTION=true -DICAL_GLIB_VAPI=true ..
make
make test