From: Jakub Bogusz Date: Sun, 9 Feb 2014 15:20:01 +0000 (+0100) Subject: - new X-Git-Tag: auto/th/uid_wrapper-1.0.1-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=3577a85085a62eb59958db35762a49d0dd73c315;p=packages%2Fuid_wrapper.git - new --- 3577a85085a62eb59958db35762a49d0dd73c315 diff --git a/uid_wrapper.spec b/uid_wrapper.spec new file mode 100644 index 0000000..d3e7f88 --- /dev/null +++ b/uid_wrapper.spec @@ -0,0 +1,58 @@ +Summary: UID wrapper library +Summary(pl.UTF-8): Biblioteka obudowująca UID +Name: uid_wrapper +Version: 1.0.1 +Release: 1 +License: GPL v3+ +Group: Libraries +Source0: http://www.samba.org/ftp/cwrap/%{name}-%{version}.tar.gz +# Source0-md5: 219d0a33da5eaeef7c180c3d8734477e +URL: http://cwrap.org/uid_wrapper.html +BuildRequires: cmake >= 2.8.0 +BuildRequires: rpmbuild(macros) >= 1.605 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Privilege separation - some projects like a file server need privilege +separation to be able to switch to the connnection user and do file +operations. uid_wrapper convincingly lies to the application letting +it believe it is operating as root and even switching between uids and +gids as needed. + +%description -l pl.UTF-8 +Rozdzielenie uprawnień - niektóre projekty, takie jak serwer plików, +wymagają rozdzielenia uprawnień, aby przełączać się na użytkownika +połączenia i wykonywać operacje na plikach. uid_wrapper dla wygody +okłamuje aplikację, pozwalając jej wierzyć, że działa jako root, nawet +gdy wymagane jest przełączanie między różnymi uidami i gidami. + +%prep +%setup -q + +%build +install -d build +cd build +%cmake .. + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS COPYING ChangeLog README TODO +%attr(755,root,root) %{_libdir}/libuid_wrapper.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libuid_wrapper.so.0 +%attr(755,root,root) %{_libdir}/libuid_wrapper.so +%{_pkgconfigdir}/uid_wrapper.pc +%{_libdir}/cmake/uid_wrapper-config*.cmake