2007-01-16 00:11:10 +01:00
|
|
|
#
|
2010-03-26 16:41:39 +01:00
|
|
|
# spec file for package yast2-trans-stats (Version 2.19.0)
|
2007-01-16 00:11:10 +01:00
|
|
|
#
|
2010-03-26 16:41:39 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:11:10 +01:00
|
|
|
#
|
2009-06-19 00:29:43 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:11:10 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-19 00:29:43 +02:00
|
|
|
|
2007-01-16 00:11:10 +01:00
|
|
|
Name: yast2-trans-stats
|
|
|
|
#!BuildIgnore: yast2-build-test yast2-schema
|
|
|
|
#!BuildIgnore: java-sdk-1.5.0 java-devel
|
2007-03-27 01:26:33 +02:00
|
|
|
#!BuildIgnore: tomcat5
|
2007-07-13 20:57:36 +02:00
|
|
|
BuildRequires: yast2-trans-allpacks
|
2010-03-26 16:41:39 +01:00
|
|
|
Version: 2.19.0
|
|
|
|
Release: 1
|
|
|
|
License: GPLv2+
|
2007-01-16 00:11:10 +01:00
|
|
|
Group: System/YaST
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-06-19 00:29:43 +02:00
|
|
|
Prefix: /usr
|
2007-01-16 00:11:10 +01:00
|
|
|
# Requires: yast2-config-XXpkgXX
|
2009-06-19 00:29:43 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:11:10 +01:00
|
|
|
Summary: YaST2 - Translation Statistics
|
|
|
|
|
|
|
|
%description
|
2009-06-19 00:29:43 +02:00
|
|
|
The package contains statistic files (one file per language). With the
|
|
|
|
help of these statistics Yast warns you if you select a language for
|
2007-01-16 00:11:10 +01:00
|
|
|
installation which is unsufficiently translated.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-16 07:51:37 +02:00
|
|
|
%prep
|
2007-01-16 00:11:10 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
for f in /usr/share/doc/packages/yast2-trans-*/status.txt; do
|
|
|
|
[ -f $f ] || continue
|
|
|
|
l=${f%/*}; l=${l##*-}
|
|
|
|
case $l in
|
|
|
|
en_*)
|
|
|
|
echo 100 >$l.status
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
sed -n 's/^\([[:digit:]]\+\).*/\1/p' $f >$l.status
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
[ -s $l.status ] || rm $l.status
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -d $RPM_BUILD_ROOT/usr/lib/YaST2/trans
|
|
|
|
install -m 644 *.status $RPM_BUILD_ROOT/usr/lib/YaST2/trans
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-07-16 07:51:37 +02:00
|
|
|
%dir /usr/lib/YaST2
|
2007-01-16 00:11:10 +01:00
|
|
|
/usr/lib/YaST2/trans
|
|
|
|
|
2007-03-27 01:26:33 +02:00
|
|
|
%changelog
|