%define emacs_sitestart_d %{_datadir}/emacs/site-lisp/site-start.d %define xemacs_sitestart_d %{_datadir}/xemacs/site-packages/lisp/site-start.d %define spectool_version 1.0.7 Name: rpmdevtools Version: 5.1 Release: 1%{?dist} Summary: RPM Development Tools Group: Development/Tools License: GPL URL: http://fedora.redhat.com/ Source0: %{name}-%{version}.tar.bz2 Source1: http://people.redhat.com/nphilipp/spectool/spectool-%{spectool_version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Provides: spectool = %{spectool_version} Provides: fedora-rpmdevtools = %{version} Obsoletes: fedora-rpmdevtools < 5.0 # Required for tool operations Requires: rpm-python, python, cpio, sed, perl, wget, file # Minimal RPM build requirements Requires: rpm-build, gcc, gcc-c++, redhat-rpm-config, make, tar, patch Requires: diffutils, gzip, bzip2, unzip %description This package contains scripts and (X)Emacs support files to aid in development of RPM packages. rpmdev-setuptree Create RPM build tree within user's home directory rpmdev-diff Diff contents of two archives rpmdev-newspec Creates new .spec from template rpmdev-rmdevelrpms Find (and optionally remove) "development" RPMs rpmdev-checksig Check package signatures using alternate RPM keyring rpminfo Print information about executables and libraries rpmdev-md5 Display the md5sum of all files in an RPM rpmdev-vercmp RPM version comparison checker spectool Expand and download sources and patches in specfiles rpmdev-wipetree Erase all files within dirs created by rpmdev-setuptree rpmdev-extract Extract various archives, "tar xvf" style %prep %setup -q -a 1 cp -p spectool*/README README.spectool %build %configure --libdir=%{_prefix}/lib make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT install -pm 755 spectool*/spectool $RPM_BUILD_ROOT%{_bindir} for dir in %{emacs_sitestart_d} %{xemacs_sitestart_d} ; do install -dm 755 $RPM_BUILD_ROOT$dir ln -s %{_datadir}/rpmdevtools/rpmdev-init.el $RPM_BUILD_ROOT$dir touch $RPM_BUILD_ROOT$dir/rpmdev-init.elc done # Backwards compatibility symlinks ln -s rpmdev-checksig $RPM_BUILD_ROOT%{_bindir}/fedora-rpmchecksig ln -s rpmdev-diff $RPM_BUILD_ROOT%{_bindir}/fedora-diffarchive ln -s rpmdev-extract $RPM_BUILD_ROOT%{_bindir}/fedora-extract ln -s rpmdev-md5 $RPM_BUILD_ROOT%{_bindir}/fedora-md5 ln -s rpmdev-newspec $RPM_BUILD_ROOT%{_bindir}/fedora-newrpmspec ln -s rpmdev-rmdevelrpms $RPM_BUILD_ROOT%{_bindir}/fedora-rmdevelrpms ln -s rpmdev-setuptree $RPM_BUILD_ROOT%{_bindir}/fedora-buildrpmtree ln -s rpmdev-vercmp $RPM_BUILD_ROOT%{_bindir}/fedora-rpmvercmp ln -s rpmdev-wipetree $RPM_BUILD_ROOT%{_bindir}/fedora-wipebuildtree ln -s rpminfo $RPM_BUILD_ROOT%{_bindir}/fedora-rpminfo %check make check %clean rm -rf $RPM_BUILD_ROOT %post # Upgrade from fedora-rpmdevtools: oldconf=%{_sysconfdir}/fedora/rmdevelrpms.conf if [ $1 -eq 1 -a -f $oldconf ] ; then echo "5615a64d80f6e6b4df77b3ab0ef1469c $oldconf" \ | md5sum -c --status - >/dev/null 2>&1 || \ cat $oldconf > %{_sysconfdir}/rpmdevtools/rmdevelrpms.conf || : fi %triggerin -- emacs-common [ -d %{emacs_sitestart_d} ] && \ ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{emacs_sitestart_d} || : %triggerin -- xemacs-common [ -d %{xemacs_sitestart_d} ] && \ ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{xemacs_sitestart_d} || : %triggerun -- emacs-common [ $2 -eq 0 ] && rm -f %{emacs_sitestart_d}/rpmdev-init.el* || : %triggerun -- xemacs-common [ $2 -eq 0 ] && rm -f %{xemacs_sitestart_d}/rpmdev-init.el* || : %files %defattr(-,root,root,-) %doc COPYING README* %config(noreplace) %{_sysconfdir}/rpmdevtools/ %{_datadir}/rpmdevtools/ %{_bindir}/* %{_prefix}/lib/rpm/check-* %ghost %{_datadir}/*emacs %{_mandir}/man?/*.* %changelog * Sat Sep 9 2006 Ville Skyttä - 5.1-1 - Re-add PHP PEAR spec template, more improvements to it (#198706, Christopher Stone, Remi Collet). * Tue Aug 22 2006 Ville Skyttä - 5.0-2 - Migrate rmdevelrpms config when upgrading from fedora-rpmdevtools. * Sun Aug 20 2006 Ville Skyttä - 5.0-1 - Re-rename almost everything to rpmdev-*, with backwards compat symlinks. - Don't encourage %%ghost'ing *.pyo in Python spec template, add some comments. - Drop PHP PEAR spec template, it's not ready yet. * Wed Aug 2 2006 Ville Skyttä - Treat *-sdk as devel packages in rmdevelrpms (#199909). - Don't assume compface is a devel package in rmdevelrpms. * Thu Jul 20 2006 Ville Skyttä - Mark things that are not needed for noarch module packages in the Perl spec template. * Wed Jul 19 2006 Ville Skyttä - Move option arguments to "find" before non-option ones in Perl spec template. - Drop python-abi dependency from Python spec template (#189947). * Tue Jul 18 2006 Ville Skyttä - Add PHP PEAR spec template (#198706, Christopher Stone). * Mon Jul 17 2006 Ville Skyttä - Drop fedora- prefix everywhere, add backcompat symlinks for execubtables. - Move %%{_sysconfdir}/fedora to %%{_sysconfdir}/rpmdevtools and %%{_datadir}/fedora to %%{_datadir}/rpmdevtools. - Move spec templates to %%{_sysconfdir}/rpmdevtools, mark as config. - Bump version to 5.0. * Sun Jul 16 2006 Ville Skyttä - Drop fedora-kmodhelper. - Drop fedora-installdevkeys and GPG keys, modify rpmchecksig to use the system rpmdb. * Sat Jul 15 2006 Ville Skyttä - Sort rmdevelrpms' output. * Fri Jul 7 2006 Ville Skyttä - Improve ruby spec template (#180066, David Lutterkort). * Mon Jun 5 2006 Ville Skyttä - Add manual pages for rmdevelrpms, diffarchive and extract. - Trim pre-2005 changelog entries. - Autotoolize source tree. * Tue May 16 2006 Ville Skyttä - 1.6-1 - Add spec template for library packages (#185606, Ignacio Vazquez-Abrams). * Sun Feb 26 2006 Ville Skyttä - 1.5-1 - Improve diffarchive and extract error messages. * Fri Feb 24 2006 Ville Skyttä - Update spectool to 1.0.7 (#162253). * Thu Feb 9 2006 Ville Skyttä - Add file(1) based archive type detection to fedora-extract. * Wed Feb 8 2006 Ville Skyttä - Add "diff file lists only" option to diffarchive. * Sun Feb 5 2006 Ville Skyttä - Add Ruby spec template (#180066, Oliver Andrich) and make newrpmspec use it for ruby-*. * Sat Feb 4 2006 Ville Skyttä - 1.4-2 - Fix rpath checker tests with bash 3.1 (#178636, Enrico Scholz). * Fri Dec 30 2005 Ville Skyttä - 1.4-1 - Update spectool to 1.0.6 (#176521). * Wed Dec 28 2005 Ville Skyttä - Update spectool to 1.0.5 (#162253), require wget for it. - Add disttags to spec templates. * Thu Oct 27 2005 Ville Skyttä - 1.3-1 - check-rpaths-worker: detect when RPATH references the parent directory of an absolute path (#169298, Enrico Scholz). - Add regression test for check-rpaths* (#169298, Enrico Scholz). - Honor user's indent-tabs-mode setting in fedora-init.el (#170902). * Fri Oct 7 2005 Ville Skyttä - 1.2-1 - check-buildroot: grep for buildroot as a fixed string, not a regexp. - Update FSF's address in copyright notices. - check-rpaths-worker: allow multiple $ORIGIN paths in an RPATH and allow RPATHs which are relative to $ORIGIN (#169298, Enrico Scholz). - check-rpaths-worker: give out an hint about usage and the detected issues at the first detected error (Enrico Scholz). - Remove some redundancy from the Perl spec template. - Teach fedora-newrpmspec to detect and use different specfile variants. - Use fedora-newrpmspec in fedora-init.el. * Fri Jul 8 2005 Ville Skyttä - 1.1-1 - Drop more pre-FC2 compat stuff from Perl spec template. - Treat gcc-gfortran as a devel package in rmdevelrpms. - Drop fedora.us GPG key. * Thu Mar 24 2005 Ville Skyttä - 1.0-1 - Make fedora-diffarchive work better with archives containing dirs without read/execute permissions. - Sync "Epoch: 0" drops with Fedora Extras CVS. - Include Nils Philippsen's spectool. - Own (%%ghost'd) more dirs from the site-lisp dir hierarchies. - Drop trigger support pre-FC2 Emacs and XEmacs packages. - Drop rpm-spec-mode.el patch, no longer needed for FC2 Emacs and later. - Update URLs. - Drop developer GPG keys from the package, add Fedora Extras key. - Drop fedora-pkgannfmt, it's no longer relevant. - Remove pre-FC2 compatibility stuff from Perl spec template. - Don't try to remove gcc-java and related packages by default in rmdevelrpms. - Remove "full featured" spec template, convert newrpmspec to use -minimal. * Sun Feb 6 2005 Ville Skyttä - 0:0.3.1-1 - Make buildrpmtree and wipebuildtree less dependent on a specific configuration (#147014, Ignacio Vazquez-Abrams). * Tue Jan 18 2005 Ville Skyttä - 0:0.3.0-1 - Remove 0.fdr. prefixes and epoch 0's from all spec templates. - Add try-restart action to init script template. - Remove deprecated fedora-diffrpm and fedora-unrpm. - Install check-* to %%{_prefix}/lib/rpm instead of %%{_libdir}/rpm (bug 2351). - Check both %%{_prefix}/lib and %%{_prefix}/lib64 in the xemacs trigger. - Update rpminfo to 2004-07-07-01 and include it in the tarball.