rpms/qtiplot/devel qtiplot.spec,1.28,1.29
supercyper
supercyper at fedoraproject.org
Wed Jun 30 12:54:14 UTC 2010
- Previous message: rpms/perl-Data-Section/devel .cvsignore, 1.4, 1.5 perl-Data-Section.spec, 1.8, 1.9 sources, 1.4, 1.5
- Next message: rpms/selinux-policy/F-13 policy-F13.patch, 1.133, 1.134 selinux-policy.spec, 1.1034, 1.1035
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: supercyper
Update of /cvs/pkgs/rpms/qtiplot/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv11618
Modified Files:
qtiplot.spec
Log Message:
Add translation files
Index: qtiplot.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qtiplot/devel/qtiplot.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -p -r1.28 -r1.29
--- qtiplot.spec 30 Jun 2010 10:21:46 -0000 1.28
+++ qtiplot.spec 30 Jun 2010 12:54:14 -0000 1.29
@@ -1,18 +1,18 @@
Name: qtiplot
Summary: Data Analysis and Scientific Plotting
Version: 0.9.8
-Release: 1%{?dist}
+Release: 2%{?dist}
URL: http://soft.proindependent.com/qtiplot.html
License: GPLv2+
Group: Applications/Engineering
-Source0: http://download.berlios.de/qtiplot/%{name}-%{version}.tar.bz2
+Source0: http://download.berlios.de/%{name}/%{name}-%{version}.tar.bz2
Source1: http://soft.proindependent.com/misc/colormaps.tgz
Source2: %{name}.desktop
Source3: %{name}.xml
#fix manual building
-Patch0: qtiplot-0.9.8-manual.patch
+Patch0: %{name}-0.9.8-manual.patch
#disable choosing of help folder at runtime
-Patch1: qtiplot-0.9.8-manualpath.patch
+Patch1: %{name}-0.9.8-manualpath.patch
BuildRequires: qt-assistant-adp-devel
BuildRequires: liborigin2-devel >= 06042009-4.20100629svn
BuildRequires: QTeXEngine-devel
@@ -59,12 +59,13 @@ The %{name}-doc package contains documen
#remove redundant variables
sed -i '/QTI_ROOT\/3rdparty/d' build.conf.example
-sed -i '/manual.path = /d' qtiplot/qtiplot.pro
-sed -i '/manual.path = /d' qtiplot/qtiplot.pro
-sed -i '/documentation.path = /d' qtiplot/qtiplot.pro
-sed -i '/pythonconfig.path = /d' qtiplot/qtiplot.pro
-sed -i '/3rdparty\/QTeXEngine/d' qtiplot/qtiplot.pro
-sed -i '/3rdparty\/liborigin/d' qtiplot/src/origin/origin.pri
+sed -i '/manual.path = /d' %{name}/%{name}.pro
+sed -i '/manual.path = /d' %{name}/%{name}.pro
+sed -i '/documentation.path = /d' %{name}/%{name}.pro
+sed -i '/pythonconfig.path = /d' %{name}/%{name}.pro
+sed -i '/3rdparty\/QTeXEngine/d' %{name}/%{name}.pro
+sed -i '/3rdparty\/liborigin/d' %{name}/%{name}.pro
+sed -i '/3rdparty\/liborigin/d' %{name}/src/origin/origin.pri
#remove bundled liborigin2 and QTeXEngine
rm -r 3rdparty/liborigin 3rdparty/QTeXEngine
@@ -77,8 +78,8 @@ s/\./\\\./g"`/" manual/docbook-en/index.
%endif
#fix default path for fitPlugins
-sed -i 's\/usr/lib/qtiplot/plugins\%{_libdir}/%{name}/plugins\g' \
- qtiplot/src/core/ApplicationWindow.cpp
+sed -i 's\/usr/lib/%{name}/plugins\%{_libdir}/%{name}/plugins\g' \
+ %{name}/src/core/ApplicationWindow.cpp
find -type d -exec chmod 0755 {} \;
find -type f -exec chmod 0644 {} \;
@@ -92,9 +93,9 @@ find -name '*.cc' -exec dos2unix -k {} \
find -name '*.cpp' -exec dos2unix -k {} \;
#dos2unix gpl_licence.txt
sed -i 's/\r//' gpl_licence.txt
-dos2unix -k qtiplot/*.txt
-dos2unix -k qtiplot/*.py
-dos2unix -k manual/html/qtiplot*
+dos2unix -k %{name}/*.txt
+dos2unix -k %{name}/*.py
+dos2unix -k manual/html/%{name}*
%build
cp -p build.conf.example build.conf
@@ -114,8 +115,10 @@ export PATH=%{_qt4_bindir}:$PATH
manual.path=%{_docdir}/%{name}-%{version}/manual documentation.path=%{_docdir}/%{name}-%{version} \
pythonconfig.path=%{_datadir}/%{name}
-lupdate-qt4 -verbose qtiplot.pro
-lrelease-qt4 -verbose qtiplot.pro
+pushd %{name}
+lupdate-qt4 -verbose %{name}.pro
+lrelease-qt4 -verbose %{name}.pro
+popd
make %{?_smp_mflags}
%install
@@ -137,13 +140,14 @@ find %{buildroot}%{_libdir}/%{name} -typ
#add icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes
-install -cpm 0644 qtiplot_logo.png \
+install -cpm 0644 %{name}_logo.png \
%{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
-install -cpm 0644 qtiplot_logo.png \
- %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes/application-x-qtiplot-project.png
+install -cpm 0644 %{name}_logo.png \
+ %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes/application-x-%{name}-project.png
#add mimeinfo
mkdir -p %{buildroot}%{_datadir}/mime/packages
install -cpm 0644 %{SOURCE3} %{buildroot}%{_datadir}/mime/packages/%{name}.xml
+%find_lang %{name} --with-qt --without-mo
%post
update-mime-database %{_datadir}/mime &> /dev/null || :
@@ -164,11 +168,14 @@ gtk-update-icon-cache %{_datadir}/icons/
%clean
rm -rf %{buildroot}
-%files
+%files -f %{name}.lang
%defattr(-,root,root,-)
%dir %{_docdir}/%{name}-%{version}
%{_libdir}/%{name}
-%{_datadir}/%{name}
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/translations
+%{_datadir}/%{name}/colormaps
+%{_datadir}/%{name}/qti*
%{_docdir}/%{name}-%{version}/README.html
%{_docdir}/%{name}-%{version}/gpl_licence.txt
%{_bindir}/%{name}
@@ -183,6 +190,9 @@ rm -rf %{buildroot}
%{_docdir}/%{name}-%{version}/manual
%changelog
+* Wed Jun 30 2010 Chen Lei <supercyper at 163.com> - 0.9.8-2
+- add missing translation files
+
* Wed Jun 30 2010 Chen Lei <supercyper at 163.com> - 0.9.8-1
- upstream to 0.9.8
- remove some patches
- Previous message: rpms/perl-Data-Section/devel .cvsignore, 1.4, 1.5 perl-Data-Section.spec, 1.8, 1.9 sources, 1.4, 1.5
- Next message: rpms/selinux-policy/F-13 policy-F13.patch, 1.133, 1.134 selinux-policy.spec, 1.1034, 1.1035
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list