[fedora-packager/el4/master] make fedpkg able to download sources on EL-4

Dennis Gilmore ausil at fedoraproject.org
Thu Jul 29 23:02:14 UTC 2010


commit e2ad540e4b6a52712af7c4a3536421de40a58861
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Thu Jul 29 18:01:06 2010 -0500

    make fedpkg able to download sources on EL-4
    
    this is a simple shell script just to get sources  nothing in fedora-packager
    is supported on EL-4

 fedora-packager.spec |   41 ++++++++++++++++-------------------------
 fedpkg               |   10 ++++++++++
 2 files changed, 26 insertions(+), 25 deletions(-)
---
diff --git a/fedora-packager.spec b/fedora-packager.spec
index 6f30712..40806f3 100644
--- a/fedora-packager.spec
+++ b/fedora-packager.spec
@@ -1,6 +1,3 @@
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%endif
 
 Name:           fedora-packager
 Version:        0.5.1.0
@@ -10,20 +7,10 @@ Summary:        Tools for setting up a fedora maintainer environment
 Group:          Applications/Productivity
 License:        GPLv2+
 URL:            https://fedorahosted.org/fedora-packager
-Source0:        https://fedorahosted.org/releases/f/e/fedora-packager/fedora-packager-%{version}.tar.bz2
+Source0:        fedpkg
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  python-devel
-Requires:       koji bodhi-client 
-Requires:       rpm-build rpmdevtools rpmlint
-Requires:       mock cvs curl wget make openssh-clients
-Requires:       pyOpenSSL python-pycurl
-Requires:       redhat-rpm-config
-Requires:       python-offtrac
-Requires:       GitPython >= 0.2.0, python-argparse
-%if 0%{?rhel} == 5 || 0%{?rhel} == 4
-Requires:       python-kitchen
-%endif
+Requires:       wget
 
 BuildArch:      noarch
 
@@ -31,17 +18,13 @@ BuildArch:      noarch
 Set of utilities useful for a fedora packager in setting up their environment.
 
 %prep
-%setup -q
-
 
 %build
-%configure
-make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+install -m 755 %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -49,13 +32,21 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc COPYING TODO AUTHORS ChangeLog
-%{_bindir}/*
-%{python_sitelib}/pyfedpkg
-%{python_sitelib}/fedora_cert
+%doc
+%{_bindir}/fedpkg
 
 %changelog
 * Thu Jul 29 2010 Dennis Gilmore <dennis at ausil.us> -0.5.1.0-1
+- EL-4 only build
+
+* Thu Jul 29 2010 Dennis Gilmore <dennis at ausil.us> -0.5.1.0-0.3
+- fix typo on script
+
+* Thu Jul 29 2010 Dennis Gilmore <dennis at ausil.us> -0.5.1.0-0.2
+- fork spec for EL-4
+- simple script to just download the source
+
+* Thu Jul 29 2010 Dennis Gilmore <dennis at ausil.us> -0.5.1.0-1
 - wrap fedora-cert in try except 
 - fedpkg fixes
 - require python-kitchen on EL-4 and 5
diff --git a/fedpkg b/fedpkg
new file mode 100644
index 0000000..12a6463
--- /dev/null
+++ b/fedpkg
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+baseurl=http://pkgs.fedoraproject.org/repo/pkgs
+pkgname=$(pwd| sed -e 's|^/.*/||g')
+tarball=$(cat  sources| sed -e 's|.*  ||g')
+md5sum=$(cat  sources| sed -e 's|  .*||g')
+
+wget $baseurl/$pkgname/$tarball/$md5sum/$tarball
+
+


More information about the scm-commits mailing list