rpms/grin/F-9 grin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Terje Røsten terjeros at fedoraproject.org
Fri Feb 27 21:53:46 UTC 2009


Author: terjeros

Update of /cvs/extras/rpms/grin/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14808/F-9

Modified Files:
	.cvsignore sources 
Added Files:
	grin.spec 
Log Message:
Sync with rawhide.




--- NEW FILE grin.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}

Summary:       Grep-like tool for source code
Name:          grin
Version:       1.1.1
Release:       2%{?dist}
License:       BSD
Group:         Applications/Text
URL:           http://pypi.python.org/pypi/grin
Source0:       http://pypi.python.org/packages/source/g/grin/%{name}-%{version}.tar.gz
Requires:      python-setuptools python-argparse
BuildArch:     noarch
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-setuptools-devel python-nose python-argparse

%description

grin is a similar in function to GNU grep, however it's has modified
behaviour to make it simpler to use when grepping source code.

Some features grin feature are:

  * recurse directories by default
  * do not go into directories with specified names
  * do not search files with specified extensions
  * be able to show context lines before and after matched lines
  * Python regex syntax
  * unless suppressed via a command line option, display the filename 
    regardless of the number of files
  * accept a file (or stdin) with a list of newline-separated filenames
  * grep through gzipped text files
  * be useful as a library to build custom tools quickly

%prep
%setup -q
%{__chmod} 0644 examples/*
%{__sed} -i -e '1d' grin.py

%build
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

%check
nosetests

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, -)
%doc ANNOUNCE.txt examples LICENSE.txt README.txt THANKS.txt
%{_bindir}/%{name}
%{_bindir}/grind
%{python_sitelib}/%{name}.py*
%{python_sitelib}/%{name}-%{version}-py%{pyver}.egg-info/

%changelog
* Sat Feb 21 2009 Terje Rosten <terje.rosten at ntnu.no> - 1.1.1-2
- add docs
- rpmlint clean
- add %%check section

* Sat Jan 17 2009 Terje Rosten <terje.rosten at ntnu.no> - 1.1.1-1
- initial build




Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/grin/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	27 Feb 2009 00:22:05 -0000	1.1
+++ .cvsignore	27 Feb 2009 21:53:15 -0000	1.2
@@ -0,0 +1 @@
+grin-1.1.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/grin/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	27 Feb 2009 00:22:05 -0000	1.1
+++ sources	27 Feb 2009 21:53:15 -0000	1.2
@@ -0,0 +1 @@
+9dca5a5876938adfd9dfc20869818660  grin-1.1.1.tar.gz




More information about the fedora-extras-commits mailing list