mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Removed old ede.spec.in
Replaced l10-prepare.pl with updated l10-prepare.sh
This commit is contained in:
parent
ae122e1885
commit
3fc1c7530c
@ -1,76 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: ede.spec.in 1652 2006-06-07 19:37:51Z karijes $
|
|
||||||
#
|
|
||||||
# Part of Equinox Desktop Environment (EDE).
|
|
||||||
# Copyright (c) 2000-2006 EDE Authors.
|
|
||||||
#
|
|
||||||
# This program is licenced under terms of the
|
|
||||||
# GNU General Public Licence version 2 or newer.
|
|
||||||
# See COPYING for details.
|
|
||||||
|
|
||||||
|
|
||||||
# Note that this is NOT a relocatable package
|
|
||||||
# rpm -bb ede.spec ; /usr/src/RPM/SPECS
|
|
||||||
|
|
||||||
%define name ede
|
|
||||||
%define ver @EDE_VERSION@
|
|
||||||
%define rel 1
|
|
||||||
%define localstatedir /var/lib
|
|
||||||
%define pakdir %{name}-%{ver}
|
|
||||||
|
|
||||||
Summary: The core programs for the Equinox Desktop Environment.
|
|
||||||
Name: %{name}
|
|
||||||
Version: %ver
|
|
||||||
Release: %rel
|
|
||||||
Copyright: GPL
|
|
||||||
Group: X11/EDE/Base
|
|
||||||
Source: %{name}-%{ver}.tar.gz
|
|
||||||
BuildRoot: /var/tmp/%{name}-%{version}-root
|
|
||||||
URL: http://sourceforge.net/projects/ede
|
|
||||||
Prereq: /sbin/install-info
|
|
||||||
Requires: efltk-devel >= 2.0.4
|
|
||||||
|
|
||||||
%description
|
|
||||||
Equinox Desktop Environment (EDE) is desktop environment - the piece of
|
|
||||||
software that enables you to launch applications in a convenient way,
|
|
||||||
show what windows you have opened, manages icons and background of your
|
|
||||||
desktop, etc. This core package provides panel with tasklist, clock,
|
|
||||||
load status; icon manager that take care of your icons on background,
|
|
||||||
control panel for easy access to your settings, helpbook for reading
|
|
||||||
documentation, color configuration, panel configuration, display configuration
|
|
||||||
utility, menu editor, icons configuration, tips, time/date and timezone
|
|
||||||
configuration, fast file search tool and of course window manager that manages
|
|
||||||
your windows with config utility.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{pakdir}
|
|
||||||
|
|
||||||
%build
|
|
||||||
|
|
||||||
./build.gcc --prefix=%{_prefix}
|
|
||||||
|
|
||||||
%install
|
|
||||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
make prefix=$RPM_BUILD_ROOT%{_prefix} install
|
|
||||||
|
|
||||||
%clean
|
|
||||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
|
||||||
#/sbin/ldconfig
|
|
||||||
|
|
||||||
%postun
|
|
||||||
#/sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
||||||
%defattr (-, root, root)
|
|
||||||
%{_bindir}/*
|
|
||||||
#%{_sysconfdir}/
|
|
||||||
%{_datadir}/locale/*/*/*
|
|
||||||
%{_datadir}/ede/*
|
|
||||||
%{_datadir}/ede/.ede/*
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
|||||||
#!/usr/bin/perl
|
|
||||||
|
|
||||||
# This Perl script prepares files for translations.
|
|
||||||
# Extracts strings from code, copies into l10n/ directory and
|
|
||||||
# creates convinient .tar.gz packages for languages.
|
|
||||||
# Copyright (c) Vedran Ljubovic 2005.
|
|
||||||
# This program is licensed under terms of GNU General Public
|
|
||||||
# License v2 or greater.
|
|
||||||
|
|
||||||
|
|
||||||
@directories = ("common", "ecolorconf", "econtrol", "edewm",
|
|
||||||
"edisplayconf", "efinder","eiconman", "eiconsconf", "einstaller",
|
|
||||||
"ekeyconf", "elauncher", "emenueditor", "epanelconf", "esvrconf",
|
|
||||||
"etimedate", "etip", "evolume", "ewmconf", "eworkpanel");
|
|
||||||
|
|
||||||
|
|
||||||
foreach $dir (@directories) {
|
|
||||||
print "Extracting $dir...\n";
|
|
||||||
|
|
||||||
# Extract new strings from code
|
|
||||||
$command = "xgettext -o $dir/locale/messages.pot --keyword=\_ $dir/*.cpp $dir/*.h";
|
|
||||||
`$command`;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
print "Copying files...\n";
|
|
||||||
while ($nextname = <*/locale/*.po>) {
|
|
||||||
if ($nextname =~ /(.*?)\/locale\/(.*?)\.po/) {
|
|
||||||
$dest = "l10n/$2/$1".".po";
|
|
||||||
`mkdir l10n/$2 &>/dev/null`;
|
|
||||||
`cp -f $nextname $dest`;
|
|
||||||
} else {
|
|
||||||
print "Error: $nextname\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
`mkdir l10n/nontranslated &>/dev/null`;
|
|
||||||
while ($nextname = <*/locale/messages.pot>) {
|
|
||||||
if ($nextname =~ /(.*?)\/locale\/messages.pot/) {
|
|
||||||
$dest = "l10n/nontranslated/$1".".pot";
|
|
||||||
`cp -f $nextname $dest`;
|
|
||||||
} else {
|
|
||||||
print "Error: $nextname\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
while ($nextname = <l10n/*>) {
|
|
||||||
if ((-d $nextname) && ($nextname =~ /l10n\/(.*?)$/)) {
|
|
||||||
print "Creating package for $1...\n";
|
|
||||||
`tar czvf l10n/$1.tar.gz l10n/$1`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
70
tools/l10n-prepare.sh
Normal file
70
tools/l10n-prepare.sh
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# $Id$
|
||||||
|
# Copy and rename message.pot files, according to their source and pack it
|
||||||
|
# Inspired with l10n-prepare.pl Vedran Ljubovic wrote for EDE 1.x
|
||||||
|
#
|
||||||
|
# Copyright (c) 2005 Vedran Ljubovic
|
||||||
|
# Copyright (c) 2008 Sanel Zukan
|
||||||
|
# License as usually, the same as the rest of EDE parts...
|
||||||
|
|
||||||
|
pots="ede-2.0.0-l10n"
|
||||||
|
|
||||||
|
directories="
|
||||||
|
eabout
|
||||||
|
ecalc
|
||||||
|
ecolorconf
|
||||||
|
econtrol
|
||||||
|
ecrasher
|
||||||
|
edesktopconf
|
||||||
|
edewm
|
||||||
|
edialog
|
||||||
|
edisplayconf
|
||||||
|
efiler
|
||||||
|
efinder
|
||||||
|
ehelp
|
||||||
|
eiconman
|
||||||
|
eimage
|
||||||
|
einstaller
|
||||||
|
ekeyconf
|
||||||
|
elauncher
|
||||||
|
elma
|
||||||
|
emenueditor
|
||||||
|
emountd
|
||||||
|
epanelconf
|
||||||
|
esvrconf
|
||||||
|
etimedate
|
||||||
|
etip
|
||||||
|
evoke
|
||||||
|
evolume
|
||||||
|
ewmconf
|
||||||
|
eworkpanel
|
||||||
|
exset"
|
||||||
|
|
||||||
|
[ -d $pots ] && rm -R $pots
|
||||||
|
mkdir $pots
|
||||||
|
|
||||||
|
for i in $directories; do
|
||||||
|
printf "Processing %-25s" "$i..."
|
||||||
|
if [ -r "../$i/locale/messages.pot" ]; then
|
||||||
|
cp "../$i/locale/messages.pot" "$pots/$i.pot"
|
||||||
|
echo "OK"
|
||||||
|
else
|
||||||
|
echo "Not found"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
cat >$pots/README <<EOF
|
||||||
|
This directory contains files with untranslated strings from various EDE programs and
|
||||||
|
the filename with .pot extension matches the program strings was extracted from.
|
||||||
|
|
||||||
|
In case you find some spare time, it would be very nice to help us by translating
|
||||||
|
these files to your language or validate and update existing translations.
|
||||||
|
|
||||||
|
Your contribution is very much appreciated. Thank you advaced!!!
|
||||||
|
|
||||||
|
EDE Team :-)
|
||||||
|
http://equinox-project.org
|
||||||
|
EOF
|
||||||
|
|
||||||
|
tar -czpf $pots.tar.gz $pots
|
||||||
|
rm -R $pots
|
Loading…
Reference in New Issue
Block a user