Compare commits
77 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0a933c8c2 | ||
|
|
94936dbd94 | ||
|
|
3f26613c07 | ||
|
|
cd925e9500 | ||
|
|
9a8dfdf7db | ||
|
|
76210af2f2 | ||
|
|
14f1508a42 | ||
|
|
e1a09b9119 | ||
|
|
ebe124e018 | ||
|
|
5af012a1ac | ||
|
|
11e0cb820a | ||
|
|
c537983848 | ||
|
|
9d2cb2a039 | ||
|
|
0ffea0bfce | ||
|
|
3a14b1da00 | ||
|
|
d79b26d86c | ||
|
|
93b92f9b2b | ||
|
|
2f21adad01 | ||
|
|
a50532c2d7 | ||
|
|
f803d51e0e | ||
|
|
5b816ac676 | ||
|
|
4156ad426d | ||
|
|
4990e6331c | ||
|
|
b1bad1c065 | ||
|
|
64c420aa28 | ||
|
|
74b1d5e065 | ||
|
|
5ee3ef6125 | ||
|
|
03a4de12e5 | ||
|
|
26c6abec6a | ||
|
|
3a043c11ce | ||
|
|
5cbcf356be | ||
|
|
7ff2bfbe8c | ||
|
|
2fea21d391 | ||
|
|
41bbc89b27 | ||
|
|
e8f71174c9 | ||
|
|
92c7aeea13 | ||
|
|
d56854bc87 | ||
|
|
2789748227 | ||
|
|
c0a97915db | ||
|
|
c1f3964d19 | ||
|
|
255289d291 | ||
|
|
89eac9fffc | ||
|
|
d279de8fc9 | ||
|
|
b40c427c43 | ||
|
|
f22c9e2467 | ||
|
|
02a1953664 | ||
|
|
f47522c905 | ||
|
|
18202c10ef | ||
|
|
a5ced91829 | ||
|
|
edbd329a9e | ||
|
|
1629e7c932 | ||
|
|
6ca93012d5 | ||
|
|
accc1f4bde | ||
|
|
efb7efd024 | ||
|
|
780ae8245b | ||
|
|
5a8d06c02e | ||
|
|
22a9feb64e | ||
|
|
5ea1f28ad7 | ||
|
|
13e1c2b3c0 | ||
|
|
34edc46e9e | ||
|
|
358243f960 | ||
|
|
e6e96ef67f | ||
|
|
002e5fd865 | ||
|
|
62d5ea325f | ||
|
|
22e05c7993 | ||
|
|
762d2b5bea | ||
|
|
be82c4e57a | ||
|
|
3955a9dbbe | ||
|
|
76b89ce87e | ||
|
|
95ff9e77f0 | ||
|
|
64822062d2 | ||
|
|
38cc9dd67d | ||
|
|
f4b17e4266 | ||
|
|
0d161d6b95 | ||
|
|
f4e89b99c2 | ||
|
|
8a2f0096ae | ||
|
|
bffba82ed6 |
46
Doxyfile
46
Doxyfile
@@ -272,22 +272,6 @@ SUBGROUPING = YES
|
|||||||
|
|
||||||
TYPEDEF_HIDES_STRUCT = NO
|
TYPEDEF_HIDES_STRUCT = NO
|
||||||
|
|
||||||
# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
|
|
||||||
# determine which symbols to keep in memory and which to flush to disk.
|
|
||||||
# When the cache is full, less often used symbols will be written to disk.
|
|
||||||
# For small to medium size projects (<1000 input files) the default value is
|
|
||||||
# probably good enough. For larger projects a too small cache size can cause
|
|
||||||
# doxygen to be busy swapping symbols to and from disk most of the time
|
|
||||||
# causing a significant performance penality.
|
|
||||||
# If the system has enough physical memory increasing the cache will improve the
|
|
||||||
# performance by keeping more symbols in memory. Note that the value works on
|
|
||||||
# a logarithmic scale so increasing the size by one will rougly double the
|
|
||||||
# memory usage. The cache size is given by this formula:
|
|
||||||
# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
|
|
||||||
# corresponding to a cache size of 2^16 = 65536 symbols
|
|
||||||
|
|
||||||
SYMBOL_CACHE_SIZE = 0
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# Build related configuration options
|
# Build related configuration options
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
@@ -396,7 +380,7 @@ INLINE_INFO = YES
|
|||||||
# alphabetically by member name. If set to NO the members will appear in
|
# alphabetically by member name. If set to NO the members will appear in
|
||||||
# declaration order.
|
# declaration order.
|
||||||
|
|
||||||
SORT_MEMBER_DOCS = YES
|
SORT_MEMBER_DOCS = NO
|
||||||
|
|
||||||
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
|
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
|
||||||
# brief documentation of file, namespace and class members alphabetically
|
# brief documentation of file, namespace and class members alphabetically
|
||||||
@@ -466,12 +450,6 @@ MAX_INITIALIZER_LINES = 30
|
|||||||
|
|
||||||
SHOW_USED_FILES = YES
|
SHOW_USED_FILES = YES
|
||||||
|
|
||||||
# If the sources in your project are distributed over multiple directories
|
|
||||||
# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
|
|
||||||
# in the documentation. The default is NO.
|
|
||||||
|
|
||||||
SHOW_DIRECTORIES = NO
|
|
||||||
|
|
||||||
# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
|
# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
|
||||||
# This will remove the Files entry from the Quick Index and from the
|
# This will remove the Files entry from the Quick Index and from the
|
||||||
# Folder Tree View (if specified). The default is YES.
|
# Folder Tree View (if specified). The default is YES.
|
||||||
@@ -564,7 +542,7 @@ WARN_LOGFILE =
|
|||||||
# directories like "/usr/src/myproject". Separate the files or directories
|
# directories like "/usr/src/myproject". Separate the files or directories
|
||||||
# with spaces.
|
# with spaces.
|
||||||
|
|
||||||
INPUT =
|
INPUT = include/mce
|
||||||
|
|
||||||
# This tag can be used to specify the character encoding of the source files
|
# This tag can be used to specify the character encoding of the source files
|
||||||
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
||||||
@@ -792,12 +770,6 @@ HTML_FOOTER =
|
|||||||
|
|
||||||
HTML_STYLESHEET =
|
HTML_STYLESHEET =
|
||||||
|
|
||||||
# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
|
|
||||||
# files or namespaces will be aligned in HTML using tables. If set to
|
|
||||||
# NO a bullet list will be used.
|
|
||||||
|
|
||||||
HTML_ALIGN_MEMBERS = YES
|
|
||||||
|
|
||||||
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
|
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
|
||||||
# documentation will contain sections that can be hidden and shown after the
|
# documentation will contain sections that can be hidden and shown after the
|
||||||
# page has loaded. For this to work a browser that supports
|
# page has loaded. For this to work a browser that supports
|
||||||
@@ -1133,18 +1105,6 @@ GENERATE_XML = NO
|
|||||||
|
|
||||||
XML_OUTPUT = xml
|
XML_OUTPUT = xml
|
||||||
|
|
||||||
# The XML_SCHEMA tag can be used to specify an XML schema,
|
|
||||||
# which can be used by a validating XML parser to check the
|
|
||||||
# syntax of the XML files.
|
|
||||||
|
|
||||||
XML_SCHEMA =
|
|
||||||
|
|
||||||
# The XML_DTD tag can be used to specify an XML DTD,
|
|
||||||
# which can be used by a validating XML parser to check the
|
|
||||||
# syntax of the XML files.
|
|
||||||
|
|
||||||
XML_DTD =
|
|
||||||
|
|
||||||
# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
|
# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
|
||||||
# dump the program listings (including syntax highlighting
|
# dump the program listings (including syntax highlighting
|
||||||
# and cross-referencing information) to the XML output. Note that
|
# and cross-referencing information) to the XML output. Note that
|
||||||
@@ -1354,7 +1314,7 @@ HAVE_DOT = NO
|
|||||||
# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
|
# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
|
||||||
# containing the font.
|
# containing the font.
|
||||||
|
|
||||||
DOT_FONTNAME = FreeSans
|
DOT_FONTNAME =
|
||||||
|
|
||||||
# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
|
# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
|
||||||
# The default size is 10pt.
|
# The default size is 10pt.
|
||||||
|
|||||||
82
Makefile
82
Makefile
@@ -5,38 +5,68 @@
|
|||||||
# Author: David Weinehall <david.weinehall@nokia.com>
|
# Author: David Weinehall <david.weinehall@nokia.com>
|
||||||
# Modified by: Ilya Dogolazky, Tuomo Tanskanen
|
# Modified by: Ilya Dogolazky, Tuomo Tanskanen
|
||||||
|
|
||||||
INSTALL_DIR := install -d
|
# ----------------------------------------------------------------------------
|
||||||
INSTALL_DATA := install -o root -g root --mode=644
|
# TOP LEVEL TARGETS
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
DOXYGEN := doxygen
|
.PHONY: build doc install clean distclean mostlyclean
|
||||||
|
|
||||||
PCDIR := $(DESTDIR)/usr/lib/pkgconfig
|
build::
|
||||||
INCLUDEDIR := $(DESTDIR)/usr/include/mce
|
|
||||||
|
|
||||||
TOPDIR := $(shell /bin/pwd)
|
doc::
|
||||||
INCDIR := $(TOPDIR)/include/mce
|
|
||||||
DOCDIR := $(TOPDIR)/doc
|
|
||||||
|
|
||||||
PCFILE := mce.pc
|
install::
|
||||||
INCLUDE_FILES := $(INCDIR)/dbus-names.h $(INCDIR)/mode-names.h
|
|
||||||
|
|
||||||
.PHONY: doc
|
mostlyclean::
|
||||||
doc: doc/warnings
|
$(RM) *.bak *~
|
||||||
|
$(RM) mce/include/*.bak mce/include/*~
|
||||||
|
|
||||||
doc/warnings: $(INCLUDE_FILES) Doxyfile
|
clean:: mostlyclean
|
||||||
@if [ ! -d "$(DOCDIR)" ]; then mkdir "$(DOCDIR)"; fi
|
|
||||||
@$(DOXYGEN) 2> $(TOPDIR)/doc/warnings > /dev/null
|
|
||||||
|
|
||||||
clean:
|
distclean:: clean
|
||||||
@if [ x"$(DOCDIR)" != x"" ]; then \
|
|
||||||
rm -rf "$(DOCDIR)"; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
.PHONY: install
|
# ----------------------------------------------------------------------------
|
||||||
install: doc
|
# INSTALL CONFIG
|
||||||
$(INSTALL_DIR) $(PCDIR) $(INCLUDEDIR) &&\
|
# ----------------------------------------------------------------------------
|
||||||
$(INSTALL_DATA) $(PCFILE) $(PCDIR) &&\
|
|
||||||
$(INSTALL_DATA) $(INCLUDE_FILES) $(INCLUDEDIR)
|
|
||||||
|
|
||||||
.PHONY: distclean
|
DESTDIR ?= /tmp/test-mce-dev
|
||||||
distclean: clean
|
|
||||||
|
PCDIR ?= /usr/lib/pkgconfig
|
||||||
|
INCLUDEDIR := /usr/include/mce
|
||||||
|
|
||||||
|
INSTALL_DIR := install -m 755 -d
|
||||||
|
INSTALL_DATA := install -m 644
|
||||||
|
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# FILES TO BUILD / INSTALL
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
PCFILE += mce.pc
|
||||||
|
INCLUDE_FILES += include/mce/dbus-names.h
|
||||||
|
INCLUDE_FILES += include/mce/mode-names.h
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# DOCUMENTATION RULES
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
doc:: doc/doxygen.log
|
||||||
|
|
||||||
|
doc/doxygen.log: $(INCLUDE_FILES) Doxyfile
|
||||||
|
mkdir -p doc
|
||||||
|
doxygen 1> $@ # stdout=noise stderr=warnings
|
||||||
|
|
||||||
|
clean::
|
||||||
|
$(RM) -rf doc
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# INSTALL RULES
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
install::
|
||||||
|
# package config files
|
||||||
|
$(INSTALL_DIR) $(DESTDIR)$(PCDIR)
|
||||||
|
$(INSTALL_DATA) $(PCFILE) $(DESTDIR)$(PCDIR)/
|
||||||
|
# header files
|
||||||
|
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
|
||||||
|
$(INSTALL_DATA) $(INCLUDE_FILES) $(DESTDIR)$(INCLUDEDIR)
|
||||||
|
|||||||
148
debian/changelog
vendored
148
debian/changelog
vendored
@@ -1,3 +1,151 @@
|
|||||||
|
mce-dev (1.32.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add charging suspendable dbus constant. JB#59152
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jolla.com> Tue, 22 Nov 2022 14:22:52 +0200
|
||||||
|
|
||||||
|
mce-dev (1.31.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add forced charging D-Bus constants. JB#58372
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jolla.com> Tue, 18 Oct 2022 10:47:06 +0300
|
||||||
|
|
||||||
|
mce-dev (1.30.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add charging hysteresis state D-Bus constants. JB#40062
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jolla.com> Tue, 22 Feb 2022 04:19:53 +0200
|
||||||
|
|
||||||
|
mce-dev (1.29.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add mouse availability state D-Bus constants. JB#55866
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jolla.com> Mon, 25 Oct 2021 18:09:15 +0300
|
||||||
|
|
||||||
|
mce-dev (1.28.3) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce-dev] Set rpm build arch to noarch
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 01 Sep 2020 11:42:42 +0300
|
||||||
|
|
||||||
|
mce-dev (1.28.2) unstable; urgency=low
|
||||||
|
|
||||||
|
* [aarch64] Specify pcdir with use of libdir. Contributes to JB#49681
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Mon, 25 May 2020 16:43:30 +0300
|
||||||
|
|
||||||
|
mce-dev (1.28.1) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce-dev] Make the makefile compatible with Busybox
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 07 Apr 2020 09:20:57 +0300
|
||||||
|
|
||||||
|
mce-dev (1.28.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add charger state D-Bus constants. JB#44852
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 08 Oct 2019 12:59:35 +0300
|
||||||
|
|
||||||
|
mce-dev (1.27.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add charger type D-Bus constants. JB#38667
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Mon, 26 Aug 2019 09:36:42 +0300
|
||||||
|
|
||||||
|
mce-dev (1.26.1) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce-dev] fix url. Contributes to JB#33684
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 25 Jun 2019 10:11:01 +0300
|
||||||
|
|
||||||
|
mce-dev (1.26.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add D-Bus constants for button backlight mode. JB#42094
|
||||||
|
* [mce] Add missing Doxygen group name tag
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 20 Nov 2018 12:42:26 +0200
|
||||||
|
|
||||||
|
mce-dev (1.25.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add blanking pause related D-Bus constants. JB#41340
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 20 Mar 2018 10:07:37 +0200
|
||||||
|
|
||||||
|
mce-dev (1.24.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [rpmbuild] Use _smp_mflags instead of jobs macro
|
||||||
|
* [makefile] Do not silence doxygen warnings
|
||||||
|
* [doxygen] Remove obsolete settings that cause warnings
|
||||||
|
* [doxygen] Do not sort member docs
|
||||||
|
* [doxygen] Do not scan the whole source tree
|
||||||
|
* [mce] Add missing methods and signals. MER#1854
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Fri, 24 Nov 2017 12:08:00 +0200
|
||||||
|
|
||||||
|
mce-dev (1.23.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add button backlight policy related D-Bus constants. JB#39838
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Fri, 06 Oct 2017 06:35:37 +0300
|
||||||
|
|
||||||
|
mce-dev (1.22.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add input policy related D-Bus constants. JB#38001
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Mon, 10 Apr 2017 15:22:37 +0300
|
||||||
|
|
||||||
|
mce-dev (1.21.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Expose battery/charging data on D-Bus. Contributes to JB#37422
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Mon, 23 Jan 2017 11:58:37 +0200
|
||||||
|
|
||||||
|
mce-dev (1.20.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add method call for getting all mce settings. JB#34813
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Thu, 10 Nov 2016 08:27:14 +0200
|
||||||
|
|
||||||
|
mce-dev (1.19.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [powerkey] Add method for ignoring incoming call. JB#20728
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Wed, 04 May 2016 12:54:34 +0300
|
||||||
|
|
||||||
|
mce-dev (1.18.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [powerkey] Add constants for powerkey events. Fixes MER#1310
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Mon, 14 Sep 2015 11:44:27 +0300
|
||||||
|
|
||||||
|
mce-dev (1.17.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add D-Bus constants for exposing display blanking policy.
|
||||||
|
Contributes to JB#29675
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Thu, 18 Jun 2015 12:28:10 +0300
|
||||||
|
|
||||||
|
mce-dev (1.16.1) unstable; urgency=low
|
||||||
|
|
||||||
|
* [packaging] Remove old spectacle cruft. Fixes JB#28938
|
||||||
|
* [packaging] Remove rpm build time patch for file ownership
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Wed, 27 May 2015 08:09:56 +0300
|
||||||
|
|
||||||
|
mce-dev (1.16.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add D-Bus constants for exposing blanking pause and inhibit
|
||||||
|
states. Contributes to JB#28929
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Wed, 20 May 2015 12:54:50 +0300
|
||||||
|
|
||||||
|
mce-dev (1.15.0) unstable; urgency=low
|
||||||
|
|
||||||
|
* [mce] Add dbus method for requesting settings reset. Contributes to
|
||||||
|
JB#24286
|
||||||
|
|
||||||
|
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 17 Feb 2015 10:42:49 +0200
|
||||||
|
|
||||||
mce-dev (1.14.0) unstable; urgency=low
|
mce-dev (1.14.0) unstable; urgency=low
|
||||||
|
|
||||||
* [mce] Add dbus method for requesting display low power mode.
|
* [mce] Add dbus method for requesting display low power mode.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2
mce.pc
2
mce.pc
@@ -3,7 +3,7 @@ includedir=${prefix}/include
|
|||||||
|
|
||||||
Name: mce
|
Name: mce
|
||||||
Description: Mode Control Entity
|
Description: Mode Control Entity
|
||||||
Version: 1.14.0
|
Version: 1.32.0
|
||||||
Requires:
|
Requires:
|
||||||
Libs:
|
Libs:
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
diff -urN a/Makefile b/Makefile
|
|
||||||
--- a/Makefile 2009-11-30 09:41:59.397638000 +0200
|
|
||||||
+++ b/Makefile 2010-07-07 14:50:26.226452261 +0300
|
|
||||||
@@ -6,7 +6,7 @@
|
|
||||||
# Modified by: Ilya Dogolazky, Tuomo Tanskanen
|
|
||||||
|
|
||||||
INSTALL_DIR := install -d
|
|
||||||
-INSTALL_DATA := install -o root -g root --mode=644
|
|
||||||
+INSTALL_DATA := install --mode=644
|
|
||||||
|
|
||||||
DOXYGEN := doxygen
|
|
||||||
|
|
||||||
@@ -1,29 +1,18 @@
|
|||||||
#
|
|
||||||
# Do NOT Edit the Auto-generated Part!
|
|
||||||
# Generated by: spectacle version 0.26
|
|
||||||
#
|
|
||||||
|
|
||||||
Name: mce-headers
|
Name: mce-headers
|
||||||
|
|
||||||
# >> macros
|
|
||||||
# << macros
|
|
||||||
|
|
||||||
Summary: Development files for mce
|
Summary: Development files for mce
|
||||||
Version: 1.14.0
|
Version: 1.32.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
URL: https://github.com/nemomobile/mce-dev
|
URL: https://git.sailfishos.org/mer-core/mce-dev
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source100: mce-headers.yaml
|
BuildArch: noarch
|
||||||
Patch0: %{name}-1.10.24-no-ownership.patch
|
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains headers defining the D-Bus method calls
|
This package contains headers defining the D-Bus method calls
|
||||||
provided by the Mode Control Entity, and the signals emitted by it.
|
provided by the Mode Control Entity, and the signals emitted by it.
|
||||||
|
|
||||||
|
|
||||||
%package -n mce-doc
|
%package -n mce-doc
|
||||||
Summary: Documentation files for mce D-Bus API
|
Summary: Documentation files for mce D-Bus API
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
@@ -33,48 +22,27 @@ BuildArch: noarch
|
|||||||
This package contains documentation describing the D-Bus method calls
|
This package contains documentation describing the D-Bus method calls
|
||||||
provided by the Mode Control Entity, and the signals emitted by it.
|
provided by the Mode Control Entity, and the signals emitted by it.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
# %{name}-1.10.24-no-ownership.patch
|
|
||||||
%patch0 -p1
|
|
||||||
# >> setup
|
|
||||||
# << setup
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# >> build pre
|
./verify_version
|
||||||
# << build pre
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
make %{?jobs:-j%jobs}
|
|
||||||
|
|
||||||
# >> build post
|
|
||||||
make doc
|
make doc
|
||||||
# << build post
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
# >> install pre
|
make install PCDIR=%{_libdir}/pkgconfig DESTDIR=%{?buildroot}
|
||||||
# << install pre
|
|
||||||
%make_install
|
|
||||||
|
|
||||||
# >> install post
|
|
||||||
install -d %{buildroot}/%{_docdir}/mce-doc/html/
|
install -d %{buildroot}/%{_docdir}/mce-doc/html/
|
||||||
install -m 644 doc/html/* %{buildroot}/%{_docdir}/mce-doc/html/
|
install -m 644 doc/html/* %{buildroot}/%{_docdir}/mce-doc/html/
|
||||||
# << install post
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
# >> files
|
|
||||||
%doc COPYING debian/copyright
|
%doc COPYING debian/copyright
|
||||||
%{_includedir}/mce/*.h
|
%{_includedir}/mce/*.h
|
||||||
%{_libdir}/pkgconfig/mce.pc
|
%{_libdir}/pkgconfig/mce.pc
|
||||||
# << files
|
|
||||||
|
|
||||||
%files -n mce-doc
|
%files -n mce-doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
# >> files mce-doc
|
|
||||||
%doc COPYING debian/changelog debian/copyright
|
%doc COPYING debian/changelog debian/copyright
|
||||||
%{_docdir}/mce-doc/html/*
|
%{_docdir}/mce-doc/html/*
|
||||||
# << files mce-doc
|
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
Name: mce-headers
|
|
||||||
Summary: Development files for mce
|
|
||||||
Version: 1.14.0
|
|
||||||
Release: 1
|
|
||||||
Group: Development/Libraries
|
|
||||||
License: LGPLv2
|
|
||||||
URL: https://github.com/nemomobile/mce-dev
|
|
||||||
Sources:
|
|
||||||
- "%{name}-%{version}.tar.bz2"
|
|
||||||
Patches:
|
|
||||||
- "%{name}-1.10.24-no-ownership.patch"
|
|
||||||
Description: |
|
|
||||||
This package contains headers defining the D-Bus method calls
|
|
||||||
provided by the Mode Control Entity, and the signals emitted by it.
|
|
||||||
|
|
||||||
PkgBR:
|
|
||||||
- doxygen
|
|
||||||
Configure: none
|
|
||||||
Builder: make
|
|
||||||
SubPackages:
|
|
||||||
- Name: mce-doc
|
|
||||||
AsWholeName: yes
|
|
||||||
Summary: Documentation files for mce D-Bus API
|
|
||||||
Group: Documentation
|
|
||||||
BuildArch: noarch
|
|
||||||
AutoDepend: false
|
|
||||||
Description: |
|
|
||||||
This package contains documentation describing the D-Bus method calls
|
|
||||||
provided by the Mode Control Entity, and the signals emitted by it.
|
|
||||||
|
|
||||||
@@ -8,35 +8,34 @@ PC_VERS=$(grep '^Version:' $PC_PATH |sed -e 's/^.*:[[:space:]]*//')
|
|||||||
DEB_PATH=debian/changelog
|
DEB_PATH=debian/changelog
|
||||||
DEB_VERS=$(head -1 $DEB_PATH | sed -e 's/^.*(//' -e 's/).*$//')
|
DEB_VERS=$(head -1 $DEB_PATH | sed -e 's/^.*(//' -e 's/).*$//')
|
||||||
|
|
||||||
SPEC_PATH=${RPM_SOURCE_DIR:-rpm}/${RPM_PACKAGE_NAME:-mce-headers}.spec
|
RPM_PATH=${RPM_SOURCE_DIR:-rpm}/${RPM_PACKAGE_NAME:-mce-headers}.spec
|
||||||
SPEC_VERS=$(grep '^Version:' $SPEC_PATH |sed -e 's/^.*:[[:space:]]*//')
|
RPM_VERS=$(grep '^Version:' $RPM_PATH |sed -e 's/^.*:[[:space:]]*//')
|
||||||
|
|
||||||
YAML_PATH=${RPM_SOURCE_DIR:-rpm}/${RPM_PACKAGE_NAME:-mce-headers}.yaml
|
# Remove initial part of rpm version that equals with version from pkgconfig
|
||||||
|
RPM_XTRA=${RPM_VERS#$PC_VERS}
|
||||||
|
# From that remove initial part that equals with version from spec-file
|
||||||
|
RPM_XTRA=${RPM_XTRA#$RPM_VERS}
|
||||||
|
# If the result is non-empty string, then OBS is doing
|
||||||
|
# delta-after-matching-tag kind of build, which is ok.
|
||||||
|
# But empty string means that spec and Makefile are completely
|
||||||
|
# out of sync, which is bad.
|
||||||
|
|
||||||
RES=0
|
RES=0
|
||||||
|
|
||||||
|
|
||||||
# The yaml file is included in the git tree, but not in the tarball
|
|
||||||
# that is used during the OBS package build ...
|
|
||||||
if [ -f $YAML_PATH ]; then
|
|
||||||
YAML_VERS=$(grep '^Version:' $YAML_PATH |sed -e 's/^.*:[[:space:]]*//')
|
|
||||||
if [ "$SPEC_VERS" != "$YAML_VERS" ]; then
|
|
||||||
echo >&2 "$YAML_PATH $YAML_VERS vs $SPEC_PATH $SPEC_VERS"
|
|
||||||
RES=1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$DEB_VERS" != "$PC_VERS" ]; then
|
if [ "$DEB_VERS" != "$PC_VERS" ]; then
|
||||||
echo >&2 "$PC_PATH $PC_VERS vs $DEB_PATH $DEB_VERS"
|
echo >&2 "$PC_PATH $PC_VERS vs $DEB_PATH $DEB_VERS"
|
||||||
RES=1
|
RES=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SPEC_VERS" != "$PC_VERS" ]; then
|
if [ "$RPM_VERS" != "$PC_VERS" ]; then
|
||||||
echo >&2 "$PC_PATH $PC_VERS vs $SPEC_PATH $SPEC_VERS"
|
if [ -z "$RPM_XTRA" ]; then
|
||||||
RES=1
|
echo >&2 "$PC_PATH $PC_VERS vs $RPM_PATH $RPM_VERS"
|
||||||
|
RES=1
|
||||||
|
else
|
||||||
|
echo "(ignoring patch level in spec file: $RPM_XTRA)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ $RES != 0 ]; then
|
if [ $RES != 0 ]; then
|
||||||
echo >&2 "Conflicting package versions"
|
echo >&2 "Conflicting package versions"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user