aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-12-06 11:49:08 +0000
committerFlorent Villard <warly@mandriva.com>2006-12-06 11:49:08 +0000
commit29bbff058925b703271a9c4958a5c1ec67163437 (patch)
treec1de1e2a9993f33216341f9f9a01fd8457086269
parenta8eb19c4f2c943ae497a6a100f70d9aba3543710 (diff)
downloadiurt-29bbff058925b703271a9c4958a5c1ec67163437.tar
iurt-29bbff058925b703271a9c4958a5c1ec67163437.tar.gz
iurt-29bbff058925b703271a9c4958a5c1ec67163437.tar.bz2
iurt-29bbff058925b703271a9c4958a5c1ec67163437.tar.xz
iurt-29bbff058925b703271a9c4958a5c1ec67163437.zip
added spec and Makefile0.6.2
-rw-r--r--Makefile58
-rw-r--r--iurt.spec35
2 files changed, 93 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..eab7b23
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,58 @@
+
+NAME=iurt
+PACKAGE=$(NAME)
+VERSION := $(shell rpm -q --qf '%{version}\n' --specfile $(NAME).spec | head -1)
+RELEASE := $(shell rpm -q --qf '%{release}\n' --specfile $(NAME).spec | head -1)
+RELTAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
+
+FILES= Makefile emi iurt iurt.spec iurt2 iurt_root_command lib ulri
+RPM=$(HOME)/rpm
+
+VENDORLIB = $(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)
+INSTALLVENDORLIB = $(DESTDIR)$(VENDORLIB)
+
+
+SVNSOFT=svn+ssh://svn.mandriva.com/svn/soft/build_system/iurt/trunk/
+SVNPACKAGE=svn+ssh://svn.mandriva.com/svn/packages/cooker/iurt/current/
+
+sharedir=/usr/share
+libdir=/usr/lib
+bindir=/usr/bin
+sbindir=/usr/sbin
+
+localrpm: dir localcopy tar
+
+install:
+ install -d $(bindir) $(sbindir) $(INSTALLVENDORLIB)/Iurt
+ install -m 644 lib/Iurt/*.pm $(INSTALLVENDORLIB)/Iurt
+ install -m644 iurt_root_command $(sbindir)/
+ install -m644 iurt2 $(bindir)/iurt
+ install -m644 emi ulri $(bindir)/
+
+dir:
+ mkdir $(PACKAGE)-$(VERSION)
+
+tar: dir localcopy
+ tar cvf $(PACKAGE).tar $(PACKAGE)-$(VERSION)
+ rm -rf $(PACKAGE)-$(VERSION)
+
+localcopy:
+ tar c --exclude=.svn $(FILES) | tar x -C $(PACKAGE)-$(VERSION)
+
+localrpm: tar $(RPM)
+ cp -f $(NAME).tar $(RPM)/SOURCES
+ -rpm -ba --clean $(NAME).spec
+ rm -f $(NAME).tar
+
+ci: tar
+ svn ci -m 'Update SPEC for version $(VERSION)' $(NAME).spec
+ svn cp $(SVNSOFT)/$(NAME).spec $(SVNPACKAGE)/SPECS/
+ mkdir svn; cd svn; mdvsys co iurt
+ cp $(NAME).tar svn/iurt/SOURCES/
+ #cd svn; mdvsys ci -m 'update tarball for version $(VERSION)'
+
+rpm: clean ci
+ cd svn/iurt; bm
+
+clean:
+ rm -rf svn
diff --git a/iurt.spec b/iurt.spec
new file mode 100644
index 0000000..0b7d83b
--- /dev/null
+++ b/iurt.spec
@@ -0,0 +1,35 @@
+%define name iurt
+%define release %mkrel 1
+
+Name: %{name}
+Version: 0.6.2
+Release: %{release}
+License: GPL
+Summary: Package rebuilder
+Group: Development/Tools
+URL: http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/build_system/iurt/trunk/
+Source: %{name}.tar
+BuildRoot: %{_tmppath}/%{name}-buildroot
+Requires: mkcd
+
+%description
+iurt is a collection of tools to create an automatic rebuild system
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%makeinstall DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%{_bindir}/emi
+%{_bindir}/iurt
+%{_bindir}/ulri
+%{_sbindir}/iurt_root_command
+%{perl_vendorlib}/Iurt
+