RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Pinto Elia
  Root:   /v/rpm/cvs                       Email:  devzero2...@rpm5.org
  Module: rpm                              Date:   09-Mar-2011 17:36:32
  Branch: rpm-5_2                          Handle: 2011030916363200

  Added files:              (Branch: rpm-5_2)
    rpm/tests               test-excludeunpackagedfile.spec

  Log:
    flip a toy test from the %exclude and check unpackaged file issue.
    Reported by Mandriva

  Summary:
    Revision    Changes     Path
    1.1.6.2     +43 -0      rpm/tests/test-excludeunpackagedfile.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/tests/test-excludeunpackagedfile.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1.6.2 test-excludeunpackagedfile.spec
  --- /dev/null 2011-03-09 17:36:21.000000000 +0100
  +++ test-excludeunpackagedfile.spec   2011-03-09 17:36:32.254027396 +0100
  @@ -0,0 +1,43 @@
  +Name:           test-excludeunpackagefile
  +Version:        1.0
  +Release:        1%{?dist}
  +Summary:        Reproducer for %exclude issue
  +Group:          Security
  +License:        LGPL
  +BuildRoot:      %{_tmppath}/%{name}-root
  +BuildArch:      noarch
  +
  +%description
  +Reproducer for %%exclude issue.
  +
  +%%exclude will not only exclude files from being packaged
  +in that specific package,but also exclude it from the check 
  +for unpackackaged files as well,so that it could be done 
  +using %%exclude as well in addition to
  +removing the files during %%install.
  +
  +%prep
  +%setup -q -T -c
  +
  +%build
  +
  +%install
  +rm -rf $RPM_BUILD_ROOT
  +mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}/%{name}-dir1
  +touch $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}-file1
  +touch $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}/%{name}-dir1/%{name}-file1
  +touch $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}-file2
  +
  +%clean
  +rm -rf $RPM_BUILD_ROOT
  +
  +%files
  +%defattr(-,root,root,-)
  +%{_sharedstatedir}/%{name}-file2
  +%exclude %{_sharedstatedir}/%{name}-file1
  +%exclude %{_sharedstatedir}/%{name}/%{name}-dir1/%{name}-file1
  +
  +%changelog
  +* Wed Mar  9 2011 Elia Pinto <devzero2...@rpm5.org> 1.0-1
  +- First Build
  +
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to