SPECS: rpm-specdump.spec (NEW) - based on rpm-getdeps.spec

glen glen at pld-linux.org
Wed Jan 23 09:26:19 CET 2008


Author: glen                         Date: Wed Jan 23 08:26:19 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- based on rpm-getdeps.spec

---- Files affected:
SPECS:
   rpm-specdump.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/rpm-specdump.spec
diff -u /dev/null SPECS/rpm-specdump.spec:1.1
--- /dev/null	Wed Jan 23 09:26:19 2008
+++ SPECS/rpm-specdump.spec	Wed Jan 23 09:26:14 2008
@@ -0,0 +1,50 @@
+# $Revision$, $Date$
+Summary:	Print RPM dump of specfile
+Name:		rpm-specdump
+Version:	0.1
+Release:	1
+License:	GPL
+Group:		Applications/System
+Source0:	rpm-specdump.c
+BuildRequires:	rpm-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Print RPM dump of specfile.
+
+%prep
+%setup -q -c -T
+cp %{SOURCE0} rpm-specdump.c
+
+cat <<'EOF' > Makefile
+rpm-specdump: rpm-specdump.o
+	%{__cc} -lrpm -lrpmbuild $< -o $@ %{rpmldflags}
+
+rpm-specdump.o: rpm-specdump.c
+	%{__cc} %{rpmcflags} -Wall -W -I/usr/include/rpm -Wall -c $< -o $@
+EOF
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install %{name} $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-01-23 08:26:14  glen
+- based on rpm-getdeps.spec
+
================================================================


More information about the pld-cvs-commit mailing list