[yum-cvs] yum-utils Makefile,NONE,1.1 yum-utils.spec,NONE,1.1
Gijs Hollestelle
gijs at login.linux.duke.edu
Mon May 16 19:22:31 UTC 2005
Update of /home/groups/yum/cvs/yum-utils
In directory login:/tmp/cvs-serv6630
Added Files:
Makefile yum-utils.spec
Log Message:
Adding Makefile and spec file (both based on mock)
--- NEW FILE Makefile ---
PKGNAME = yum-utils
VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec)
RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
clean:
rm -f *.pyc *.pyo *~
install:
mkdir -p $(DESTDIR)/usr/bin/
install -m 755 package-cleanup.py $(DESTDIR)/usr/bin/package-cleanup
install -m 755 repoclosure.py $(DESTDIR)/usr/bin/repoclosure
install -m 755 repomanage.py $(DESTDIR)/usr/bin/repomanage
install -m 755 repoquery.py $(DESTDIR)/usr/bin/repoquery
install -m 755 repo-rss.py $(DESTDIR)/usr/bin/repo-rss
install -m 755 yumdownloader.py $(DESTDIR)/usr/bin/yumdownloader
archive:
@rm -rf ${PKGNAME}-%{VERSION}.tar.gz
@rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
@dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME}
@rm -f /tmp/${PKGNAME}/${PKGNAME}-daily.spec
@mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
@dir=$$PWD; cd /tmp; tar cvzf $$dir/${PKGNAME}-$(VERSION).tar.gz ${PKGNAME}-$(VERSION)
@rm -rf /tmp/${PKGNAME}-$(VERSION)
@echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
--- NEW FILE yum-utils.spec ---
Summary: Utilities based around the yum package manager
Name: yum-utils
Version: 0.1
Release: 1
License: GPL
Group: Development/Tools
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}root
BuildArch: noarch
Requires: python, yum >= 2.3.2
%description
yum-utils is a collection of utilities and examples for the yum package
manager. It includes utilities by different authors that make yum easier and
more powerful to use.
%prep
%setup -q
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc README
%doc updateonboot
%{_bindir}/package-cleanup
%{_bindir}/repoclosure
%{_bindir}/repomanage
%{_bindir}/repoquery
%{_bindir}/repo-rss
%{_bindir}/yumdownloader
%changelog
* Mon May 16 2005 Gijs Hollestelle <gijs at gewis.nl>
- first version based on the mock spec file
More information about the Yum-cvs-commits
mailing list