Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64957e4f22 | ||
|
|
1950577399 | ||
| 581a6edf02 | |||
| fd5d11129f |
5 changed files with 43 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
wf-0.41.tar.bz2
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: wf
|
||||
# $Id$
|
||||
NAME := wf
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
2506603e8eafe0fab0c8e809b984d834 wf-0.41.tar.bz2
|
||||
41
wf.spec
Normal file
41
wf.spec
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
Summary: Simple word frequency counter
|
||||
Name: wf
|
||||
Version: 0.41
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2
|
||||
Group: Applications/Text
|
||||
URL: http://www.async.com.br/~marcelo/%{name}/
|
||||
Source0: http://www.async.com.br/~marcelo/%{name}/%{name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
wf scans a text file and counts the frequency of words through the
|
||||
whole text.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__make} DESTDIR=%{buildroot} INSTALL="%{__install} -p" install
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, -)
|
||||
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
|
||||
%changelog
|
||||
* Fri Jan 18 2008 Terje Rosten <terje.rosten@ntnu.no> - 0.41-1
|
||||
- 0.41
|
||||
|
||||
* Wed Jan 16 2008 Terje Rosten <terje.rosten@ntnu.no> - 0.4-1
|
||||
- initial build.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue