Accepting request 105738 from Base:System

- keep binaries in /usr tree (UsrMerge project)

OBS-URL: https://build.opensuse.org/request/show/105738
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gawk?expand=0&rev=21
This commit is contained in:
Stephan Kulow 2012-02-21 06:30:49 +00:00 committed by Git OBS Bridge
commit f9a095c6b7
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 8 20:59:12 UTC 2012 - rschweikert@suse.com
- keep binaries in /usr tree {UsrMerge project)
-------------------------------------------------------------------
Mon Jan 30 16:16:45 CET 2012 - pth@suse.de

View File

@ -76,13 +76,14 @@ make check
%install
make install DESTDIR=$RPM_BUILD_ROOT
#UsrMerge
install -d $RPM_BUILD_ROOT/bin
mv -f $RPM_BUILD_ROOT/usr/bin/gawk $RPM_BUILD_ROOT/bin
ln -sf ../../bin/gawk $RPM_BUILD_ROOT/usr/bin
ln -sf %{_bindir}/gawk $RPM_BUILD_ROOT/bin
touch $RPM_BUILD_ROOT/bin/awk
#EndUsrMerge
rm -f $RPM_BUILD_ROOT/usr/bin/*-%{version} $RPM_BUILD_ROOT/usr/bin/awk
# create ghost files
touch $RPM_BUILD_ROOT/usr/bin/awk $RPM_BUILD_ROOT/bin/awk \
$RPM_BUILD_ROOT/%{_mandir}/man1/awk.1.gz
touch $RPM_BUILD_ROOT/%{_bindir}/awk $RPM_BUILD_ROOT/%{_mandir}/man1/awk.1.gz
%find_lang %name
%clean
@ -107,12 +108,16 @@ fi
%files -f %name.lang
%defattr(-,root,root)
%if %{suse_version} >= 1120
#UsrMerge
%ghost /bin/awk
#EndUsrMerge
%ghost %{_bindir}/awk
%ghost %{_mandir}/man1/awk.1.gz
%endif
%doc AUTHORS COPYING FUTURES LIMITATIONS NEWS POSIX.STD PROBLEMS README
#UsrMerge
/bin/gawk
#EndUsrMerge
%{_bindir}/dgawk
%{_bindir}/gawk
%{_bindir}/igawk