summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-05-21 17:42:02 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-05-21 17:42:02 +0900
commita3e1b0949f2734a7296074f6b80c0c100da2bd3e (patch)
tree396ba284386385d66cdb864bbb773ac6eaa959c5 /packaging
parent2924cc08916c97ace431cd8936a3525d42dbcaa8 (diff)
downloadfakeroot-a3e1b0949f2734a7296074f6b80c0c100da2bd3e.tar.gz
fakeroot-a3e1b0949f2734a7296074f6b80c0c100da2bd3e.tar.bz2
fakeroot-a3e1b0949f2734a7296074f6b80c0c100da2bd3e.zip
Upload Tizen:Base source
Diffstat (limited to 'packaging')
-rw-r--r--packaging/fakeroot.changes11
-rw-r--r--packaging/fakeroot.spec119
2 files changed, 130 insertions, 0 deletions
diff --git a/packaging/fakeroot.changes b/packaging/fakeroot.changes
new file mode 100644
index 0000000..ed20740
--- /dev/null
+++ b/packaging/fakeroot.changes
@@ -0,0 +1,11 @@
+* Wed Jun 22 2011 Chris Ferron <chris.e.ferron@linux.intel.com> - 1.12.4
+- removed util-linux-ng as it has been replaced by util-linux.
+
+* Sat Jan 30 2010 Zhang, Qiang Z<qiang.z.zhang@intel.com> 1.12.4
+- Update to 1.12.4
+
+* Tue Feb 19 2009 Zhang, Qiang Z<qiang.z.zhang@intel.com> 1.12.1
+- Update to 1.12.1
+
+* Tue Jan 06 2009 Anas Nashif <anas.nashif@intel.com> 1.11
+- Initial import into Moblin
diff --git a/packaging/fakeroot.spec b/packaging/fakeroot.spec
new file mode 100644
index 0000000..4a09340
--- /dev/null
+++ b/packaging/fakeroot.spec
@@ -0,0 +1,119 @@
+
+Name: fakeroot
+Summary: Gives a fake root environment
+Version: 1.12.4
+Release: 19
+Group: Development/Tools
+License: GPL+
+URL: http://fakeroot.alioth.debian.org/
+Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.tar.gz
+Requires: util-linux
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+BuildRequires: gcc-c++
+BuildRequires: util-linux
+BuildRequires: sharutils
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+fakeroot runs a command in an environment wherein it appears to have
+root privileges for file manipulation. fakeroot works by replacing the
+file manipulation library functions (chmod(2), stat(2) etc.) by ones
+that simulate the effect the real library functions would have had,
+had the user really been root.
+
+
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+for file in ./doc/*/*.1; do
+ iconv -f latin1 -t utf8 < $file > $file.new
+ mv -f $file.new $file
+done
+
+
+
+
+
+# all build scripts in origin specfile as the following:
+for type in sysv tcp; do
+mkdir obj-$type
+cd obj-$type
+cat >> configure << 'EOF'
+#! /bin/sh
+exec ../configure "$@"
+EOF
+chmod +x configure
+%configure \
+ --disable-dependency-tracking \
+ --disable-static \
+ --libdir=%{_libdir}/libfakeroot \
+ --with-ipc=$type \
+ --program-suffix=-$type
+make %{?jobs:-j%jobs}
+cd ..
+done
+
+%install
+rm -rf %{buildroot}
+# Please write install script under ">> install post"
+
+# all install scripts in origin specfile as the following:
+rm -rf %{buildroot}
+for type in sysv tcp; do
+ make -C obj-$type install libdir=%{_libdir}/libfakeroot DESTDIR=%{buildroot}
+ chmod 644 %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so
+ mv %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so \
+ %{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
+ rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.so
+ rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.*a*
+done
+
+ln -s faked-tcp %{buildroot}%{_bindir}/faked
+ln -s fakeroot-tcp %{buildroot}%{_bindir}/fakeroot
+ln -s libfakeroot-tcp.so %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so
+
+%check
+for type in sysv tcp; do
+ echo 'Bypassing check '$type
+# make -C obj-$type check
+done
+
+
+
+%clean
+rm -rf %{buildroot}
+
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS BUGS COPYING DEBUG debian/changelog doc/README.saving
+%{_bindir}/faked-*
+%{_bindir}/faked
+%{_bindir}/fakeroot-*
+%{_bindir}/fakeroot
+%{_mandir}/man1/faked-*.1*
+%{_mandir}/man1/fakeroot-*.1*
+%lang(es) %{_mandir}/es/man1/faked-*.1*
+%lang(es) %{_mandir}/es/man1/fakeroot-*.1*
+%lang(fr) %{_mandir}/fr/man1/faked-*.1*
+%lang(fr) %{_mandir}/fr/man1/fakeroot-*.1*
+%lang(sv) %{_mandir}/sv/man1/faked-*.1*
+%lang(sv) %{_mandir}/sv/man1/fakeroot-*.1*
+%lang(nl) %{_mandir}/nl/man1/faked-*.1*
+%lang(nl) %{_mandir}/nl/man1/fakeroot-*.1*
+%dir %{_libdir}/libfakeroot
+%{_libdir}/libfakeroot/libfakeroot-*.so
+%{_libdir}/libfakeroot/libfakeroot-0.so
+
+