Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [shishire@packager-rpm rpmbuild]$ rpmbuild -ba -vv SPECS/packagename.spec
- Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ntLWhX
- + umask 022
- + cd /home/shishire/rpmbuild/BUILD
- + LANG=C
- + export LANG
- + unset DISPLAY
- + cd /home/shishire/rpmbuild/BUILD
- + rm -rf packagename-1.2
- + /usr/bin/gzip -dc /home/shishire/rpmbuild/SOURCES/packagename-1.2.tar.gz
- + /bin/tar -xf -
- + STATUS=0
- + '[' 0 -ne 0 ']'
- + cd packagename-1.2
- + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
- + exit 0
- Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1EeI0r
- + umask 022
- + cd /home/shishire/rpmbuild/BUILD
- + cd packagename-1.2
- + LANG=C
- + export LANG
- + unset DISPLAY
- + exit 0
- Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.xO4BNW
- + umask 022
- + cd /home/shishire/rpmbuild/BUILD
- + '[' /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64 '!=' / ']'
- + rm -rf /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
- ++ dirname /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
- + mkdir -p /home/shishire/rpmbuild/BUILDROOT
- + mkdir /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
- + cd packagename-1.2
- + LANG=C
- + export LANG
- + unset DISPLAY
- + rm -rf /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
- + mkdir -p /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64/usr/share/packagename/
- + cp -R ./ /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64/usr/share/packagename/v1.2
- + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/shishire/rpmbuild/BUILD/packagename-1.2
- + /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
- + /usr/lib/rpm/redhat/brp-compress
- + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
- + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
- + /usr/lib/rpm/brp-python-bytecompile
- + /usr/lib/rpm/redhat/brp-python-hardlink
- + /usr/lib/rpm/redhat/brp-java-repack-jars
- Processing files: packagename-debuginfo-1.2-1.el6.x86_64
- Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/shishire/rpmbuild/BUILDROOT/packagename-1.2-1.el6.x86_64
- D: execv(/usr/lib/rpm/check-files) pid 27886
- D: waitpid(27886) rc 27886 status 0
- error: Installed (but unpackaged) file(s) found:
- /usr/share/packagename/v1.2/.gitignore
- /usr/share/packagename/v1.2/CHANGELOG.txt
- /usr/share/packagename/v1.2/CREDITS
- /usr/share/packagename/v1.2/LICENSE
- /usr/share/packagename/v1.2/README.markdown
- ...Long list of every file that should go into the package
- /usr/share/packagename/v1.2/www/min/web.config
- /usr/share/packagename/v1.2/www/web.config
- RPM build errors:
- Installed (but unpackaged) file(s) found:
- /usr/share/packagename/v1.2/.gitignore
- /usr/share/packagename/v1.2/CHANGELOG.txt
- /usr/share/packagename/v1.2/CREDITS
- /usr/share/packagename/v1.2/LICENSE
- /usr/share/packagename/v1.2/README.markdown
- ... Another long list of every file that should go into the package
- /usr/share/packagename/v1.2/www/min/web.config
- /usr/share/packagename/v1.2/www/web.config
- SPEC file:
- [shishire@packager-rpm rpmbuild]$ cat SPECS/packagename.spec
- Name: packagename
- Version: 1.2
- Release: 1%{?dist}
- Summary: packagename does stuff
- Group: Applications/Publishing
- Vendor: Vendor, Inc.
- Packager: Shishire <shishire@packagename.org>
- License: LGPLv2
- URL: http://packagename.org
- Source0: %{name}-%{version}.tar.gz
- BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
- #BuildRequires:
- Requires: php, httpd
- %description
- Stuff
- #%define disable_localfiles 0
- %prep
- %setup -q -n %(tar -tf %{SOURCE0} | sort -r | tail -n 1 | sed -e 's#/$##')
- %build
- %install
- rm -rf %{buildroot}
- #make install DESTDIR=%{buildroot}
- mkdir -p %{buildroot}/usr/share/packagename/
- cp -R ./ %{buildroot}/usr/share/packagename/v%{version}
- %clean
- rm -rf %{buildroot}
- %pre
- if [[ %{disable_localfiles} -eq 0 && ! -f /usr/share/packagename/local/localfiles.tar.gz ]];
- then
- echo "Error: File /usr/share/packagename/local/localfiles.tar.gz could not be found."
- exit 1;
- fi;
- %post
- if [[ %{disable_localfiles -eq 0 ]];
- then
- /usr/share/packagename/v{%version}/scripts/deployPostFlight.sh;
- else
- /usr/share/packagename/v{%version}/scripts/deployPostFlight.sh -f /usr/share/packagename/local/localfiles.tar.gz;
- fi;
- %preun
- %postun
- %files
- %defattr(-,root,root,-)
- %doc README.markdown
- %doc doc
- %attr(-, apache, apache) /usr/share/packagename/v%{version}
- %changelog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement