%define real_name sccs Summary: SCCS is an implementation of the POSIX standard Source Code Control System. Name: schily-%{real_name} Version: 5.06 Release: 1 License: GPLv3+ Group: Development/Tools URL: http://sccs.berlios.de/ Source0: ftp://ftp.berlios.de/pub/sccs/%{real_name}-%{version}.tar.bz2 # we don't want any compile link paths in the executables Patch0: %{name}-%{version}-aix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: schily-make BuildRequires: gettext Requires: gettext %description SCCS is an implementation of the POSIX standard Source Code Control System. It is based on the original UNIX SCCS code provided by Sun as part of OpenSolaris and was made portable to other platforms. This version is the one enhanced by Joerg Schilling. %prep %setup -q -n %{real_name}-%{version} chmod -R u+w * %patch0 %build smake %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} smake "INS_BASE=%{_prefix}" "DESTDIR=${RPM_BUILD_ROOT}" DEFMANBASE=. STRIPFLAGS=-s install # remove non-packaged files rm -rf ${RPM_BUILD_ROOT}%{_libdir}/lib*.a rm -rf ${RPM_BUILD_ROOT}%{_libdir}/profiled rm -rf ${RPM_BUILD_ROOT}%{_includedir} cd ${RPM_BUILD_ROOT} mkdir -p usr/linux/bin cd usr/linux/bin ln -sf ../../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc AN* COPYING PORTING README* %{_bindir}/* %{_prefix}/ccs %{_mandir}/man?/* %{_prefix}/xpg4 /usr/linux/bin/* %changelog * Thu Apr 19 2012 Michael Perzl - 5.06-1 - updated to version 5.06 * Mon Jul 11 2011 Michael Perzl - 5.01-1 - first version for AIX V5.1 and higher