77;20202;0ccatbody
rpmdevtools †
†https://fedorahosted.org/rpmdevtools/ ††
$ annotate-output make 22:58:31 I: Started make 22:58:31 I: Finished with exitcode 2 /usr/bin/checkbashisms †/usr/bin/licensecheck †/usr/bin/manpage-alert †/usr/bin/rpmargs †††Usage: rpmdev-bumpspec [OPTION]... SPECFILE... rpmdev-bumpspec bumps release tags in specfiles. Options: -h, --help show this help message and exit -c COMMENT, --comment=COMMENT changelog comment (default: "- rebuilt") -u USERSTRING, --userstring=USERSTRING user name+email string (default: output from rpmdev- packager(1)) -r, --rightmost bump the rightmost integer or add a .1 -V, --verbose more output -v, --version output version number and exit /usr/bin/rpmdev-checksig †/usr/bin/rpmdev-cksum †/usr/bin/rpmdev-diff †/usr/bin/rpmdev-extract †/usr/bin/rpmdev-md5 †††rpmdev-newinit generates new init script from a template Usage: rpmdev-newinit [option]... [appname[.init]] Options: -o FILE Output the init script to FILE. "-" means stdout. The default is derived from <appname>, or "newinitscript.init" if appname is not given. -h Show this usage message and exit. -v Print version information and exit. The template used is /etc/rpmdevtools/template.init. Report bugs at <https://bugzilla.redhat.com/>, component rpmdevtools, or at <https://fedorahosted.org/rpmdevtools/>. †$ rpmdev-newinit foo Skeleton init script has been created to "foo.init". $ ls -la foo.init $ cat foo.init #!/bin/sh # # foo - <summary> # # chkconfig: <default runlevel(s)> <start> <stop> # description: <description, split multiple lines with \ # a backslash> # http://fedoraproject.org/wiki/FCNewInit/Initscripts ### BEGIN INIT INFO # Provides: # Required-Start: # Required-Stop: # Should-Start: # Should-Stop: # Default-Start: # Default-Stop: # Short-Description: # Description: ### END INIT INFO # Source function library. . /etc/rc.d/init.d/functions exec="/usr/sbin/foo" prog=$(basename $exec) [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog lockfile=/var/lock/subsys/$prog start() { echo -n $"Starting $prog: " # if not running, start it up here, usually something like "daemon $exec" retval=$? echo [ $retval -eq 0 ] && touch $lockfile return $retval } stop() { echo -n $"Stopping $prog: " # stop it here, often "killproc $prog" retval=$? echo [ $retval -eq 0 ] && rm -f $lockfile return $retval } restart() { stop start } case "$1" in start|stop|restart) $1 ;; force-reload) restart ;; status) status $prog ;; try-restart|condrestart) if status $prog >/dev/null ; then restart fi ;; reload) # If config can be reloaded without restarting, implement it here, # remove the "exit", and add "reload" to the usage message below. # For example: # status $prog >/dev/null || exit 7 # killproc $prog -HUP action $"Service ${0##*/} does not support the reload action: " /bin/false exit 3 ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}" exit 2 esac ††rpmdev-newspec generates new rpm .spec files from templates. Usage: rpmdev-newspec [option]... [appname[.spec]] Options: -o FILE, --output FILE Output the specfile to FILE. "-" means stdout. The default is derived from <appname>, or "newpackage.spec" if <appname> is not given. -t TYPE, --type TYPE Force use of the TYPE spec template. The default is guessed from <appname>, falling back to "minimal" if the guesswork does not result in a more specific one or if <appname> is not given. Available types: R dummy lib minimal ocaml perl php-pear python ruby -m, --macros Emit templates using macros instead of shell style variables. -h, --help Show this usage message and exit. -v, --version Print version information and exit. System wide configuration file is /etc/rpmdevtools/newspec.conf. Report bugs at <https://bugzilla.redhat.com/>, component rpmdevtools, or at <https://fedorahosted.org/rpmdevtools/>. †$ rpmdev-newspec foo Skeleton specfile (minimal) has been created to "foo.spec". $ ls -la foo.spec $ cat foo.spec Name: foo Version: Release: 1%{?dist} Summary: Group: License: URL: Source0: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: Requires: %description %prep %setup -q %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %changelog $ rpm -ql rpmdevtools|grep /etc/rpmdevtools/spectemplate /etc/rpmdevtools/spectemplate-R.spec /etc/rpmdevtools/spectemplate-dummy.spec /etc/rpmdevtools/spectemplate-lib.spec /etc/rpmdevtools/spectemplate-minimal.spec /etc/rpmdevtools/spectemplate-ocaml.spec /etc/rpmdevtools/spectemplate-perl.spec /etc/rpmdevtools/spectemplate-php-pear.spec /etc/rpmdevtools/spectemplate-python.spec /etc/rpmdevtools/spectemplate-ruby.spec
$ rpmdev-newspec php-pear-foo Skeleton specfile (php-pear) has been created to "php-pear-foo.spec". †
†rpmdev-packager guesses rpm packager info from various sources: $RPM_PACKAGER from environment (full name + email address) %packager from rpm configuration (full name + email address) /etc/passwd gecos (full name) certificates ~/.fedora.cert (email address) $MAILTO from environment (email address) Usage: rpmdev-packager [option]... Options: -h, --help Show help message and exit. -v, --version Print version information and exit. Report bugs at <https://bugzilla.redhat.com/>, component rpmdevtools, or at <https://fedorahosted.org/rpmdevtools/>. †$ rpmdev-packager $ RPM_PACKAGER="Tadashi Jokagi <elf@elf.no-ip.org>" $ export RPM_PACKAGER $ rpmdev-packager Tadashi Jokagi <elf@elf.no-ip.org> /usr/bin/rpmdev-rmdevelrpms ††
/usr/bin/rpmdev-sha1 †/usr/bin/rpmdev-sha224 †/usr/bin/rpmdev-sha256 †/usr/bin/rpmdev-sha384 †/usr/bin/rpmdev-sha512 †/usr/bin/rpmdev-sum †/usr/bin/rpmdev-vercmp †/usr/bin/rpmdev-wipetree †/usr/bin/rpmelfsym †††Usage: rpmfile [-h] [*FILE*...] [*DIR*...] †
/usr/bin/rpminfo †††rpm -ql setup /etc/aliases /etc/bashrc /etc/csh.cshrc /etc/csh.login /etc/environment /etc/exports /etc/filesystems /etc/fstab /etc/group /etc/gshadow rpmls setup
$ rpmls setup -rw-r--r-- /etc/aliases -rw-r--r-- /etc/bashrc -rw-r--r-- /etc/csh.cshrc -rw-r--r-- /etc/csh.login -rw-r--r-- /etc/environment -rw-r--r-- /etc/exports -rw-r--r-- /etc/filesystems -rw-r--r-- /etc/fstab -rw-r--r-- /etc/group ---------- /etc/gshadow $ rpm -qlp perl-NKF-2.03-1.i386.rpm /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/NKF.pm /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/NKF /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/NKF/NKF.so /usr/share/doc/perl-NKF-2.03 /usr/share/doc/perl-NKF-2.03/nkf.copyright /usr/share/doc/perl-NKF-2.03/nkf.doc /usr/share/man/man3/NKF.3pm.gz $ rpmls perl-NKF-2.03-1.i386.rpm -r--r--r-- /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/NKF.pm drwxr-xr-x /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto drwxr-xr-x /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/NKF -r-xr-xr-x /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/NKF/NKF.so drwxr-xr-x /usr/share/doc/perl-NKF-2.03 -rw-r--r-- /usr/share/doc/perl-NKF-2.03/nkf.copyright -rw-r--r-- /usr/share/doc/perl-NKF-2.03/nkf.doc -r--r--r-- /usr/share/man/man3/NKF.3pm.gz /usr/bin/rpmpeek †/usr/bin/rpmsodiff †/usr/bin/rpmsoname †/usr/bin/spectool †††† |