[solved] πώς γίνεται αλλαγή η αλλαγή καθρεπτισμού?(μάλλον..)

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

Re: [solved] πώς γίνεται αλλαγή η αλλαγή καθρεπτισμού?(μάλλο

Δημοσίευση από airmaik » Τετ Σεπ 10, 2014 13:45 pm

μολις γυρισω το βραδυ απο την δουλεια θα το δω δημητρη
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)

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

Re: [solved] πώς γίνεται αλλαγή η αλλαγή καθρεπτισμού?(μάλλο

Δημοσίευση από airmaik » Τετ Σεπ 10, 2014 19:09 pm

εχω κάποιο λάθος?

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

%define libmsexport %mklibname msexport 1
%define libnamegrass %mklibname %{name}grass 0
%define libqgis %mklibname qgis 0
%define grass grass64
# Doesnt build with -j16, does with -j12 or lower, we choose -j8
%global make %(cpus=%_smp_mflags;if [ "${cpus##-j}" -gt 8 ];then echo make -j8;else echo make $cpus;fi)
	
%define _requires_exceptions .*libgrass_.*

Name: qgis
Version: 2.4.0
Release: %mkrel 4
Summary: Geographic Information System for Linux/Unix
License: GPLv2+
Group: Sciences/Geosciences
URL: http://www.qgis.org/
Source0: http://qgis.org/downloads/%{name}-%{version}.tar.bz2
Patch0: qgis-2.0.1-sip-4.14.7.patch
Obsoletes: %{libqgis}
Obsoletes: %{libmsexport}
Requires: python-biopython-sql
Requires: postgis

BuildRequires: cmake
BuildRequires: grass
BuildRequires: gdal-devel
BuildRequires: geos-devel
BuildRequires: proj-devel
BuildRequires: expat-devel
BuildRequires: gsl-devel
BuildRequires: cfitsio-devel
BuildRequires: imagemagick
BuildRequires: flex
BuildRequires: bison
BuildRequires: mlocate
BuildRequires: postgresql-devel
BuildRequires: postgis
BuildRequires: netcdf-devel
BuildRequires: qt4-devel
BuildRequires: qt4-linguist
BuildRequires: python-sip
BuildRequires: python-qt4-devel
BuildRequires: python-biopython-sql
BuildRequires: imagemagick
BuildRequires: dos2unix
BuildRequires: python-devel
BuildRequires: libqwt-devel
BuildRequires: libfcgi-devel
BuildRequires: pkgconfig(QtWebKit)
BuildRequires: pkgconfig(spatialite)
BuildRequires: spatialindex-devel
BuildRequires: qscintilla-qt4-devel

%description
Geographic Information System (GIS) manages, analyzes, and displays
databases of geographic information. Quantum GIS (QGIS) supports shape file
viewing and editing, spatial data storage with PostgreSQL/PostGIS, projection
on-the-fly, map composition, and a number of other features via a plugin
interface. QGIS also supports display of various geo-referenced raster and
Digital Elevation Model (DEM) formats including GeoTIFF, Arc/Info ASCII Grid,
and USGS ASCII DEM.
	
%files
%{_bindir}/%{name}
%{_bindir}/qbrowser
%{_bindir}/qgis_bench
%{_libdir}/lib%{name}_*.so.*
%{_libdir}/libqgissqlanyconnection.so.*
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{_real_vendor}-%{name}.desktop
%{_mandir}/man1/*
%exclude %{_libdir}/%{name}/libgrass*.so
%exclude %{_libdir}/%{name}/grass
%exclude %{_datadir}/%{name}/python
%exclude %{_datadir}/%{name}/grass
%{_iconsdir}/hicolor/*/apps/*
%doc BUGS ChangeLog README TODO NEWS

#---------------------------------------------------------
	
%package devel
Summary: Development libraries and headers for QGIS
Group: Sciences/Geosciences
Requires: qgis = %version
Requires: %{name}-grass = %version
Requires: %{name}-python = %version
Obsoletes: %{_lib}qgis-devel
Conflicts: qgis < 0.11.0
Conflicts: qgiss-grass < 0.11.0
	
%description devel
Development headers for QGIS
	
%files devel
%{_includedir}/*
%{_libdir}/lib%{name}_*.so
%{_libdir}/libqgisgrass.so
#%{_libdir}/libqgispython.so
%{_libdir}/libqgissqlanyconnection.so
 	
#---------------------------------------------------------
 	
%package grass
Summary: QGIS plugins for accessing GRASS data
Group: Sciences/Geosciences
Obsoletes: %{libnamegrass}
Requires: grass
Conflicts: qgis < 0.11.0

%description grass
This package provides plugins for QGIS that provide access to GRASS data from
within QGIS.
	
%files grass
%{_libdir}/libqgisgrass.so.*
%{_libdir}/%{name}/libgrass*.so
%{_libdir}/%{name}/grass
%{_datadir}/%{name}/grass
	
#---------------------------------------------------------
 	
%package python
Summary: Python integration and plugins for qgis
Group: Sciences/Geosciences
#Requires: %{name} = %{version}-%{release}
Requires: python-sip
Requires: python-qt4
Requires: python-httplib2
Requires: python-qt4-qscintilla
#Conflicts: qgis < 0.11.0
	
%description python
Python integration and plugins for qgis
	
%files python
%{_libdir}/libqgispython.so.*
%{_datadir}/%{name}/python
 	
#---------------------------------------------------------
 	
%prep
%setup -q -n %{name}-%{version}
%apply_patches
 	
%build
%cmake_qt4 \
        -DQGIS_LIB_SUBDIR=%{_lib} \
        -DQGIS_PLUGIN_SUBDIR=%{_lib}/qgis \
        -DQGIS_CGIBIN_SUBDIR=%{_lib}/qgis \
        -DQWT_INCLUDE_DIR=%{_includedir}/qwt \
        -DGRASS_PREFIX=%{_libdir}/%{grass} \
        -DCMAKE_SKIP_RPATH=OFF \
        -DWITH_BINDINGS:BOOL=FALSE
 	
# unused changes for now, have to investigate further
#       -DQGIS_LIB_SUBDIR=%{_lib} \
        #-DQGIS_PLUGIN_SUBDIR=%{_lib}/qgis \
        #-DQGIS_CGIBIN_SUBDIR=%{_lib}/qgis \
        #-DQGIS_MANUAL_SUBDIR=/share/man \
        #-DWITH_MAPSERVER:BOOL=TRUE \
        #-DBINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
        #-DQWT_INCLUDE_DIR=%{_includedir}/qwt \
        #-DGDAL_INCLUDE_DIR=%{_includedir}/gdal \
        #-DGDAL_LIBRARY=%{_libdir}/libgdal.so \
        #-DGRASS_PREFIX=%{_libdir}/%{grass} \
        #-DENABLE_TESTS:BOOL=FALSE
        #-DWITH_BINDINGS:BOOL=TRUE \
        #-DWITH_INTERNAL_QWTPOLAR:BOOL=FALSE \
        #-DWITH_INTERNAL_SPATIALINDEX:BOOL=FALSE
 	
make
 	
%install
%makeinstall_std -C build
	
mv %{buildroot}/%{_prefix}/man %{buildroot}/%{_datadir}
	
mkdir -p %{buildroot}/%{_datadir}/applications
cat > %{buildroot}/%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
[Desktop Entry]
Name=Quantum GIS
Comment=Quantum Geographic Information System
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Science;Geoscience;Qt;
EOF
 	
# icon
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{48x48,32x32,16x16}/apps
for i in 16 32 48; do
    convert -scale $i %{buildroot}%{_datadir}/%{name}/doc/images/qgis_new_80pct.png \
    %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png
done
μου βγάζει αυτο

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

creating package list
processing package qgis-2.4.0-%mkrel 4
building source and binary packages
Executing(%prep): /bin/sh -e /home/prodromos/rpmbuild/BUILDROOT/rpm-tmp.yBwYaJ
+ umask 022
+ cd /home/prodromos/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/prodromos/rpmbuild/BUILD
+ rm -rf qgis-2.4.0
+ /usr/bin/bzip2 -dc /home/prodromos/rpmbuild/SOURCES/qgis-2.4.0.tar.bz2
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd qgis-2.4.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/patch -U -s -p1 -b --suffix .0000 --fuzz=0 -i /home/prodromos/rpmbuild/SOURCES/qgis-2.0.1-sip-4.14.7.patch
/usr/bin/patch: **** Can't open patch file /home/prodromos/rpmbuild/SOURCES/qgis-2.0.1-sip-4.14.7.patch : No such file or directory
error: Bad exit status from /home/prodromos/rpmbuild/BUILDROOT/rpm-tmp.yBwYaJ (%prep)


RPM build errors:
    Bad exit status from /home/prodromos/rpmbuild/BUILDROOT/rpm-tmp.yBwYaJ (%prep)
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 » Πέμ Σεπ 11, 2014 06:34 am

Παραπάνω φταίει αυτό:
/usr/bin/patch: **** Can't open patch file /home/prodromos/rpmbuild/SOURCES/qgis-2.0.1-sip-4.14.7.patch : No such file or directory
Το patch είναι για την έκδοση 2,0,1 εν τω μεταξύ οπότε θα πρέπει να πάρουμε αυτά από την fedora για την έκδοση 2,4,0
---
Πάρε τα 2 patch από εδώ :
http://glenbox.free.fr/files/qgis/SOURCES/
και τοποθέτησέ τα στον αντίστοιχο φάκελο SOURCES

Το ίδιο με το spec:
http://glenbox.free.fr/files/qgis/SPECS/

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

Re: [solved] πώς γίνεται αλλαγή η αλλαγή καθρεπτισμού?(μάλλο

Δημοσίευση από airmaik » Πέμ Σεπ 11, 2014 18:40 pm

τα patch αυτά τα βάζω στο φακελο SOURCES και τα αποθηκεψω σαν εγραφα?

και αν ναι με τη ονομασια?
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 » Παρ Σεπ 12, 2014 06:18 am

Τα βάζεις αυτούσια στον φάκελο SOURCES που έχεις το tarball qgis-2.4.0.tar.bz2
Το ίδιο με το αρχείο spec, στον φάκελο SPECS που έχεις το qgis.spec και αντικαθιστάς έτσι το υπάρχον qgis.spec

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

Re: [solved] πώς γίνεται αλλαγή η αλλαγή καθρεπτισμού?(μάλλο

Δημοσίευση από airmaik » Παρ Σεπ 12, 2014 23:13 pm

με το που τελειωσε και πηγε 100% μου εβγαλε αυτο το σφαλμα

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

-- Removed runtime path from "/home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/bin/qgis_bench"
make: Leaving directory '/home/prodromos/rpmbuild/BUILD/qgis-2.4.0/build'
+ mv /home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64//usr/man /home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64//usr/share
+ mkdir -p /home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64//usr/share/applications
+ cat
+ mkdir -p /home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/share/icons/hicolor/48x48/apps /home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/share/icons/hicolor/32x32/apps /home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/share/icons/hicolor/16x16/apps
+ for i in 16 32 48
+ convert -scale 16 /home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/share/qgis/doc/images/qgis_new_80pct.png /home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/share/icons/hicolor/16x16/apps/qgis.png
convert: unable to open image `/home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/share/qgis/doc/images/qgis_new_80pct.png': Δεν υπάρχει τέτοιο αρχείο ή κατάλογος @ error/blob.c/OpenBlob/2643.
convert: unable to open file `/home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/share/qgis/doc/images/qgis_new_80pct.png' @ error/png.c/ReadPNGImage/3994.
convert: no images defined `/home/prodromos/rpmbuild/BUILDROOT/qgis-2.4.0-1mgr4.x86_64/usr/share/icons/hicolor/16x16/apps/qgis.png' @ error/convert.c/ConvertImageCommand/3127.
error: Bad exit status from /home/prodromos/rpmbuild/BUILDROOT/rpm-tmp.KCmpnq (%install)


RPM build errors:
    Bad exit status from /home/prodromos/rpmbuild/BUILDROOT/rpm-tmp.KCmpnq (%install)
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 » Σάβ Σεπ 13, 2014 08:23 am

Αντέγραψε πάλι το spec αρχείο
http://glenbox.free.fr/files/qgis/SPECS/qgis.spec
στον φάκελο SPECS και αντικατέστησε το υπάρχον,

και πρόσθεσα και το τύποι mime από το fedora:
http://glenbox.free.fr/files/qgis/SOURCES/qgis-mime.xml
το οποίο πρέπει να αντιγράψεις στον φάκελο SOURCES

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

Re: [solved] πώς γίνεται αλλαγή η αλλαγή καθρεπτισμού?(μάλλο

Δημοσίευση από airmaik » Σάβ Σεπ 13, 2014 13:59 pm

στα περνάω στο 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 » Σάβ Σεπ 13, 2014 14:02 pm

Πρόδρομε δες αν έχεις το τελευταίο spec:
http://glenbox.free.fr/files/qgis/SPECS/qgis.spec

Είναι οκ για mageia 5, μένει να γίνουν δοκιμές, δεν το γνωρίζω το πρόγραμμα και δεν ξέρω τι να ελέγξω...


Εικόνα

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

Δημοσίευση από dglent » Σάβ Σεπ 13, 2014 14:06 pm

airmaik έγραψε:στα περνάω στο dropbox δημήτρη
Μόνο ένα πακέτο βρήκα στο dropbox για mageia 4:
qgis-2.4.0-1mgr4.x86_64.rpm

ενώ θα έπρεπε να έχεις 4:
qgis-devel-2.4.0-1mgr5.x86_64.rpm
qgis-grass-2.4.0-1mgr5.x86_64.rpm
qgis-python-2.4.0-1mgr5.x86_64.rpm
qgis-2.4.0-1mgr5.x86_64.rpm

To debug-info μη μου το στείλεις, είναι 65mb !

Απάντηση