SPECS: rpmDirectoryCheck.spec (NEW) - new

glen glen at pld-linux.org
Tue Mar 27 16:07:26 CEST 2007


Author: glen                         Date: Tue Mar 27 14:07:25 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: SPECS/rpmDirectoryCheck.spec
diff -u /dev/null SPECS/rpmDirectoryCheck.spec:1.1
--- /dev/null	Tue Mar 27 16:07:26 2007
+++ SPECS/rpmDirectoryCheck.spec	Tue Mar 27 16:07:20 2007
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+Summary:	A QA tool to check a large set of RPM-packages for packaging errors
+Name:		rpmDirectoryCheck
+Version:	0.8.3
+Release:	0.1
+License:	GPL
+Group:		Development/Tools
+Source0:	http://enrico-scholz.de/rpmDirectoryCheck/files/%{name}-%{version}.tar.bz2
+# Source0-md5:	71028282c5cfd6c8b7a9104c3cc001fb
+URL:		http://enrico-scholz.de/rpmDirectoryCheck/
+BuildRequires:	graphviz
+BuildRequires:	libxslt
+BuildRequires:	python
+BuildRequires:	sed >= 4.0
+BuildRequires:	texinfo-texi2dvi
+#Suggests:	graphviz
+Requires:	libxslt
+Requires:	python-rpm
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This program was designed to find RPM-packages which are putting files
+into directories without owning this directories. This practice
+creates warnings while upgrading packages in the best case. In the
+worst case you will have a lot of orphaned directories and wasted
+inodes after deleting a package.
+
+As a side-effect the directory-checker can create a graphical
+representation of a package and its requirements.
+
+%prep
+%setup -q
+%{__sed} -i -e '1s,#!.*bin/python2,#!%{_bindir}/python,'#! src/*.py
+
+%build
+%configure
+%{__make} all
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+for i in $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/*.conf; do
+	test -e "$i" || continue
+	touch $i{o,c}
+done
+
+%py_postclean %{_datadir}/rpmDirectoryCheck
+
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%preun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog NEWS README THANKS
+%doc sample/generate.sh
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf
+%ghost %{_sysconfdir}/%{name}/*.confc
+%ghost %{_sysconfdir}/%{name}/*.confo
+%attr(755,root,root) %{_bindir}/*
+%{_infodir}/*.info*
+%{_datadir}/%{name}
+
+%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  2007/03/27 14:07:20  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list