summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/alarm-manager.spec26
1 files changed, 7 insertions, 19 deletions
diff --git a/packaging/alarm-manager.spec b/packaging/alarm-manager.spec
index 9ad5903..4713f6d 100644
--- a/packaging/alarm-manager.spec
+++ b/packaging/alarm-manager.spec
@@ -1,6 +1,6 @@
Name: alarm-manager
Version: 0.4.86
-Release: 1
+Release: 0
License: Apache-2.0
Summary: Alarm library
Group: Application Framework/Libraries
@@ -10,7 +10,6 @@ Source102: 60-alarm-manager-rtc.rules
Source103: alarm-service.conf
Source1001: %{name}.manifest
-
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(bundle)
@@ -56,17 +55,13 @@ Alarm server library (devel)
%setup -q
cp %{SOURCE1001} .
-
%build
-%autogen --disable-static
dbus-binding-tool --mode=glib-server --prefix=alarm_manager ./alarm_mgr.xml > ./include/alarm-skeleton.h
dbus-binding-tool --mode=glib-client --prefix=alarm_manager ./alarm_mgr.xml > ./include/alarm-stub.h
dbus-binding-tool --mode=glib-server --prefix=alarm_client ./alarm-expire.xml > ./include/alarm-expire-skeleton.h
dbus-binding-tool --mode=glib-client --prefix=alarm_client ./alarm-expire.xml > ./include/alarm-expire-stub.h
-
-%configure --disable-static
-make %{?_smp_mflags}
-
+%reconfigure --disable-static
+%__make %{?_smp_mflags}
%install
%make_install
@@ -80,10 +75,6 @@ install -m0644 %{SOURCE102} %{buildroot}%{_sysconfdir}/udev/rules.d/
mkdir -p %{buildroot}/%{_sysconfdir}/dbus-1/system.d
install -m0644 %{SOURCE103} %{buildroot}%{_sysconfdir}/dbus-1/system.d/
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/alarm-server
-cp LICENSE %{buildroot}/usr/share/license/libalarm
-cp LICENSE %{buildroot}/usr/share/license/libalarm-devel
%preun -n alarm-server
if [ $1 == 0 ]; then
@@ -113,13 +104,12 @@ fi
%attr(0755,root,root) %{_bindir}/alarm-server
%{_unitdir}/multi-user.target.wants/alarm-server.service
%{_unitdir}/alarm-server.service
-%{_sysconfdir}/dbus-1/system.d/alarm-service.conf
+%config %{_sysconfdir}/dbus-1/system.d/alarm-service.conf
%ifarch %{arm}
- %exclude %{_sysconfdir}/udev/rules.d/60-alarm-manager-rtc.rules
+ %exclude %config %{_sysconfdir}/udev/rules.d/60-alarm-manager-rtc.rules
%else
- %{_sysconfdir}/udev/rules.d/60-alarm-manager-rtc.rules
+ %config %{_sysconfdir}/udev/rules.d/60-alarm-manager-rtc.rules
%endif
-/usr/share/license/alarm-server
%post -n libalarm -p /sbin/ldconfig
@@ -128,14 +118,12 @@ fi
%files -n libalarm
%manifest %{name}.manifest
%license LICENSE
-%manifest alarm-lib.manifest
%attr(0644,root,root) %{_libdir}/libalarm.so.0.0.0
%{_libdir}/libalarm.so.0
-/usr/share/license/libalarm
%files -n libalarm-devel
%manifest %{name}.manifest
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libalarm.so
-/usr/share/license/libalarm-devel
+