From 29177d2f3fb9982d27d5175dc1897b14472f9bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20=E3=83=86=E3=82=A3=E3=83=93=E3=83=84?= Date: Sat, 20 Jun 2009 15:06:19 +0000 Subject: [PATCH 1/4] Initialize branch F-11 for acheck --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..25c7708 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-11 From 724effb007990a5156f51667a61a9e32c41f8a14 Mon Sep 17 00:00:00 2001 From: Rakesh Pandit Date: Sun, 21 Jun 2009 12:33:08 +0000 Subject: [PATCH 2/4] Initial import --- .cvsignore | 1 + acheck.spec | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++ import.log | 1 + sources | 1 + 4 files changed, 96 insertions(+) create mode 100644 acheck.spec create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index e69de29..34a9550 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +acheck_0.5.1.tar.gz diff --git a/acheck.spec b/acheck.spec new file mode 100644 index 0000000..cbe7edb --- /dev/null +++ b/acheck.spec @@ -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 0.5.1-2 +- Fixed Provides and Requires + +* Fri Jun 12 2009 Rakesh Pandit 0.5.1-1 +- Initial package diff --git a/import.log b/import.log new file mode 100644 index 0000000..cb363f6 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +acheck-0_5_1-2_fc11:F-11:acheck-0.5.1-2.fc11.src.rpm:1245587575 diff --git a/sources b/sources index e69de29..48f4e90 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8977ac8ef12d926f029a5a3e635cf779 acheck_0.5.1.tar.gz From 4b91dd84f778d147872ee2a973e2fc718717d11a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:24:40 +0000 Subject: [PATCH 3/4] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fc051fb..4c99bc0 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: acheck -# $Id$ +# $Id: Makefile,v 1.1 2009/06/20 15:06:15 tibbs Exp $ 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 +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 36e42aa2bed20efb32a9ce8d736c90f91282c491 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 09:34:06 +0000 Subject: [PATCH 4/4] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 1 - 4 files changed, 23 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 4c99bc0..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: acheck -# $Id: Makefile,v 1.1 2009/06/20 15:06:15 tibbs Exp $ -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 $$d/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) diff --git a/branch b/branch deleted file mode 100644 index 25c7708..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-11 diff --git a/import.log b/import.log deleted file mode 100644 index cb363f6..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -acheck-0_5_1-2_fc11:F-11:acheck-0.5.1-2.fc11.src.rpm:1245587575