Advertisement
Shishire

Issues with rpm spec file

Jul 18th, 2012
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1. [shishire@packager-rpm rpmbuild]$ rpmbuild -ba -vv SPECS/packagename.spec
  2. Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ntLWhX
  3. + umask 022
  4. + cd /home/shishire/rpmbuild/BUILD
  5. + LANG=C
  6. + export LANG
  7. + unset DISPLAY
  8. + cd /home/shishire/rpmbuild/BUILD
  9. + rm -rf packagename-1.2
  10. + /usr/bin/gzip -dc /home/shishire/rpmbuild/SOURCES/packagename-1.2.tar.gz
  11. + /bin/tar -xf -
  12. + STATUS=0
  13. + '[' 0 -ne 0 ']'
  14. + cd packagename-1.2
  15. + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
  16. + exit 0
  17. Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1EeI0r
  18. + umask 022
  19. + cd /home/shishire/rpmbuild/BUILD
  20. + cd packagename-1.2
  21. + LANG=C
  22. + export LANG
  23. + unset DISPLAY
  24. + exit 0
  25. Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.xO4BNW
  26. + umask 022
  27. + cd /home/shishire/rpmbuild/BUILD
  28. + '[' /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64 '!=' / ']'
  29. + rm -rf /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
  30. ++ dirname /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
  31. + mkdir -p /home/shishire/rpmbuild/BUILDROOT
  32. + mkdir /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
  33. + cd packagename-1.2
  34. + LANG=C
  35. + export LANG
  36. + unset DISPLAY
  37. + rm -rf /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
  38. + mkdir -p /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64/usr/share/packagename/
  39. + cp -R ./ /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64/usr/share/packagename/v1.2
  40. + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/shishire/rpmbuild/BUILD/packagename-1.2
  41. + /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
  42. + /usr/lib/rpm/redhat/brp-compress
  43. + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
  44. + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
  45. + /usr/lib/rpm/brp-python-bytecompile
  46. + /usr/lib/rpm/redhat/brp-python-hardlink
  47. + /usr/lib/rpm/redhat/brp-java-repack-jars
  48. Processing files: packagename-debuginfo-1.2-1.el6.x86_64
  49. Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
  50. D: execv(/usr/lib/rpm/check-files) pid 27886
  51. D: waitpid(27886) rc 27886 status 0
  52. error: Installed (but unpackaged) file(s) found:
  53. /usr/share/packagename/v1.2/.gitignore
  54. /usr/share/packagename/v1.2/CHANGELOG.txt
  55. /usr/share/packagename/v1.2/CREDITS
  56. /usr/share/packagename/v1.2/LICENSE
  57. /usr/share/packagename/v1.2/README.markdown
  58.  
  59. ...Long list of every file that should go into the package
  60.  
  61. /usr/share/packagename/v1.2/www/min/web.config
  62. /usr/share/packagename/v1.2/www/web.config
  63.  
  64.  
  65. RPM build errors:
  66. Installed (but unpackaged) file(s) found:
  67. /usr/share/packagename/v1.2/.gitignore
  68. /usr/share/packagename/v1.2/CHANGELOG.txt
  69. /usr/share/packagename/v1.2/CREDITS
  70. /usr/share/packagename/v1.2/LICENSE
  71. /usr/share/packagename/v1.2/README.markdown
  72.  
  73. ... Another long list of every file that should go into the package
  74.  
  75. /usr/share/packagename/v1.2/www/min/web.config
  76. /usr/share/packagename/v1.2/www/web.config
  77.  
  78.  
  79.  
  80.  
  81.  
  82. SPEC file:
  83.  
  84. [shishire@packager-rpm rpmbuild]$ cat SPECS/packagename.spec
  85. Name: packagename
  86. Version: 1.2
  87. Release: 1%{?dist}
  88. Summary: packagename does stuff
  89.  
  90. Group: Applications/Publishing
  91. Vendor: Vendor, Inc.
  92. Packager: Shishire <shishire@packagename.org>
  93. License: LGPLv2
  94. URL: http://packagename.org
  95. Source0: %{name}-%{version}.tar.gz
  96. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  97.  
  98. #BuildRequires:
  99. Requires: php, httpd
  100.  
  101. %description
  102. Stuff
  103.  
  104. #%define disable_localfiles 0
  105.  
  106. %prep
  107. %setup -q -n %(tar -tf %{SOURCE0} | sort -r | tail -n 1 | sed -e 's#/$##')
  108.  
  109. %build
  110.  
  111. %install
  112. rm -rf %{buildroot}
  113. #make install DESTDIR=%{buildroot}
  114. mkdir -p %{buildroot}/usr/share/packagename/
  115. cp -R ./ %{buildroot}/usr/share/packagename/v%{version}
  116.  
  117. %clean
  118. rm -rf %{buildroot}
  119.  
  120. %pre
  121.  
  122. if [[ %{disable_localfiles} -eq 0 && ! -f /usr/share/packagename/local/localfiles.tar.gz ]];
  123. then
  124. echo "Error: File /usr/share/packagename/local/localfiles.tar.gz could not be found."
  125. exit 1;
  126. fi;
  127.  
  128. %post
  129.  
  130. if [[ %{disable_localfiles -eq 0 ]];
  131. then
  132. /usr/share/packagename/v{%version}/scripts/deployPostFlight.sh;
  133. else
  134. /usr/share/packagename/v{%version}/scripts/deployPostFlight.sh -f /usr/share/packagename/local/localfiles.tar.gz;
  135. fi;
  136.  
  137. %preun
  138.  
  139. %postun
  140.  
  141. %files
  142. %defattr(-,root,root,-)
  143. %doc README.markdown
  144. %doc doc
  145. %attr(-, apache, apache) /usr/share/packagename/v%{version}
  146.  
  147. %changelog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement