diff options
Diffstat (limited to 'packaging.in/murphy.spec.in')
-rw-r--r-- | packaging.in/murphy.spec.in | 596 |
1 files changed, 0 insertions, 596 deletions
diff --git a/packaging.in/murphy.spec.in b/packaging.in/murphy.spec.in deleted file mode 100644 index 445452b..0000000 --- a/packaging.in/murphy.spec.in +++ /dev/null @@ -1,596 +0,0 @@ -# By default we build with distro-default compilation flags which -# enables optimizations. If you want to build with full debugging -# ie. with optimization turned off and full debug info (-O0 -g3) -# pass '--with debug' to rpmbuild on the command line. Similary -# you can chose to compile with/without pulse, ecore, glib, qt, -# dbus, and telephony support. --without squashpkg will prevent -# squashing the -core and -plugins-base packages into the base -# murphy package. - -%{!?_with_debug:%{!?_without_debug:%define _without_debug 0}} -%{!?_with_lua:%{!?_without_lua:%define _with_lua 1}} -%{!?_with_pulse:%{!?_without_pulse:%define _with_pulse 1}} -%{!?_with_ecore:%{!?_without_ecore:%define _with_ecore 1}} -%{!?_with_glib:%{!?_without_glib:%define _with_glib 1}} -%{!?_with_qt:%{!?_without_qt:%define _without_qt 1}} -%{!?_with_dbus:%{!?_without_dbus:%define _with_dbus 1}} -%{!?_with_telephony:%{!?_without_telephony:%define _with_telephony 1}} -%{!?_with_audiosession:%{!?_without_audiosession:%define _with_audiosession 1}} -%{!?_with_websockets:%{!?_without_websockets:%define _with_websockets 1}} -%{!?_with_smack:%{!?_without_smack:%define _with_smack 1}} -%{!?_with_squashpkg:%{!?_without_squashpkg:%define _with_squashpkg 1}} - -# TODO: take care of /lib vs /lib64... -%define systemddir /lib/systemd - -Summary: Murphy policy framework -Name: murphy -Version: @VERSION@ -Release: 1 -License: BSD-3-Clause -Group: System/Service -URL: http://01.org/murphy/ -Source0: %{name}-%{version}.tar.gz -@DECLARE_PATCHES@ -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%endif - -Requires(post): /bin/systemctl -Requires(postun): /bin/systemctl - -BuildRequires: flex -BuildRequires: bison -BuildRequires: pkgconfig(lua) -BuildRequires: pkgconfig(libsystemd-daemon) -BuildRequires: pkgconfig(libsystemd-journal) - -BuildRequires: pkgconfig(wayland-client) -BuildRequires: pkgconfig(ivi-extension-protocol) -BuildRequires: ico-uxf-weston-plugin-devel - -%if %{?_with_pulse:1}%{!?_with_pulse:0} -BuildRequires: pkgconfig(libpulse) -%endif -%if %{?_with_ecore:1}%{!?_with_ecore:0} -BuildRequires: pkgconfig(ecore) -BuildRequires: mesa-libEGL -BuildRequires: mesa-libGLESv2 -%endif -%if %{?_with_glib:1}%{!?_with_glib:0} -BuildRequires: pkgconfig(glib-2.0) -%endif -%if %{?_with_qt:1}%{!?_with_qt:0} -BuildRequires: pkgconfig(QtCore) -%endif -%if %{?_with_dbus:1}%{!?_with_dbus:0} -BuildRequires: pkgconfig(dbus-1) -%endif -%if %{?_with_telephony:1}%{!?_with_telephony:0} -BuildRequires: pkgconfig(ofono) -%endif -%if %{?_with_audiosession:1}%{!?_with_audiosession:0} -BuildRequires: pkgconfig(audio-session-mgr) -%endif -%if %{?_with_websockets:1}%{!?_with_websockets:0} -BuildRequires: libwebsockets-devel -%endif -BuildRequires: pkgconfig(json) - -%if %{?_with_smack:1}%{!?_with_smack:0} -BuildRequires: pkgconfig(libsmack) -%endif - -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -%package core -Summary: Murphy core runtime libraries -Group: System/Libraries - -%package plugins-base -Summary: The basic set of Murphy plugins -Group: System/Service -Requires: %{name} = %{version} -Requires: %{name}-core = %{version} -%endif - -%package devel -Summary: The header files and libraries needed for Murphy development -Group: System/Libraries -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif -Requires: libjson-devel - -%package doc -Summary: Documentation for Murphy -Group: SDK/Documentation - -%if %{?_with_pulse:1}%{!?_with_pulse:0} -%package pulse -Summary: Murphy PulseAudio mainloop integration -Group: System/Libraries -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif - -%package pulse-devel -Summary: Murphy PulseAudio mainloop integration development files -Group: System/Libraries -Requires: %{name}-pulse = %{version} -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif -%endif - -%if %{?_with_ecore:1}%{!?_with_ecore:0} -%package ecore -Summary: Murphy EFL/ecore mainloop integration -Group: System/Libraries -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif - -%package ecore-devel -Summary: Murphy EFL/ecore mainloop integration development files -Group: System/Libraries -Requires: %{name}-ecore = %{version} -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif -%endif - -%if %{?_with_glib:1}%{!?_with_glib:0} -%package glib -Summary: Murphy glib mainloop integration -Group: System/Libraries -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif - -%package glib-devel -Summary: Murphy glib mainloop integration development files -Group: System/Libraries -Requires: %{name}-glib = %{version} -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif -%endif - -%if %{?_with_qt:1}%{!?_with_qt:0} -%package qt -Summary: Murphy Qt mainloop integration -Group: System/Libraries -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif - -%package qt-devel -Summary: Murphy Qt mainloop integration development files -Group: System/Libraries -Requires: %{name}-qt = %{version} -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif -%endif - -%package tests -Summary: Various test binaries for Murphy -Group: System/Testing -Requires: %{name} = %{version} -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -Requires: %{name}-core = %{version} -%else -Requires: %{name} = %{version} -%endif - -%description -This package contains the basic daemon. - -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -%description core -This package contains the core runtime libraries. - -%description plugins-base -This package contains a basic set of plugins. -%endif - -%description devel -This package contains header files and libraries necessary for development. - -%description doc -This package contains documentation. - -%if %{?_with_pulse:1}%{!?_with_pulse:0} -%description pulse -This package contains the Murphy PulseAudio mainloop integration runtime files. - -%description pulse-devel -This package contains the Murphy PulseAudio mainloop integration development -files. -%endif - -%if %{?_with_ecore:1}%{!?_with_ecore:0} -%description ecore -This package contains the Murphy EFL/ecore mainloop integration runtime files. - -%description ecore-devel -This package contains the Murphy EFL/ecore mainloop integration development -files. -%endif - -%if %{?_with_glib:1}%{!?_with_glib:0} -%description glib -This package contains the Murphy glib mainloop integration runtime files. - -%description glib-devel -This package contains the Murphy glib mainloop integration development -files. -%endif - -%if %{?_with_qt:1}%{!?_with_qt:0} -%description qt -This package contains the Murphy Qt mainloop integration runtime files. - -%description qt-devel -This package contains the Murphy Qt mainloop integration development -files. -%endif - -%description tests -This package contains various test binaries for Murphy. - -%prep -%setup -q -@APPLY_PATCHES@ - -%build -%if %{?_with_debug:1}%{!?_with_debug:0} -export CFLAGS="-O0 -g3" -V="V=1" -%endif - -CONFIG_OPTIONS="" -DYNAMIC_PLUGINS="domain-control" - -%if %{?_with_pulse:1}%{!?_with_pulse:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-gpl --enable-pulse" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-pulse" -%endif - -%if %{?_with_ecore:1}%{!?_with_ecore:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-gpl --enable-ecore" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-ecore" -%endif - -%if %{?_with_glib:1}%{!?_with_glib:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-gpl --enable-glib" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-glib" -%endif - -%if %{?_with_qt:1}%{!?_with_qt:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-qt" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-qt" -%endif - -%if %{?_with_dbus:1}%{!?_with_dbus:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-gpl --enable-dbus" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-dbus" -%endif - -%if %{?_with_telephony:1}%{!?_with_telephony:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-gpl --enable-telephony" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-telephony" -%endif - -%if %{?_with_audiosession:1}%{!?_with_audiosession:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-resource-asm" -DYNAMIC_PLUGINS="$DYNAMIC_PLUGINS,resource-asm" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-resource-asm" -%endif - -%if %{?_with_websockets:1}%{!?_with_websockets:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-websockets" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-websockets" -%endif - -%if %{?_with_smack:1}%{!?_with_smack:0} -CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-smack" -%else -CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-smack" -%endif - -NUM_CPUS="`cat /proc/cpuinfo | tr -s '\t' ' ' | \ - grep '^processor *:' | wc -l`" -[ -z "$NUM_CPUS" ] && NUM_CPUS=1 - -./bootstrap && \ - %configure $CONFIG_OPTIONS --with-dynamic-plugins=$DYNAMIC_PLUGINS && \ - make clean && \ - make -j$(($NUM_CPUS + 1)) $V - -%install -rm -rf $RPM_BUILD_ROOT -%make_install - -# Make sure we have a plugin dir even if all the basic plugins -# are configured to be built in. -mkdir -p $RPM_BUILD_ROOT%{_libdir}/murphy/plugins - -# Get rid of any *.la files installed by libtool. -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la - -# Clean up also the murphy DB installation. -rm -f $RPM_BUILD_ROOT%{_libdir}/murphy/*.la - -# Generate list of linkedin plugins (depends on the configuration). -outdir="`pwd`" -pushd $RPM_BUILD_ROOT >& /dev/null && \ - find ./%{_libdir}/murphy/plugins -name libmurphy-plugin-*.so* | \ - sed 's#^./*#/#g' > $outdir/filelist.plugins-base && \ -popd >& /dev/null - -# Generate list of header files, filtering ones that go to subpackages. -outdir="`pwd`" -pushd $RPM_BUILD_ROOT >& /dev/null && \ - find ./%{_includedir}/murphy | \ - egrep -v '((pulse)|(ecore)|(glib)|(qt))-glue' | \ - sed 's#^./*#/#g' > $outdir/filelist.devel-includes && \ -popd >& /dev/null - -# Replace the default sample/test config files with the packaging ones. -cp packaging.in/murphy-lua.conf $RPM_BUILD_ROOT%{_sysconfdir}/murphy/murphy.conf -cp packaging.in/murphy.lua $RPM_BUILD_ROOT%{_sysconfdir}/murphy/murphy.lua - -# Copy plugin configuration files in place. -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/murphy/plugins/amb -cp packaging.in/amb-config.lua \ - $RPM_BUILD_ROOT%{_sysconfdir}/murphy/plugins/amb/config.lua - -# Copy the systemd service file in place. -mkdir -p $RPM_BUILD_ROOT%{systemddir}/system -cp packaging.in/murphyd.service $RPM_BUILD_ROOT%{systemddir}/system - -%if %{?_with_dbus:1}%{!?_with_dbus:0} -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d -cp packaging.in/org.Murphy.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/org.Murphy.conf -%endif - -%clean -rm -rf $RPM_BUILD_ROOT - -%post -/bin/systemctl enable murphyd.service - -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -%post core -%endif -ldconfig - -%postun -if [ "$1" = "0" ]; then - /bin/systemctl disable murphyd.service -fi - -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -%postun core -%endif -ldconfig - -%if %{?_with_glib:1}%{!?_with_glib:0} -%post glib -ldconfig - -%postun glib -ldconfig -%endif - -%if %{?_with_pulse:1}%{!?_with_pulse:0} -%post pulse -ldconfig - -%postun pulse -ldconfig -%endif - -%if %{?_with_ecore:1}%{!?_with_ecore:0} -%post ecore -ldconfig - -%postun ecore -ldconfig -%endif - -%if %{?_with_qt:1}%{!?_with_qt:0} -%post qt -lfconfig - -%postun qt -ldconfig -%endif - -%if %{?_with_squashpkg:1}%{!?_with_squashpkg:0} -%files -f filelist.plugins-base -%else -%files -%endif -%defattr(-,root,root,-) -%{_bindir}/murphyd -%config %{_sysconfdir}/murphy -%{systemddir}/system/murphyd.service -%if %{?_with_audiosession:1}%{!?_with_audiosession:0} -%{_sbindir}/asm-bridge -%endif -%if %{?_with_dbus:1}%{!?_with_dbus:0} -%{_sysconfdir}/dbus-1/system.d -%config %{_sysconfdir}/dbus-1/system.d/org.Murphy.conf -%endif -%if %{?_with_websockets:1}%{!?_with_websockets:0} -%{_datadir}/murphy -%endif - -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -%files core -%defattr(-,root,root,-) -%endif -%{_libdir}/libmurphy-common.so.* -%{_libdir}/libmurphy-core.so.* -%{_libdir}/libmurphy-resolver.so.* -%{_libdir}/libmurphy-resource.so.* -%{_libdir}/libmurphy-resource-backend.so.* -%if %{?_with_lua:1}%{!?_with_lua:0} -%{_libdir}/libmurphy-lua-utils.so.* -%{_libdir}/libmurphy-lua-decision.so.* -%endif -%{_libdir}/libmurphy-domain-controller.so.* -%{_libdir}/murphy/*.so.* -%{_libdir}/libbreedline*.so.* -%if %{?_with_dbus:1}%{!?_with_dbus:0} -%{_libdir}/libmurphy-dbus.so.* -%endif - -%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} -%files plugins-base -f filelist.plugins-base -%defattr(-,root,root,-) -%endif -%{_libdir}/murphy/plugins - -%files devel -f filelist.devel-includes -%defattr(-,root,root,-) -# %{_includedir}/murphy/config.h -# %{_includedir}/murphy/common.h -# #%{_includedir}/murphy/core.h -# %{_includedir}/murphy/common -# %{_includedir}/murphy/core -# %{_includedir}/murphy/resolver -# %{_includedir}/murphy/resource -# # hmmm... should handle disabled plugins properly. -# %{_includedir}/murphy/domain-control -# %{_includedir}/murphy/plugins -%{_includedir}/murphy-db -%{_libdir}/libmurphy-common.so -%{_libdir}/libmurphy-core.so -%{_libdir}/libmurphy-resolver.so -%{_libdir}/libmurphy-resource.so -%{_libdir}/libmurphy-resource-backend.so -%if %{?_with_lua:1}%{!?_with_lua:0} -%{_libdir}/libmurphy-lua-utils.so -%{_libdir}/libmurphy-lua-decision.so -%endif -%{_libdir}/libmurphy-domain-controller.so -%{_libdir}/murphy/*.so -%{_libdir}/pkgconfig/murphy-common.pc -%{_libdir}/pkgconfig/murphy-core.pc -%{_libdir}/pkgconfig/murphy-resolver.pc -#%{_libdir}/pkgconfig/murphy-resource.pc -%if %{?_with_lua:1}%{!?_with_lua:0} -%{_libdir}/pkgconfig/murphy-lua-utils.pc -%{_libdir}/pkgconfig/murphy-lua-decision.pc -%endif -%{_libdir}/pkgconfig/murphy-domain-controller.pc -%{_libdir}/pkgconfig/murphy-db.pc -%{_libdir}/pkgconfig/murphy-resource.pc -%{_includedir}/breedline -%{_libdir}/libbreedline*.so -%{_libdir}/pkgconfig/breedline*.pc -%if %{?_with_dbus:1}%{!?_with_dbus:0} -#%{_includedir}/murphy/dbus -%{_libdir}/libmurphy-dbus.so -%{_libdir}/pkgconfig/murphy-dbus.pc -%endif - -%files doc -%defattr(-,root,root,-) -%doc %{_docdir}/../murphy/AUTHORS -%doc %{_docdir}/../murphy/CODING-STYLE -%license %{_docdir}/../murphy/COPYING -%doc %{_docdir}/../murphy/ChangeLog -%doc %{_docdir}/../murphy/INSTALL -%doc %{_docdir}/../murphy/NEWS -%doc %{_docdir}/../murphy/README - -%if %{?_with_pulse:1}%{!?_with_pulse:0} -%files pulse -%defattr(-,root,root,-) -%{_libdir}/libmurphy-pulse.so.* - -%files pulse-devel -%defattr(-,root,root,-) -%{_includedir}/murphy/common/pulse-glue.h -%{_libdir}/libmurphy-pulse.so -%{_libdir}/pkgconfig/murphy-pulse.pc -%endif - -%if %{?_with_ecore:1}%{!?_with_ecore:0} -%files ecore -%defattr(-,root,root,-) -%{_libdir}/libmurphy-ecore.so.* - -%files ecore-devel -%defattr(-,root,root,-) -%{_includedir}/murphy/common/ecore-glue.h -%{_libdir}/libmurphy-ecore.so -%{_libdir}/pkgconfig/murphy-ecore.pc -%endif - -%if %{?_with_glib:1}%{!?_with_glib:0} -%files glib -%defattr(-,root,root,-) -%{_libdir}/libmurphy-glib.so.* - -%files glib-devel -%defattr(-,root,root,-) -%{_includedir}/murphy/common/glib-glue.h -%{_libdir}/libmurphy-glib.so -%{_libdir}/pkgconfig/murphy-glib.pc -%endif - -%if %{?_with_qt:1}%{!?_with_qt:0} -%files qt -%defattr(-,root,root,-) -%{_libdir}/libmurphy-qt.so.* - -%files qt-devel -%defattr(-,root,root,-) -%{_includedir}/murphy/common/qt-glue.h -%{_libdir}/libmurphy-qt.so -%{_libdir}/pkgconfig/murphy-qt.pc -%endif - -%files tests -%defattr(-,root,root,-) -%{_bindir}/resource-client -%{_bindir}/resource-api-test -%{_bindir}/resource-api-fuzz -%{_bindir}/test-domain-controller -%{_bindir}/murphy-console - -%changelog -* Tue Nov 27 2012 Krisztian Litkey <krisztian.litkey@intel.com> - -- Initial build for 2.0alpha. |