[summain] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Thu Jun 7 13:17:20 UTC 2012


commit d0639c6c7b290454faf023813ef561e6fb9242a1
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Thu Jun 7 20:17:08 2012 +0700

    Initial import

 .gitignore   |    1 +
 sources      |    1 +
 summain.spec |   62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cb150ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/summain_0.13.orig.tar.gz
diff --git a/sources b/sources
index e69de29..9db3311 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9be9fdd2d2bcc56761a1ea002a95f250  summain_0.13.orig.tar.gz
diff --git a/summain.spec b/summain.spec
new file mode 100644
index 0000000..7c23d9c
--- /dev/null
+++ b/summain.spec
@@ -0,0 +1,62 @@
+Name:           summain
+Version:        0.13
+Release:        1%{?dist}
+Summary:        File manifest generator
+
+# ask upstream to include license text
+License:        GPLv3+
+URL:            http://liw.fi/%{name}/
+Source0:        http://ftp.debian.org/debian/pool/main/s/%{name}/%{name}_%{version}.orig.tar.gz
+
+# build-time
+BuildRequires:  python-coverage-test-runner
+BuildRequires:  libattr-devel
+BuildRequires:  python-devel
+# build- and run-time
+BuildRequires:  python-cliapp
+Requires:       python-cliapp
+
+# we don't want to provide private python extension libs
+# http://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Arch-specific_extensions_to_scripting_languages
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/_summain.so 
+%filter_setup
+}
+
+%description
+Summain generates file manifests, which contain metadata about the
+files, and a checksum of their content for regular files. The manifest
+can be generated for a directory tree at different points in time and
+compared (with diff) to see if something has changed.
+
+
+%prep
+%setup -q
+
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+# Generate manpages
+make summain.1
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+# fix permission
+chmod 755 %{buildroot}%{python_sitearch}/_summain.so
+
+
+%check
+%{__python} setup.py check
+
+
+%files
+%doc NEWS README
+%{_mandir}/man1/summain.1*
+%{_bindir}/summain
+%{python_sitearch}/*
+
+
+%changelog
+* Sun Jun  3 2012 Michel Salim <salimma at fedoraproject.org> - 0.13-1
+- Initial package


More information about the scm-commits mailing list