uid_wrapper/uid_wrapper.spec

99 lines
2.5 KiB
RPMSpec
Raw Normal View History

2014-03-11 12:44:43 +00:00
Name: uid_wrapper
2014-07-31 07:53:10 +00:00
Version: 1.0.2
2014-08-04 09:46:06 +00:00
Release: 2%{?dist}
2014-03-11 12:44:43 +00:00
2014-03-11 12:47:11 +00:00
Summary: A wrapper for privilege separation
2014-03-11 12:44:43 +00:00
License: GPLv3+
Url: http://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
2014-08-04 09:46:06 +00:00
Patch0: aarch64-has-no-sys-access.patch
2014-03-11 12:44:43 +00:00
BuildRequires: cmake
BuildRequires: libcmocka-devel
%description
Some projects like a file server need privilege separation to be able to switch
2014-03-11 12:47:11 +00:00
to the connection user and do file operations. uid_wrapper convincingly lies
2014-03-11 12:44:43 +00:00
to the application letting it believe it is operating as root and even
2014-03-11 12:47:11 +00:00
switching between UIDs and GIDs as needed.
2014-03-11 12:44:43 +00:00
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
2014-08-04 09:46:06 +00:00
%patch0 -p1
2014-03-11 12:44:43 +00:00
%build
if test ! -e "obj"; then
mkdir obj
fi
pushd obj
%cmake \
-DUNIT_TESTING=ON \
-DCMAKE_SKIP_RPATH:BOOL=OFF \
2014-03-11 12:44:43 +00:00
%{_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
2014-07-31 07:53:10 +00:00
%dir %{_libdir}/cmake/uid_wrapper
%{_libdir}/cmake/uid_wrapper/uid_wrapper-config-version.cmake
%{_libdir}/cmake/uid_wrapper/uid_wrapper-config.cmake
2014-03-11 12:44:43 +00:00
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/uid_wrapper.pc
2014-07-31 07:53:10 +00:00
%{_mandir}/man1/uid_wrapper.1*
2014-03-11 12:44:43 +00:00
%changelog
2014-08-04 09:46:06 +00:00
* Mon Aug 04 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.0.2-2
- Handle lack of SYS_access on AArch64
- Fix building on rhel6 with bad %cmake macro.
2014-08-04 09:46:06 +00:00
2014-07-31 07:53:10 +00:00
* Thu Jul 31 2014 - Andreas Schneider <asn@redhat.com> - 1.0.2-1
- Update to version 1.0.2.
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-03-11 12:47:11 +00:00
* Tue Mar 11 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-3
- Fix some typos.
- resolves: #1060910 - Fedora import
2014-03-11 12:44:43 +00:00
* 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