Κώδικας:
$ sudo python setup.py bdist_rpm --requires "python2, systemd-python, notify-python, pygobject2, python-slip-dbus, python-inotify, systemd, systemd-libs, libnotify, dbus, dbus-python" --build-requires="python-setuptools" --vendor="gkarakou@gmail.com" --post-install=postinstall.sh --no-autoreg
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --no-autoreg not recognized
$ sudo python setup.py bdist_rpm --requires "python2, systemd-python, notify-python, pygobject2, python-slip-dbus, python-inotify, systemd, systemd-libs, libnotify, dbus, dbus-python" --build-requires="python-setuptools" --vendor="gkarakou@gmail.com" --post-install=postinstall.sh
running bdist_rpm
running egg_info
writing requirements to systemd_denotify.egg-info/requires.txt
writing systemd_denotify.egg-info/PKG-INFO
writing top-level names to systemd_denotify.egg-info/top_level.txt
writing dependency_links to systemd_denotify.egg-info/dependency_links.txt
reading manifest file 'systemd_denotify.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'install_script.py'
warning: manifest_maker: MANIFEST.in, line 3: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
warning: manifest_maker: MANIFEST.in, line 4: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
writing manifest file 'systemd_denotify.egg-info/SOURCES.txt'
writing 'build/bdist.linux-x86_64/rpm/SPECS/systemd-denotify.spec'
running sdist
creating systemd-denotify-1.3
creating systemd-denotify-1.3/denotify
creating systemd-denotify-1.3/scripts
creating systemd-denotify-1.3/systemd_denotify.egg-info
making hard links in systemd-denotify-1.3...
hard linking MANIFEST.in -> systemd-denotify-1.3
hard linking README.txt -> systemd-denotify-1.3
hard linking setup.py -> systemd-denotify-1.3
hard linking denotify/__init__.py -> systemd-denotify-1.3/denotify
hard linking denotify/configreader.py -> systemd-denotify-1.3/denotify
hard linking denotify/eventhandler.py -> systemd-denotify-1.3/denotify
hard linking denotify/filenotifier.py -> systemd-denotify-1.3/denotify
hard linking denotify/journalparser.py -> systemd-denotify-1.3/denotify
hard linking denotify/logindmonitor.py -> systemd-denotify-1.3/denotify
hard linking denotify/mailer.py -> systemd-denotify-1.3/denotify
hard linking denotify/servicestatuschecker.py -> systemd-denotify-1.3/denotify
hard linking scripts/systemd-denotify.py -> systemd-denotify-1.3/scripts
hard linking systemd_denotify.egg-info/PKG-INFO -> systemd-denotify-1.3/systemd_denotify.egg-info
hard linking systemd_denotify.egg-info/SOURCES.txt -> systemd-denotify-1.3/systemd_denotify.egg-info
hard linking systemd_denotify.egg-info/dependency_links.txt -> systemd-denotify-1.3/systemd_denotify.egg-info
hard linking systemd_denotify.egg-info/requires.txt -> systemd-denotify-1.3/systemd_denotify.egg-info
hard linking systemd_denotify.egg-info/top_level.txt -> systemd-denotify-1.3/systemd_denotify.egg-info
Writing systemd-denotify-1.3/setup.cfg
tar -cf dist/systemd-denotify-1.3.tar systemd-denotify-1.3
gzip -f9 dist/systemd-denotify-1.3.tar
tar -cf dist/systemd-denotify-1.3.tar systemd-denotify-1.3
gzip -f9 dist/systemd-denotify-1.3.tar
removing 'systemd-denotify-1.3' (and everything under it)
copying dist/systemd-denotify-1.3.tar.gz -> build/bdist.linux-x86_64/rpm/SOURCES
building RPMs
rpmbuild -ba --define _topdir /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm --clean build/bdist.linux-x86_64/rpm/SPECS/systemd-denotify.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YvPeXE
+ umask 022
+ cd /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILD
+ rm -rf systemd-denotify-1.3
+ /usr/bin/gzip -dc /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/SOURCES/systemd-denotify-1.3.tar.gz
+ /bin/tar -xvvf -
drwxr-xr-x grinder/grinder 0 2018-01-15 12:58 systemd-denotify-1.3/
drwxr-xr-x grinder/grinder 0 2018-01-15 12:58 systemd-denotify-1.3/denotify/
-rwxr-xr-x grinder/grinder 0 2018-01-15 12:53 systemd-denotify-1.3/denotify/__init__.py
-rw-r--r-- grinder/grinder 5345 2018-01-15 12:53 systemd-denotify-1.3/denotify/configreader.py
-rw-r--r-- grinder/grinder 4006 2018-01-15 12:53 systemd-denotify-1.3/denotify/eventhandler.py
-rw-r--r-- grinder/grinder 836 2018-01-15 12:53 systemd-denotify-1.3/denotify/filenotifier.py
-rw-r--r-- grinder/grinder 3587 2018-01-15 12:53 systemd-denotify-1.3/denotify/journalparser.py
-rw-r--r-- grinder/grinder 2532 2018-01-15 12:53 systemd-denotify-1.3/denotify/logindmonitor.py
-rw-r--r-- grinder/grinder 8509 2018-01-15 12:53 systemd-denotify-1.3/denotify/mailer.py
-rw-r--r-- grinder/grinder 4594 2018-01-15 12:53 systemd-denotify-1.3/denotify/servicestatuschecker.py
drwxr-xr-x grinder/grinder 0 2018-01-15 12:58 systemd-denotify-1.3/scripts/
-rw-r--r-- grinder/grinder 1357 2018-01-15 12:53 systemd-denotify-1.3/scripts/systemd-denotify.py
drwxr-xr-x grinder/grinder 0 2018-01-15 12:58 systemd-denotify-1.3/systemd_denotify.egg-info/
-rw-r--r-- grinder/grinder 795 2018-01-15 12:58 systemd-denotify-1.3/systemd_denotify.egg-info/PKG-INFO
-rw-r--r-- grinder/grinder 458 2018-01-15 12:58 systemd-denotify-1.3/systemd_denotify.egg-info/SOURCES.txt
-rw-r--r-- grinder/grinder 1 2018-01-15 12:58 systemd-denotify-1.3/systemd_denotify.egg-info/dependency_links.txt
-rw-r--r-- grinder/grinder 46 2018-01-15 12:58 systemd-denotify-1.3/systemd_denotify.egg-info/requires.txt
-rw-r--r-- grinder/grinder 9 2018-01-15 12:58 systemd-denotify-1.3/systemd_denotify.egg-info/top_level.txt
-rw-r--r-- grinder/grinder 131 2018-01-15 12:53 systemd-denotify-1.3/MANIFEST.in
-rw-r--r-- grinder/grinder 185 2018-01-15 12:53 systemd-denotify-1.3/README.txt
-rwxr-xr-x grinder/grinder 2602 2018-01-15 12:53 systemd-denotify-1.3/setup.py
-rw-r--r-- grinder/grinder 795 2018-01-15 12:58 systemd-denotify-1.3/PKG-INFO
-rw-r--r-- grinder/grinder 59 2018-01-15 12:58 systemd-denotify-1.3/setup.cfg
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd systemd-denotify-1.3
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.L2KfTi
+ umask 022
+ cd /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILD
+ cd systemd-denotify-1.3
+ LANG=C
+ export LANG
+ unset DISPLAY
+ python setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/denotify
copying denotify/__init__.py -> build/lib/denotify
copying denotify/configreader.py -> build/lib/denotify
copying denotify/eventhandler.py -> build/lib/denotify
copying denotify/filenotifier.py -> build/lib/denotify
copying denotify/journalparser.py -> build/lib/denotify
copying denotify/logindmonitor.py -> build/lib/denotify
copying denotify/mailer.py -> build/lib/denotify
copying denotify/servicestatuschecker.py -> build/lib/denotify
running build_scripts
creating build/scripts-2.6
copying and adjusting scripts/systemd-denotify.py -> build/scripts-2.6
changing mode of build/scripts-2.6/systemd-denotify.py from 644 to 755
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.y5qd8W
+ umask 022
+ cd /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILD
+ '[' /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64 '!=' / ']'
+ rm -rf /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64
++ dirname /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64
+ mkdir -p /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT
+ mkdir /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64
+ cd systemd-denotify-1.3
+ LANG=C
+ export LANG
+ unset DISPLAY
+ python setup.py install --single-version-externally-managed -O1 --root=/home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64 --record=INSTALLED_FILES
running install
running build
running build_py
running build_scripts
running install_lib
creating /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr
creating /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib
creating /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6
creating /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages
creating /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
copying build/lib/denotify/__init__.py -> /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
copying build/lib/denotify/configreader.py -> /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
copying build/lib/denotify/eventhandler.py -> /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
copying build/lib/denotify/filenotifier.py -> /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
copying build/lib/denotify/journalparser.py -> /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
copying build/lib/denotify/logindmonitor.py -> /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
copying build/lib/denotify/mailer.py -> /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
copying build/lib/denotify/servicestatuschecker.py -> /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify
byte-compiling /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify/__init__.py to __init__.pyc
byte-compiling /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify/configreader.py to configreader.pyc
byte-compiling /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify/eventhandler.py to eventhandler.pyc
byte-compiling /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify/filenotifier.py to filenotifier.pyc
byte-compiling /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify/journalparser.py to journalparser.pyc
byte-compiling /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify/logindmonitor.py to logindmonitor.pyc
byte-compiling /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify/mailer.py to mailer.pyc
byte-compiling /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/usr/lib/python2.6/site-packages/denotify/servicestatuschecker.py to servicestatuschecker.pyc
writing byte-compilation script '/tmp/tmpIm3dbR.py'
/usr/bin/python -O /tmp/tmpIm3dbR.py
removing /tmp/tmpIm3dbR.py
running install_data
creating /home/grinder/systemd-denotify/build/bdist.linux-x86_64/rpm/BUILDROOT/systemd-denotify-1.3-1.x86_64/etc
error: can't copy 'denotify/conf/systemd-denotify.conf': doesn't exist or not a regular file
error: Bad exit status from /var/tmp/rpm-tmp.y5qd8W (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.y5qd8W (%install)
error: command 'rpmbuild' failed with exit status 1
Bookmarks