uid_wrapper/uid_wrapper.spec

80 lines
1.8 KiB
RPMSpec
Raw Normal View History

2014-03-11 12:44:43 +00:00
Name: uid_wrapper
Version: 1.0.1
Release: 2%{?dist}
Summary: A wrapper for privilege seperation
License: GPLv3+
Url: http://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: libcmocka-devel
%description
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 betwen uids and gids as needed.
To use it set the following environment variables:
LD_PRELOAD=libuid_wrapper.so
UID_WRAPPER=1
This package doesn't have a devel package cause this project is for
development/testing.
%prep
%setup -q
%build
if test ! -e "obj"; then
mkdir obj
fi
pushd obj
%cmake \
-DUNIT_TESTING=ON \
%{_builddir}/%{name}-%{version}
make %{?_smp_mflags} VERBOSE=1
popd
%install
pushd obj
make DESTDIR=%{buildroot} install
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%check
pushd obj
make test
popd
%files
%doc AUTHORS README ChangeLog COPYING
%{_libdir}/libuid_wrapper.so*
%dir %{_libdir}/cmake
%{_libdir}/cmake/uid_wrapper-config-version.cmake
%{_libdir}/cmake/uid_wrapper-config.cmake
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/uid_wrapper.pc
%changelog
* Tue Feb 11 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-2
- Remove Group
- Remove glibc-devel build requirement
- Do not create a subpackage.
* Tue Feb 04 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-1
- Update to version 1.0.1
* Added --libs to pkg-config.
* Added socket_wrapper-config.cmake
* Fixed a bug packaging the obj directory.
* Mon Feb 03 2014 - Andreas Schneider <asn@redhat.com> - 1.0.0-1
- Initial version 1.0.0