Compare commits

...
This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
40453d1a3a dist-git conversion 2010-07-28 09:34:05 +00:00
Bill Nottingham
5564119e92 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:24:40 +00:00
Rakesh Pandit
6edc083045 Initial import 2009-06-21 12:32:59 +00:00
Jason ティビツ
b1f0333666 Initialize branch F-10 for acheck 2009-06-20 15:06:17 +00:00
5 changed files with 95 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
acheck_0.5.1.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: acheck
# $Id$
NAME := acheck
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)

93
acheck.spec Normal file
View file

@ -0,0 +1,93 @@
Name: acheck
Version: 0.5.1
Release: 2%{?dist}
Summary: Check common localisation mistakes
Group: Applications/Text
License: GPLv2+
URL: http://packages.debian.org/etch/%{name}
Source0: http://ftp.de.debian.org/debian/pool/main/a/acheck/%{name}_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext
BuildArch: noarch
Requires: perl
Requires: perl(Text::Aspell), perl(Config::General), perl(Term::Size), perl(Locale::gettext)
Requires: perl(Locale::PO), perl(Term::ReadLine::Gnu), perl(Term::UI), %{name}-rules
%description
Any text file checker, is a tool designed to help both
translators and reviewers checking and fixing common localisation
mistakes according to file format. Rules can be defined to add new
checks.
%prep
%setup -q -n acheck-%{version}
%build
#Empty build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}/
install -p -m 755 %{name} $RPM_BUILD_ROOT/%{_bindir}/
mkdir -p $RPM_BUILD_ROOT%{perl_vendorlib}/ACheck/
install -p -m 644 Common.pm FileType.pm Parser.pm \
$RPM_BUILD_ROOT%{perl_vendorlib}/ACheck/
cd po;make;cd ..
echo """
use Pod::Man;
my \$parser = Pod::Man->new(release => \$VERSION, section => 8);
\$parser->parse_from_file(\$ARGV[0], \$ARGV[1]);
""" > $RPM_BUILD_ROOT/pod2man.pl
perl $RPM_BUILD_ROOT/pod2man.pl man/acheck.1.pod acheck.1
perl $RPM_BUILD_ROOT/pod2man.pl man/acheck.5.pod acheck.5
perl $RPM_BUILD_ROOT/pod2man.pl man/acheck.fr.1.pod acheck.fr.1
perl $RPM_BUILD_ROOT/pod2man.pl man/acheck.fr.5.pod acheck.fr.5
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man5/
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/fr
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man5/fr
install -p -m 644 acheck.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
install -p -m 644 acheck.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
install -p -m 644 acheck.fr.1 $RPM_BUILD_ROOT/%{_mandir}/man1/fr/acheck.1
install -p -m 644 acheck.fr.5 $RPM_BUILD_ROOT/%{_mandir}/man5/fr/acheck.5
rm -f $RPM_BUILD_ROOT/pod2man.pl
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/locale/fr/LC_MESSAGES/ \
$RPM_BUILD_ROOT/%{_datadir}/locale/pl/LC_MESSAGES/ \
$RPM_BUILD_ROOT/%{_datadir}/locale/sv/LC_MESSAGES/
install -p -m 644 po/fr.mo $RPM_BUILD_ROOT/%{_datadir}/locale/fr/LC_MESSAGES/%{name}.mo
install -p -m 644 po/pl.mo $RPM_BUILD_ROOT/%{_datadir}/locale/pl/LC_MESSAGES/%{name}.mo
install -p -m 644 po/sv.mo $RPM_BUILD_ROOT/%{_datadir}/locale/sv/LC_MESSAGES/%{name}.mo
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc debian/changelog debian/copyright
%doc misc/bash_completion
%{_bindir}/%{name}
%{perl_vendorlib}/*
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*
%{_mandir}/man1/fr/*.1*
%{_mandir}/man5/fr/*.5*
%{_datadir}/locale/fr/LC_MESSAGES/%{name}.mo
%{_datadir}/locale/pl/LC_MESSAGES/%{name}.mo
%{_datadir}/locale/sv/LC_MESSAGES/%{name}.mo
%changelog
* Sun Jun 21 2009 Rakesh Pandit <rakesh@fedoraproject.org> 0.5.1-2
- Fixed Provides and Requires
* Fri Jun 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> 0.5.1-1
- Initial package

View file

@ -0,0 +1 @@
8977ac8ef12d926f029a5a3e635cf779 acheck_0.5.1.tar.gz