|
@@ -1,19 +1,16 @@
|
|
-%define name fakeroot
|
|
|
|
-%define ver 1.5.10
|
|
|
|
-%define rel 1%{?_dist_release}
|
|
|
|
-
|
|
|
|
-%define _libdir %{_prefix}/lib/libfakeroot
|
|
|
|
-
|
|
|
|
Summary: Gives a fake root environment
|
|
Summary: Gives a fake root environment
|
|
-Summary(ja): 疑似 root 環境を提供する
|
|
+Summary(ja): 疑似 root 環境を提供するツール
|
|
-Name: %{name}
|
|
+Name: fakeroot
|
|
-Version: %{ver}
|
|
+Version: 1.12.4
|
|
-Release: %{rel}
|
|
+Release: 1%{?_dist_release}
|
|
-License: GPL
|
|
+License: GPL+
|
|
Group: Development/Tools
|
|
Group: Development/Tools
|
|
-URL: http://packages.debian.org/unstable/utils/fakeroot.html
|
|
+URL: http://fakeroot.alioth.debian.org/
|
|
-Source0: %{name}_%{ver}.tar.gz
|
|
+Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.tar.gz
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{ver}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{ver}-root
|
|
|
|
+BuildRequires: sharutils, util-linux-ng
|
|
|
|
+Requires: util-linux-ng
|
|
|
|
|
|
%description
|
|
%description
|
|
Fakeroot gives a fake root environment.
|
|
Fakeroot gives a fake root environment.
|
|
@@ -22,14 +19,39 @@ Fakeroot gives a fake root environment.
|
|
%setup
|
|
%setup
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure
|
|
+for type in sysv tcp; do
|
|
-%{__make}
|
|
+ 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
|
|
|
|
+ cd ..
|
|
|
|
+done
|
|
|
|
|
|
%install
|
|
%install
|
|
-%makeinstall
|
|
+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
|
|
|
|
+ strip -s %{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
|
|
|
|
+ rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.so
|
|
|
|
+ rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.*a*
|
|
|
|
+done
|
|
|
|
|
|
-## remove unuse files
|
|
+ln -s faked-tcp %{buildroot}%{_bindir}/faked
|
|
-rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
+ln -s fakeroot-tcp %{buildroot}%{_bindir}/fakeroot
|
|
|
|
+ln -s libfakeroot-tcp.so %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %buildroot
|
|
rm -rf %buildroot
|
|
@@ -38,15 +60,33 @@ rm -rf %buildroot
|
|
/sbin/ldconfig -n %{_libdir}/libfakeroot
|
|
/sbin/ldconfig -n %{_libdir}/libfakeroot
|
|
|
|
|
|
%files
|
|
%files
|
|
-%defattr (-,root,root)
|
|
+%defattr(-,root,root,-)
|
|
-%doc AUTHORS BUGS COPYING ChangeLog DEBUG INSTALL
|
|
+%doc COPYING AUTHORS BUGS DEBUG doc/README.saving debian/changelog
|
|
-%doc README README.fake
|
|
+%{_bindir}/faked-*
|
|
-%{_bindir}/*
|
|
+%{_bindir}/faked
|
|
-%{_libdir}/*
|
|
+%{_bindir}/fakeroot-*
|
|
-%{_mandir}/man1/*
|
|
+%{_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
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Feb 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.12.4-1
|
|
|
|
+- new upstream release
|
|
|
|
+- build with --with-ipc=tcp and --with-ipc=sysv, default is tcp.
|
|
|
|
+ - fakeroot-{tcp,sysv}
|
|
|
|
+
|
|
* Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.5.10-1vl5
|
|
* Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.5.10-1vl5
|
|
- applied new versioning policy, spec in utf-8
|
|
- applied new versioning policy, spec in utf-8
|
|
- removed *.la
|
|
- removed *.la
|