diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:13:12 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:13:12 +0900 |
commit | c913e4871de39ddb56024c0b507b3a4c0399eac1 (patch) | |
tree | 849b9ab7ca5883d7908b6a297023c95104dfb560 /suse/icecream.spec.in | |
parent | 8701a5293e4e52a995b1ee0b683f234848d8d745 (diff) | |
download | icecream-c913e4871de39ddb56024c0b507b3a4c0399eac1.tar.gz icecream-c913e4871de39ddb56024c0b507b3a4c0399eac1.tar.bz2 icecream-c913e4871de39ddb56024c0b507b3a4c0399eac1.zip |
Tizen 2.1 base
Diffstat (limited to 'suse/icecream.spec.in')
-rw-r--r-- | suse/icecream.spec.in | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/suse/icecream.spec.in b/suse/icecream.spec.in new file mode 100644 index 0000000..5237b27 --- /dev/null +++ b/suse/icecream.spec.in @@ -0,0 +1,115 @@ +# +# spec file for package icecream +# + +# neededforbuild gcc-c++ libstdc++-devel +# norootforbuild +# don't use icecc to avoid bootstrap problems +# icecream 0 + +Name: icecream +BuildRequires: gcc-c++ +License: GPL, LGPL +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: @VERSION@ +Release: 1 +Source0: ftp://ftp.suse.com/pub/projects/icecream/icecc-%{version}.tar.bz2 +Source1: %name-manpages.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +icecream is the next generation distcc. + +%package -n libicecream-devel +Summary: libicecream-devel +Group: Development/Tools/Building +Summary: For Distributed Compile in the Network +Requires: libstdc++-devel + +%description -n libicecream-devel +libicecream-devel + +%prep +%setup -q -n %name -a 1 + +%build +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$RPM_OPT_FLAGS" +make -f Makefile.cvs +%configure +make %{?jobs:-j %jobs} + +%install +make DESTDIR=$RPM_BUILD_ROOT KDEDIR=/opt/kde3 install +mkdir -p $RPM_BUILD_ROOT/opt/icecream/bin +for i in g++ gcc cc c++; do + ln -s /usr/bin/icecc $RPM_BUILD_ROOT/opt/icecream/bin/$i + rm -f $RPM_BUILD_ROOT/usr/bin/$i +done +# +# Install icecream init script +mkdir -p $RPM_BUILD_ROOT/etc/init.d/ +install -m 755 suse/init.icecream $RPM_BUILD_ROOT/etc/init.d/icecream +ln -sf /etc/init.d/icecream $RPM_BUILD_ROOT%{_sbindir}/rcicecream +%if 0%{?suse_version} +mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates +install -m 644 suse/sysconfig.icecream $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.icecream +%endif +mkdir -p $RPM_BUILD_ROOT/var/cache/icecream +mkdir -p $RPM_BUILD_ROOT%_mandir/man{1,7} +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 + +%preun +%stop_on_removal 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 +%{insserv_cleanup} + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%config /etc/logrotate.d/icecream +%config /etc/init.d/icecream +%_bindir/icecc +%_bindir/icerun +%_sbindir/scheduler +%_libdir/icecc +%_sbindir/iceccd +%_sbindir/rcicecream +%_mandir/man*/* +/opt/icecream +%if 0%{?suse_version} +/var/adm/fillup-templates/sysconfig.icecream +%endif +%attr(-,icecream,icecream) /var/cache/icecream + +%files -n libicecream-devel +%defattr(-,root,root) +%_includedir/icecc +%_libdir/libicecc.* +%_libdir/pkgconfig/icecc.pc + +%changelog -n icecream |