* Restore the 'clean' section of rpm.spec

* Remove bogus directories from the tree



git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@114 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
This commit is contained in:
mheily 2009-11-26 06:20:10 +00:00
parent b13e9222a5
commit 84bc7205d8
2 changed files with 4 additions and 5 deletions

View File

@ -60,7 +60,7 @@ $(DISTFILE): $(OBJS)
$(MANS) $(EXTRA_DIST) \
$(PROGRAM)-$(VERSION)
cp -R $(SUBDIRS) $(PROGRAM)-$(VERSION)
rm -rf `find $(PROGRAM)-$(VERSION) -type d -name .svn`
rm -rf `find $(PROGRAM)-$(VERSION) -type d -name .svn -o -name .libs`
cd $(PROGRAM)-$(VERSION) && rm $(OBJS)
tar zcf $(PROGRAM)-$(VERSION).tar.gz $(PROGRAM)-$(VERSION)
rm -rf $(PROGRAM)-$(VERSION)
@ -93,7 +93,7 @@ merge:
distclean: clean
rm -f *.tar.gz config.mk config.h $(PROGRAM).pc $(PROGRAM).la rpm.spec
rpm: $(DISTFILE)
rpm: clean $(DISTFILE)
rm -rf rpm *.rpm *.deb
mkdir -p rpm/BUILD rpm/RPMS rpm/SOURCES rpm/SPECS rpm/SRPMS
mkdir -p rpm/RPMS/i386 rpm/RPMS/x86_64
@ -101,5 +101,6 @@ rpm: $(DISTFILE)
rpmbuild -bb rpm.spec
mv ./rpm/RPMS/* .
rm -rf rpm
rmdir i386 x86_64 # WORKAROUND: These aren't supposed to exist
fakeroot alien --scripts *.rpm

View File

@ -31,20 +31,18 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
@@PKG_DESCRIPTION@@
%prep
tar zxvf ../SOURCES/@@PROGRAM@@-@@VERSION@@.tar.gz
mv @@PROGRAM@@-@@VERSION@@/* .
%build
./configure --prefix=/usr
make
%install
make DESTDIR=%buildroot install
%clean
[ ${RPM_BUILD_ROOT} != "/" ] && rm -rf ${RPM_BUILD_ROOT}
%post
/sbin/ldconfig