[packages/mce] - devel headers moved to mce-devel.spec; actual mce module here (unfinished)

qboosh qboosh at pld-linux.org
Wed Oct 2 20:56:43 CEST 2019


commit 0a86ebf9eb63db4af34e66e4bc27b37ed90a975b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Oct 2 20:59:55 2019 +0200

    - devel headers moved to mce-devel.spec; actual mce module here (unfinished)

 mce.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 68 insertions(+), 28 deletions(-)
---
diff --git a/mce.spec b/mce.spec
index a3beaba..e05c4b5 100644
--- a/mce.spec
+++ b/mce.spec
@@ -1,46 +1,86 @@
-Summary:	Maemo MCE (Mode Control Entity) definitions
-Summary(pl.UTF-8):	Definicje MCE (Mode Control Entity) dla Maemo
+Summary:	Maemo MCE (Mode Control Entity) modules
+Summary(pl.UTF-8):	Moduły MCE (Mode Control Entity) dla Maemo
 Name:		mce
-Version:	1.5.6
-Release:	1
-License:	BSD
-Group:		Development/Libraries
-Source0:	http://repository.maemo.org/pool/bora/free/source/%{name}-dev_%{version}.tar.gz
-# Source0-md5:	b3a28fe9bcec2fc7ae70f5d819bf3d1a
+Version:	1.8.128.12
+Release:	0.1
+License:	LGPL v2.1
+Group:		Libraries
+#Source0Download: https://github.com/maemo-leste/mce/releases
+Source0:	https://github.com/maemo-leste/mce/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	be3c5139c80b992e972a16a08534220a
 URL:		https://maemo.org/
+BuildRequires:	GConf2-devel >= 2.0
+BuildRequires:	dbus-devel
+BuildRequires:	dbus-glib-devel
+BuildRequires:	dsme-devel
+BuildRequires:	glib2-devel >= 2.0
+BuildRequires:	libcal-devel
+BuildRequires:	libconic-devel
+BuildRequires:	libdevlock-devel
+BuildRequires:	osso-systemui-dbus-devel
+BuildRequires:	pkgconfig
+BuildRequires:	upower-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Maemo MCE (Mode Control Entity) definitions.
+MCE is responsible of handling display control (active/dim/blank),
+activity monitoring (keys, buttons), keyboard backlight, ambient light
+sensor (ALS), LEDs and device mode control. In addition, MCE is
+responsible for providing interface to proximity, accelometer and
+vibra devices.
 
 %description -l pl.UTF-8
-Definicje MCE (Mode Control Entity) dla Maemo.
-
-%package devel
-Summary:	Maemo MCE (Mode Control Entity) definition headers
-Summary(pl.UTF-8):	Pliki nagłówkowe definiujące MCE (Mode Control Entity) dla Maemo
-Group:		Development/Libraries
-
-%description devel
-Maemo MCE (Mode Control Entity) definition headers.
-
-%description devel -l pl.UTF-8
-Pliki nagłówkowe definiujące MCE (Mode Control Entity) dla Maemo.
+MCE odpowiada za obsługę sterowania obrazem (aktywność, ściemnianie,
+wygaszanie), monitorowanie aktywności (klawisze, przyciski),
+podświetlenie klawiatury, czujnik światła otoczenia (ALS - Ambient
+Light Sensor), diody LED i sterowanie trybem urządzenia. Ponadto MCE
+odpowiada za udostępnianie interfejsu do czujnika zbliżeniowego,
+akcelerometru oraz wibratora.
 
 %prep
-%setup -q -n mce-dev-%{version}
+%setup -q
+
+%build
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_includedir}/mce}
 
-install mce.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
-install include/mce/*.h $RPM_BUILD_ROOT%{_includedir}/mce
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	INSTALL="install -m755" \
+	INSTALL_DATA="install -m644" \
+	MODULEDIR=$RPM_BUILD_ROOT%{_libdir}/mce/modules
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files devel
+%files
 %defattr(644,root,root,755)
-%{_includedir}/mce
-%{_pkgconfigdir}/mce.pc
+%doc README
+%attr(755,root,root) %{_sbindir}/devlock-blocker
+%attr(755,root,root) %{_sbindir}/mce
+%dir %{_libdir}/mce
+%dir %{_libdir}/mce/modules
+%attr(755,root,root) %{_libdir}/mce/modules/libaccelerometer.so
+%attr(755,root,root) %{_libdir}/mce/modules/libalarm.so
+%attr(755,root,root) %{_libdir}/mce/modules/libaudiorouting.so
+%attr(755,root,root) %{_libdir}/mce/modules/libbattery-upower.so
+%attr(755,root,root) %{_libdir}/mce/modules/libcallstate.so
+%attr(755,root,root) %{_libdir}/mce/modules/libcamera.so
+%attr(755,root,root) %{_libdir}/mce/modules/libdisplay.so
+%attr(755,root,root) %{_libdir}/mce/modules/libfilter-brightness-als.so
+%attr(755,root,root) %{_libdir}/mce/modules/libfilter-brightness-simple.so
+%attr(755,root,root) %{_libdir}/mce/modules/libhomekey.so
+%attr(755,root,root) %{_libdir}/mce/modules/libinactivity.so
+%attr(755,root,root) %{_libdir}/mce/modules/libkeypad.so
+%attr(755,root,root) %{_libdir}/mce/modules/libled.so
+%attr(755,root,root) %{_libdir}/mce/modules/libvibrator.so
+%dir %{_sysconfdir}/mce
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mce/mce.ini
+/etc/dbus-1/system.d/mce.conf
+/etc/gconf/schemas/devicelock.schemas
+/etc/gconf/schemas/security.schemas
+%dir /var/lib/mce
+%config(noreplace) %verify(not md5 mtime size) /var/lib/mce/mode
+%dir /var/run/mce
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mce.git/commitdiff/0a86ebf9eb63db4af34e66e4bc27b37ed90a975b



More information about the pld-cvs-commit mailing list