qstardict - stardict

Δημιουργία πακέτων rpm, ζητήστε ένα πακέτο που δεν υπάρχει στη Mageia, την ενημέρωση μια εφαρμογής
Απάντηση
Άβαταρ μέλους
airmaik
Δημοσιεύσεις: 690
Εγγραφή: Τρί Ιουν 07, 2011 16:44 pm
Been thanked: 3 φορές

qstardict - stardict

Δημοσίευση από airmaik » Κυρ Νοέμ 02, 2014 16:48 pm

θέλω να κατεβάσω το stardict στο laptop αλλά βλέπω ότι είναι χτισμένο σε gtk μετά ψάχνω και βρίσκω ότι υπάρχει και για qt το οποίο είναι το qstardict απλά στην mageia από τι βλέπω δεν υπάρχει!τι να κάνω να κατεβάσω το stardict?εκτός και αν υπάρχει κάποιο άλλο που να εχει και αγγλοελληνικό λεξικό
Intel Core i5-6300U CPU @ 2.40GHz ‖ RAM 7860 MiB ‖ HP 8079 - HP HP EliteBook 840 G3
Intel Skylake GT2 [HD Graphics 520] [8086:1916] {i915}
wlp2s0: Intel Wireless 8260 [8086:24f3] (rev 3a) ⋮ enp0s31f6: Intel Ethernet Connection I219-LM [8086:156f] (rev 21)

Άβαταρ μέλους
nikos_k
Δημοσιεύσεις: 299
Εγγραφή: Τετ Ιουν 01, 2011 06:05 am
Been thanked: 2 φορές

Re: qstardict - stardict

Δημοσίευση από nikos_k » Κυρ Νοέμ 02, 2014 21:21 pm

Ενημερωτικά...
είχα εγκαταστήσει το stardict πριν κάνα δυο χρόνια,
όταν δεν είχα ίντερνετ,
και θυμάμαι κάποια ελληνικά λεξικά είχαν πρόβλημα με την κωδικοποίηση των χαρακτήρων,
και δεν δουλεύανε.

Άβαταρ μέλους
dglent
Δημοσιεύσεις: 1069
Εγγραφή: Τετ Ιουν 01, 2011 05:42 am
Τοποθεσία: Γαλλία
Has thanked: 6 φορές

Δημοσίευση από dglent » Δευ Νοέμ 03, 2014 07:39 am

Φτιάξε ένα πακέτο από εδώ:
http://pkgs.org/search/?keyword=QStarDi ... it&exact=0
από τα fedora, openmandriva, rosa ... ή alt

Άβαταρ μέλους
airmaik
Δημοσιεύσεις: 690
Εγγραφή: Τρί Ιουν 07, 2011 16:44 pm
Been thanked: 3 φορές

Re: qstardict - stardict

Δημοσίευση από airmaik » Δευ Νοέμ 03, 2014 23:32 pm

καλα τα λες εσυ αλλά δεν ξερω κατά πόσο μπορώ!!

αυτό είναι το qstardict.spec από το fedora

Κώδικας: Επιλογή όλων

Name:       qstardict
Version:    1.0.1
Release:    7%{?dist}
Summary:    StarDict clone written using Qt4
License:    GPLv2+
Group:      Applications/System
URL:        http://qstardict.ylsoftware.com/
Source0:    http://qstardict.ylsoftware.com/files/%{name}-%{version}.tar.bz2
# include a manpage from Debian
Source1:    qstardict.1
# Fix GLib 2.31 compatibility, sent upstream via email 20120106
Patch0:     qstardict-1.0.1-glib-2.31.patch

BuildRequires:  glib2-devel
BuildRequires:  desktop-file-utils
BuildRequires:  kdelibs4-devel

# exclude provate provides
%global __provides_exclude_from ^%{_kde4_libdir}/kde4/.*\.so$

%description
QStarDict is a StarDict clone written using Qt4. The user interface
is similar to StarDict.

Main features:
* Full support of StarDict dictionaries
* Working from the system tray
* Scanning mouse selection and showing pop-up windows with translation of
selected words
* Translations reformatting
* Pronouncing of the translated words
* Plugins support

%package -n kde-plasma-%{name}
Group:      Applications/System
Summary:    Plasma applet of qstardict
Requires:   %{name} = %{version}-%{release}
%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }

%description -n kde-plasma-%{name}
This package contains KDE plasma applet of qstardict.

%prep
%setup -q
%patch0 -p1

%build
%_qt4_qmake PLUGINS_DIR=%{_libdir}/%{name}/plugins
make %{?_smp_mflags}

# Build plasma applet
cd kdeplasma
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake_kde4 ..
popd
make %{?_smp_mflags} -C %{_target_platform}

%install
make install INSTALL_ROOT=%{buildroot}

pushd kdeplasma
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
popd

desktop-file-install --vendor="" \
    --dir=%{buildroot}%{_datadir}/applications              \
     %{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_datadir}/man/man1/
install -p -m 644 %SOURCE1 %{buildroot}%{_datadir}/man/man1/

rm -fr %{buildroot}%{_docdir}

%files
%doc AUTHORS COPYING ChangeLog README THANKS
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/man/man1/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/%{name}.png

%files -n kde-plasma-%{name}
%defattr(-,root,root)
%{_kde4_libdir}/kde4/*.so
%{_kde4_datadir}/kde4/services/*.desktop



%changelog
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jan  6 2012 Robin Lee <cheeselee@fedoraproject.org> - 1.0.1-2
- Rebuild against GCC 4.7
- Incorporate a patch to solve GLib 2.31 compatibility

* Mon Dec  5 2011 Robin Lee <cheeselee@fedoraproject.org> - 1.0.1-1
- Update to 1.0.1

* Sun Oct  9 2011 Robin Lee <cheeselee@fedoraproject.org> - 1.0-2
- Popup window saves settings (#743715)
- Filter the private so provides

* Sun Jul 31 2011 Robin Lee <cheeselee@fedoraproject.org> - 1.0-1
- Update to 1.0
- Other specfile cleanups

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Mar 12 2010 Cheese Lee <cheeselee@126.com> - 0.13.1-3
- Included a manpage from Debian
- Updated summary and description
- Initial import to Fedora repositories

* Mon Mar  1 2010 Cheese Lee <cheeselee@126.com> - 0.13.1-2
- License chagned to GPLv2+
- BR: qt-devel, cmake removed, kdelibs-devel changed to kdelibs4-devel
- Removed the explicit claim for certain plugins
- Explicitly link to libX11.so for the change of DSO linking of F13

* Sun Feb 14 2010 Cheese Lee <cheeselee@126.com> - 0.13.1-1
- Initial packaging for Fedora based on the spec file from Mandriva
και αυτο ξεκινησα να κανω εγω

Κώδικας: Επιλογή όλων

Name:       qstardict
Version:    1.0.1
Release:    %mkrel 1
Summary:    StarDict clone written using Qt4
License:    GPLv2+
Group:      Office/Dictionary
URL:        http://qstardict.ylsoftware.com/
Source0:    http://qstardict.ylsoftware.com/files/%{name}-%{version}.tar.bz2
# include a manpage from Debian
Source1:    qstardict.1
# Fix GLib 2.31 compatibility, sent upstream via email 20120106
Patch0:     qstardict-1.0.1-glib-2.31.patch

BuildRequires:  glib2-devel
BuildRequires:  desktop-file-utils
BuildRequires:  kdelibs4-devel

%description
QStarDict is a StarDict clone written using Qt4. The user interface
is similar to StarDict.

%prep
%setup -q
%patch0 -p1

%build
%_qt4_qmake PLUGINS_DIR=%{_libdir}/%{name}/plugins
make %{?_smp_mflags}

%install
make install INSTALL_ROOT=%{buildroot}

%files
%doc AUTHORS COPYING ChangeLog README THANKS
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/man/man1/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/%{name}.png

%files -n kde-plasma-%{name}
%defattr(-,root,root)
%{_kde4_libdir}/kde4/*.so
%{_kde4_datadir}/kde4/services/*.desktop
αλλα μου βγάζει αυτο

Κώδικας: Επιλογή όλων

creating package list
processing package qstardict-1.0.1-%mkrel 1
building source and binary packages
warning: Macro %enable_debug defined but not used within scope
error: line 66: Package does not exist: %files -n kde-plasma-qstardict

error: failed!
πρεπει σιγα σιγα να ξεκινησω να δοκιμαζω να φτιαξω κανενα πακετο διοτι θελω πολυ δουλεια!!!
Intel Core i5-6300U CPU @ 2.40GHz ‖ RAM 7860 MiB ‖ HP 8079 - HP HP EliteBook 840 G3
Intel Skylake GT2 [HD Graphics 520] [8086:1916] {i915}
wlp2s0: Intel Wireless 8260 [8086:24f3] (rev 3a) ⋮ enp0s31f6: Intel Ethernet Connection I219-LM [8086:156f] (rev 21)

Άβαταρ μέλους
dglent
Δημοσιεύσεις: 1069
Εγγραφή: Τετ Ιουν 01, 2011 05:42 am
Τοποθεσία: Γαλλία
Has thanked: 6 φορές

Δημοσίευση από dglent » Τρί Νοέμ 04, 2014 07:42 am

Μια χαρά τα πας , έχουμε και μερικές ασυμβατότητες με τη fedora
Δεν είχα χρόνο να κοιτάξω και για τα plasmoids γιατι μου έβγαζε σφάλματα αλλά το παρακάτω το χτίζει κανονικά

Κώδικας: Επιλογή όλων

Name:       qstardict
Version:    1.0.1
Release:    %mkrel 1
Summary:    StarDict clone written using Qt4
License:    GPLv2+
Group:      Applications/System
URL:        http://qstardict.ylsoftware.com/
Source0:    http://qstardict.ylsoftware.com/files/%{name}-%{version}.tar.bz2
# include a manpage from Debian
Source1:    qstardict.1
# Fix GLib 2.31 compatibility, sent upstream via email 20120106
Patch0:     qstardict-1.0.1-glib-2.31.patch

BuildRequires:  glib2-devel
BuildRequires:  desktop-file-utils

%description
QStarDict is a StarDict clone written using Qt4. The user interface
is similar to StarDict.

Main features:
* Full support of StarDict dictionaries
* Working from the system tray
* Scanning mouse selection and showing pop-up windows with translation of
selected words
* Translations reformatting
* Pronouncing of the translated words
* Plugins support

%prep
%setup -q
%patch0 -p1

%build
%qmake_qt4 PLUGINS_DIR=%{_libdir}/%{name}/plugins
%make

%install
make install INSTALL_ROOT=%{buildroot}
desktop-file-install --vendor="" \
    --dir=%{buildroot}%{_datadir}/applications              \
     %{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_datadir}/man/man1/
install -p -m 644 %SOURCE1 %{buildroot}%{_datadir}/man/man1/

rm -fr %{buildroot}%{_docdir}

%files
%doc AUTHORS COPYING ChangeLog README THANKS
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/man/man1/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/%{name}.png

Άβαταρ μέλους
airmaik
Δημοσιεύσεις: 690
Εγγραφή: Τρί Ιουν 07, 2011 16:44 pm
Been thanked: 3 φορές

Re: qstardict - stardict

Δημοσίευση από airmaik » Τρί Νοέμ 04, 2014 19:38 pm

μου βγάζει αυτο

Κώδικας: Επιλογή όλων

creating package list
processing package qstardict-1.0.1-%mkrel 1
building source and binary packages
Executing(%prep): /bin/sh -e /home/prodromos/rpmbuild/BUILDROOT/rpm-tmp.UP6A6t
+ umask 022
+ cd /home/prodromos/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/prodromos/rpmbuild/BUILD
+ rm -rf qstardict-1.0.1
+ /usr/bin/bzip2 -dc /home/prodromos/rpmbuild/SOURCES/qstardict-1.0.1.tar.bz2
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd qstardict-1.0.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (qstardict-1.0.1-glib-2.31.patch):'
Patch #0 (qstardict-1.0.1-glib-2.31.patch):
+ /usr/bin/cat /home/prodromos/rpmbuild/SOURCES/qstardict-1.0.1-glib-2.31.patch
+ /usr/bin/patch -p1 --fuzz=0
patching file plugins/stardict/stardict.cpp
+ exit 0
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/prodromos/rpmbuild/BUILDROOT/qstardict-1.0.1-1mgr5.x86_64
Wrote: /home/prodromos/rpmbuild/SRPMS/qstardict-1.0.1-1mgr5.src.rpm
Executing(%clean): /bin/sh -e /home/prodromos/rpmbuild/BUILDROOT/rpm-tmp.oNESIL
+ umask 022
+ cd /home/prodromos/rpmbuild/BUILD
+ cd qstardict-1.0.1
+ /usr/bin/rm -rf /home/prodromos/rpmbuild/BUILDROOT/qstardict-1.0.1-1mgr5.x86_64
+ exit 0
succeeded!

αλλα δεν μου δημιουργεί το πακετο
Intel Core i5-6300U CPU @ 2.40GHz ‖ RAM 7860 MiB ‖ HP 8079 - HP HP EliteBook 840 G3
Intel Skylake GT2 [HD Graphics 520] [8086:1916] {i915}
wlp2s0: Intel Wireless 8260 [8086:24f3] (rev 3a) ⋮ enp0s31f6: Intel Ethernet Connection I219-LM [8086:156f] (rev 21)

Άβαταρ μέλους
dglent
Δημοσιεύσεις: 1069
Εγγραφή: Τετ Ιουν 01, 2011 05:42 am
Τοποθεσία: Γαλλία
Has thanked: 6 φορές

Δημοσίευση από dglent » Τρί Νοέμ 04, 2014 20:20 pm

Για ανέβασε το spec σου
μάλλον δεν κάνεις καθόλου make, μήπως το διέγραψες;

Άβαταρ μέλους
airmaik
Δημοσιεύσεις: 690
Εγγραφή: Τρί Ιουν 07, 2011 16:44 pm
Been thanked: 3 φορές

Re: qstardict - stardict

Δημοσίευση από airmaik » Τρί Νοέμ 04, 2014 20:32 pm

δεν είχα αποθηκεύσει το σωστό spec

έτοιμο και δουλεύει μια χαρά!!

ευχαριστώ Δημήτρη

https://www.flickr.com/photos/99709873@ ... /lightbox/

στο έστειλα στο dropbox δες και ένα άλλο πακέτο που έκανα να μου πεις αν έχω κάποιο λάθος
Intel Core i5-6300U CPU @ 2.40GHz ‖ RAM 7860 MiB ‖ HP 8079 - HP HP EliteBook 840 G3
Intel Skylake GT2 [HD Graphics 520] [8086:1916] {i915}
wlp2s0: Intel Wireless 8260 [8086:24f3] (rev 3a) ⋮ enp0s31f6: Intel Ethernet Connection I219-LM [8086:156f] (rev 21)

Άβαταρ μέλους
dglent
Δημοσιεύσεις: 1069
Εγγραφή: Τετ Ιουν 01, 2011 05:42 am
Τοποθεσία: Γαλλία
Has thanked: 6 φορές

Δημοσίευση από dglent » Τρί Νοέμ 04, 2014 22:22 pm

Οκ! ανέβηκαν και τα πακέτα στο αποθετήριο

Απάντηση