diff options
author | Yury Usishchev <y.usishchev@samsung.com> | 2014-08-07 16:50:14 +0400 |
---|---|---|
committer | Yury Usishchev <y.usishchev@samsung.com> | 2014-08-07 16:51:05 +0400 |
commit | 418d3b60892c03e8f7454915247b0b5ce6ba7f0e (patch) | |
tree | 1b8d0428c5dc984c464ba4ab97da8404a8bfaaf2 /packaging/icecream.spec | |
parent | 60c6207f722a11db2a0de86d67ec0492d07723e0 (diff) | |
download | icecream-tizen_3.0.m14.3_ivi.tar.gz icecream-tizen_3.0.m14.3_ivi.tar.bz2 icecream-tizen_3.0.m14.3_ivi.zip |
Revert "Fix build error with %suse_version"HEADtizen_3.0_ivi_releasetizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasetizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasetizen_3.0.m14.3_ivi_releasetizen_3.0.2014.q3_common_releasesubmit/tizen_mobile/20141120.000000submit/tizen_ivi/20160217.000005submit/tizen_ivi/20160217.000000submit/tizen_ivi/20140818.000001submit/tizen_ivi/20140818.000000submit/tizen_common/20151026.085049submit/tizen_common/20151023.083358submit/tizen/20140807.133029submit/tizen/20140807.124405accepted/tizen/ivi/20160218.024723tizen_3.0_ivitizen_3.0.m1_tvtizen_3.0.m1_mobiletizen_3.0.m14.3_ivitizen_3.0.2015.q2_commontizen_3.0.2015.q1_commontizen_3.0.2014.q4_commontizen_3.0.2014.q3_commontizenaccepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_3.0_iviaccepted/tizen_3.0.m14.3_iviaccepted/tizen_3.0.2014.q3_common
This reverts commit 60c6207f722a11db2a0de86d67ec0492d07723e0.
Change-Id: I3451823af6dcf2ec604bf071021922959531cf46
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
Diffstat (limited to 'packaging/icecream.spec')
-rw-r--r-- | packaging/icecream.spec | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packaging/icecream.spec b/packaging/icecream.spec index 46cb165..08d9fea 100644 --- a/packaging/icecream.spec +++ b/packaging/icecream.spec @@ -25,6 +25,10 @@ License: GPLv2+ ; LGPLv2.1+ Group: Development/Tools/Building Summary: For Distributed Compile in the Network Requires: /bin/tar /usr/bin/bzip2 +%if 0%{?suse_version} +PreReq: %fillup_prereq +PreReq: %insserv_prereq +%endif PreReq: /usr/sbin/useradd /usr/sbin/groupadd Requires: gcc-c++ Version: 0.9.7 @@ -73,6 +77,11 @@ for i in mans/*.1 mans/*.7; do install -m 644 $i $RPM_BUILD_ROOT%_mandir/man`echo $i | sed -e 's,.*\(.\)$,\1,'`/`basename $i` done install -m 644 -D suse/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/icecream +%if 0%{?suse_version} > 1020 +mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services +install -m 644 suse/SuSEfirewall.iceccd $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services/iceccd +install -m 644 suse/SuSEfirewall.scheduler $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services/icecream-scheduler +%endif %preun %stop_on_removal icecream @@ -80,6 +89,11 @@ install -m 644 -D suse/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/icecream %pre /usr/sbin/groupadd -r icecream 2> /dev/null || : /usr/sbin/useradd -r -g icecream -s /bin/false -c "Icecream Daemon" -d /var/cache/icecream icecream 2> /dev/null || : +%if 0%{?suse_version} + +%post +%{fillup_and_insserv -n icecream icecream} +%endif %postun %restart_on_update icecream @@ -100,6 +114,9 @@ rm -rf ${RPM_BUILD_ROOT} %_sbindir/rcicecream %_mandir/man*/* /opt/icecream +%if 0%{?suse_version} > 1020 +/etc/sysconfig/SuSEfirewall2.d/services/* +%endif /var/adm/fillup-templates/sysconfig.icecream %attr(-,icecream,icecream) /var/cache/icecream |