Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > ee9d58f76ec31440ae683eefb41691a4 > files > 2

rpmdevtools-8.3-1.mga1.src.rpm

%global spectool_version 1.0.10
%define _emacs_sitestartdir %_datadir/emacs/site-lisp/site-start.d/

Name:           rpmdevtools
Version:        8.3
Release:        %mkrel 1
Summary:        RPM Development Tools

Group:          Development/Other
# rpmdev-setuptree is GPLv2, everything else GPLv2+
License:        GPLv2+ and GPLv2
URL:            https://fedorahosted.org/rpmdevtools/
Source0:        https://fedorahosted.org/released/rpmdevtools/%{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch:      noarch
# help2man, pod2man, *python for creating man pages
BuildRequires:  help2man
BuildRequires:  python >= 2.4
BuildRequires:  rpm-python
# emacs-common >= 1:22.3-3 for macros.emacs
#BuildRequires:  emacs-common >= 22.3-3
Provides:       spectool = %{spectool_version}
Requires:       curl
Requires:       diffutils
Requires:       fakeroot
Requires:       file
Requires:       findutils
Requires:       gawk
Requires:       grep
Requires:       man
Requires:       python >= 2.4
Requires:       rpm-build >= 4.4.2.3
Requires:       rpm-python
Requires:       sed

%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/sha*     Display checksums of all files in an archive file
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
rpmdev-bumpspec     Bump revision in specfile
...and many more.


%prep
%setup -q


%build
%configure --libdir=%{_prefix}/lib
%make


%install
rm -rf $RPM_BUILD_ROOT

%makeinstall_std

#for dir in %{_emacs_sitestartdir} %{_xemacs_sitestartdir} ; 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


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING NEWS
%config(noreplace) %{_sysconfdir}/rpmdevtools/
%{_sysconfdir}/bash_completion.d/
%{_datadir}/rpmdevtools/
%{_bindir}/*
#%{_emacs_sitestartdir}/rpmdev-init.el
#%ghost %{_emacs_sitestartdir}/rpmdev-init.elc
#%ghost %{_datadir}/xemacs
%{_mandir}/man[18]/*.[18]*




%changelog

* Tue Oct 16 2012 luigiwalser <luigiwalser> 8.3-1.mga1
+ Revision: 307284
- 8.3 (fixes CVE-2012-3500)

* Fri Feb 18 2011 dmorgan <dmorgan> 8.0-2.mga1
+ Revision: 53502
- Adapt for mageia
  Do not package emacs files for the moment, we need xemacs and maybe merge some macros from fedora
- imported package rpmdevtools