RPM Packaging: add kcmautostart

pull/3/head
François Andriot 12 years ago
parent b679e37189
commit 36430028f5

@ -0,0 +1,69 @@
--- kcmautostart/src/autostart.desktop.ORI 2012-05-10 11:47:47.743164035 +0200
+++ kcmautostart/src/autostart.desktop 2012-05-10 11:49:15.127289325 +0200
@@ -14,8 +14,10 @@
Comment=A KControl tool for managing what programs start up with TDE.
Comment[ca]=Panell de control per a gestionar els programes que s'inicien amb la sessió de TDE.
Comment[es]=Panel de control para gestionar los programas que se inician con la sesión de TDE.
+Comment[fr]=Paneau de contrôle pour gérer le démarrage des programmes à l'ouverture de session TDE.
Keywords=autostart manager
Name=Autostart Manager
Name[ca]=Autoengega
Name[es]=Arranque automático
+Name[fr]=Démarrage automatique
Categories=Qt;KDE;X-KDE-settings-components;
diff -Nuar kcmautostart/po.ori//fr.po kcmautostart/po/fr.po
--- kcmautostart/po.ori//fr.po 1970-01-01 01:00:00.000000000 +0100
+++ kcmautostart/po/fr.po 2012-05-10 19:27:38.107215981 +0200
@@ -0,0 +1,52 @@
+msgid ""
+msgstr ""
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"PO-Revision-Date: 2012-05-10 12:01+0100\n"
+"Project-Id-Version: autostart_ca\n"
+"Language-Team: <ca@li.org>\n"
+"X-Generator: KBabel 1.11.4\n"
+"MIME-Version: 1.0\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"Last-Translator: Josep Febrer <josep@extens.info>\n"
+
+#: ../src/autostart.cpp:61
+msgid "Startup"
+msgstr "Démarrage"
+
+#: ../src/autostart.cpp:62
+msgid "Shutdown"
+msgstr "Arrêt"
+
+#: ../src/autostart.cpp:63
+msgid "ENV"
+msgstr "ENV"
+
+#: ../src/autostart.cpp:102
+msgid "Name"
+msgstr "Nom"
+
+#: ../src/autostart.cpp:103
+msgid "Command"
+msgstr "Commande"
+
+#: ../src/autostart.cpp:104
+msgid "Run on"
+msgstr "Executer"
+
+#: ../src/autostart.cpp:129
+msgid "&Add"
+msgstr "&Ajouter"
+
+#: ../src/autostart.cpp:131
+msgid "&Remove"
+msgstr "&Supprimer"
+
+#: ../src/autostart.cpp:133
+msgid "&Properties"
+msgstr "&Propiétés"
+
+#: ../src/autostart.cpp:317
+msgid "This module helps you configure which applications KDE runs When starting up and shutting down."
+msgstr "Ce module vous aide à configurer quelles applications sont exécutées à l'ouverture et à la fermeture de session de TDE."
+

@ -0,0 +1,14 @@
--- kcmautostart/src/autostart.cpp.crash_on_exit 2013-05-10 23:35:31.443410887 +0200
+++ kcmautostart/src/autostart.cpp 2013-05-10 23:46:31.852926622 +0200
@@ -102,7 +102,10 @@
if (bisDesktop) service = new KService( fileName.path() );
}
~desktop() {
- delete service;
+ if(service) {
+ service = NULL;
+ delete service;
+ }
}
};

@ -0,0 +1,11 @@
--- kcmautostart/po/fr.po.ORI 2013-05-10 23:28:02.181493730 +0200
+++ kcmautostart/po/fr.po 2013-05-10 23:28:09.944336813 +0200
@@ -44,7 +44,7 @@
#: ../src/autostart.cpp:133
msgid "&Properties"
-msgstr "&Propiétés"
+msgstr "&Propriétés"
#: ../src/autostart.cpp:317
msgid "This module helps you configure which applications KDE runs When starting up and shutting down."

@ -0,0 +1,67 @@
--- kcmautostart.ORI/src/autostart.cpp 2012-05-10 11:36:44.887288951 +0200
+++ kcmautostart.P/src/autostart.cpp 2012-05-10 11:37:16.701639283 +0200
@@ -88,10 +88,10 @@
path = kgs->autostartPath()+"/";
break;
case Shutdown:
- path = ksd->localtdedir()+"shutdown/";
+ path = ksd->localkdedir()+"shutdown/";
break;
case ENV:
- path = ksd->localtdedir()+"env/";
+ path = ksd->localkdedir()+"env/";
break;
}
KIO::file_move(fileName, KURL( path + fileName.fileName() ));
@@ -190,9 +190,9 @@
if (x==0)
path = kgs->autostartPath();
else if (x==1)
- path = ksd->localtdedir() + "/shutdown";
+ path = ksd->localkdedir() + "/shutdown";
else if (x==2)
- path = ksd->localtdedir() + "/env";
+ path = ksd->localkdedir() + "/env";
if (! KStandardDirs::exists(path))
KStandardDirs::makeDir(path);
--- kcmautostart/admin/cvs.sh.ftbfs 2012-05-10 11:30:01.000000000 +0200
+++ kcmautostart/admin/cvs.sh 2013-06-04 21:27:13.097359615 +0200
@@ -68,7 +68,7 @@
echo "*** KDE requires automake $required_automake_version"
exit 1
;;
- automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10* | automake*1.11* | automake*1.12*)
+ automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10* | automake*1.11* | automake*1.12* | automake*1.13*)
echo "*** $AUTOMAKE_STRING found."
UNSERMAKE=no
;;
@@ -128,7 +128,7 @@
echo "*** Creating configure"
call_and_fix_autoconf
-if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
+if egrep "^A[CM]_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
echo "*** Creating config.h template"
$AUTOHEADER || exit 1
touch config.h.in
@@ -184,7 +184,7 @@
fi
fi
$ACLOCAL $ACLOCALFLAGS
-if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
+if egrep "^A[CM]_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
echo "*** Creating config.h template"
$AUTOHEADER || exit 1
touch config.h.in
--- kcmautostart/admin/configure.in.min.ORI 2013-06-04 21:28:06.399273569 +0200
+++ kcmautostart/admin/configure.in.min 2013-06-04 21:28:12.584147551 +0200
@@ -41,7 +41,7 @@
KDE_SET_PREFIX
dnl generate the config header
-AM_CONFIG_HEADER(config.h) dnl at the distribution this done
+AC_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_PROG_CC

@ -0,0 +1,125 @@
# Default version for this component
%define kdecomp kchmviewer
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?tde_prefix}" != "/usr"
%define _variant .opt
%endif
# TDE 3.5.13 specific building variables
%define tde_bindir %{tde_prefix}/bin
%define tde_datadir %{tde_prefix}/share
%define tde_docdir %{tde_datadir}/doc
%define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib}
%define tde_mandir %{tde_datadir}/man
%define tde_appdir %{tde_datadir}/applications
%define tde_tdeappdir %{tde_appdir}/kde
%define tde_tdedocdir %{tde_docdir}/tde
%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity
%define _docdir %{tde_docdir}
Name: trinity-kcmautostart
Summary: Manage applications automatic startup.
Version: 1.0
Release: 2%{?dist}%{?_variant}
License: GPLv2+
Group: Applications/Utilities
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
URL: http://www.trinitydesktop.org/
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: kcmautostart-3.5.13.tar.gz
# [kcmautostart] Fix FTBFS with TDE 3.5.13
Patch1: kcmautostart-3.5.13-ftbfs.patch
# [kcmautostart] Add French support
Patch2: kcmautostart-3.5.13-add_french.patch
BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
BuildRequires: trinity-arts-devel >= 3.5.13.1
BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
BuildRequires: trinity-tdebase-devel >= 3.5.13.1
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
Requires: trinity-kdebase
%description
%{summary}
%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
%prep
%setup -q -a 0 -n applications/kcmautostart
%patch1 -p1
%patch2 -p1
# Ugly hack to modify TQT include directory inside autoconf files.
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
%__sed -i admin/acinclude.m4.in \
-e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
-e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"
%build
unset QTDIR || : ; . /etc/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
%configure \
--prefix=%{tde_prefix} \
--exec-prefix=%{tde_prefix} \
--bindir=%{tde_bindir} \
--libdir=%{tde_libdir} \
--datadir=%{tde_datadir} \
--includedir=%{tde_tdeincludedir} \
--disable-rpath \
--with-extra-includes=%{tde_includedir}/tqt \
--disable-static
%__make %{?_smp_mflags}
%install
export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot}
%find_lang autostart
%clean
%__rm -rf %{buildroot}
%files -f autostart.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
%{tde_tdelibdir}/kcm_autostart.la
%{tde_tdelibdir}/kcm_autostart.so
%{tde_tdeappdir}/autostart.desktop
%{tde_tdedocdir}/HTML/en/autostart/
%changelog
* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-2
- Initial build for TDE 3.5.13.1
* Thu May 10 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-1
- Initial build for TDE 3.5.13

@ -0,0 +1,134 @@
# Default version for this component
%define kdecomp kchmviewer
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?tde_prefix}" != "/usr"
%define _variant .opt
%endif
# TDE 3.5.13 specific building variables
%define tde_bindir %{tde_prefix}/bin
%define tde_datadir %{tde_prefix}/share
%define tde_docdir %{tde_datadir}/doc
%define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib}
%define tde_mandir %{tde_datadir}/man
%define tde_appdir %{tde_datadir}/applications
%define tde_tdeappdir %{tde_appdir}/kde
%define tde_tdedocdir %{tde_docdir}/tde
%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity
%define _docdir %{tde_docdir}
Name: trinity-kcmautostart
Summary: Manage applications automatic startup.
Version: 1.0
Release: 3%{?dist}%{?_variant}
License: GPLv2+
Group: Applications/Utilities
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
URL: http://www.trinitydesktop.org/
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: kcmautostart-3.5.13.tar.gz
# [kcmautostart] Fix FTBFS with TDE 3.5.13
Patch1: kcmautostart-3.5.13-ftbfs.patch
# [kcmautostart] Add French support
Patch2: kcmautostart-3.5.13-add_french.patch
# [kcmautostart] kcmautostart crash on exit
Patch3: kcmautostart-3.5.13-fix_crash_on_exit.patch
# [kcmautostart] Fix french translation
Patch4: kcmautostart-3.5.13-fix_fr_translation.patch
BuildRequires: trinity-tqtinterface-devel >= 3.5.13.2
BuildRequires: trinity-arts-devel >= 3.5.13.2
BuildRequires: trinity-tdelibs-devel >= 3.5.13.2
BuildRequires: trinity-tdebase-devel >= 3.5.13.2
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
Requires: trinity-kdebase
%description
%{summary}
%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
%prep
%setup -q -n applications/kcmautostart
%patch1 -p1 -b .ftbfs
%patch2 -p1
%patch3 -p1 -b .crash_on_exit
%patch4 -p1 -b .fr_translation
# Ugly hack to modify TQT include directory inside autoconf files.
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
%__sed -i admin/acinclude.m4.in \
-e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
-e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"
%build
unset QTDIR || : ; . /etc/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
%configure \
--prefix=%{tde_prefix} \
--exec-prefix=%{tde_prefix} \
--bindir=%{tde_bindir} \
--libdir=%{tde_libdir} \
--datadir=%{tde_datadir} \
--includedir=%{tde_tdeincludedir} \
--disable-rpath \
--with-extra-includes=%{tde_includedir}/tqt \
--disable-static
%__make %{?_smp_mflags}
%install
export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot}
%find_lang autostart
%clean
%__rm -rf %{buildroot}
%files -f autostart.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
%{tde_tdelibdir}/kcm_autostart.la
%{tde_tdelibdir}/kcm_autostart.so
%{tde_tdeappdir}/autostart.desktop
%{tde_tdedocdir}/HTML/en/autostart/
%changelog
* Sat Jan 19 2013 Francois Andriot <francois.andriot@free.fr> - 1.0-3
- Initial release for TDE 3.5.13.2
* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-2
- Initial build for TDE 3.5.13.1
* Thu May 10 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-1
- Initial build for TDE 3.5.13

@ -0,0 +1,116 @@
# Default version for this component
%define kdecomp kchmviewer
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?tde_prefix}" != "/usr"
%define _variant .opt
%endif
# TDE 3.5.13 specific building variables
%define tde_bindir %{tde_prefix}/bin
%define tde_datadir %{tde_prefix}/share
%define tde_docdir %{tde_datadir}/doc
%define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib}
%define tde_mandir %{tde_datadir}/man
%define tde_appdir %{tde_datadir}/applications
%define tde_tdeappdir %{tde_appdir}/kde
%define tde_tdedocdir %{tde_docdir}/kde
%define tde_tdeincludedir %{tde_includedir}/kde
%define tde_tdelibdir %{tde_libdir}/trinity
%define _docdir %{tde_docdir}
Name: trinity-kcmautostart
Summary: Manage applications automatic startup.
Version: 1.0
Release: 1%{?dist}%{?_variant}
License: GPLv2+
Group: Applications/Utilities
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
URL: http://www.trinitydesktop.org/
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: kcmautostart-3.5.13.tar.gz
# [kcmautostart] Fix FTBFS with TDE 3.5.13
Patch1: kcmautostart-3.5.13-ftbfs.patch
# [kcmautostart] Add French support
Patch2: kcmautostart-3.5.13-add_french.patch
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
BuildRequires: trinity-kdelibs-devel
BuildRequires: trinity-kdebase-devel
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
Requires: trinity-kdebase
%description
%{summary}
%prep
%setup -q -a 0 -n applications/kcmautostart
%patch1 -p1
%patch2 -p1
# Ugly hack to modify TQT include directory inside autoconf files.
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
%__sed -i admin/acinclude.m4.in \
-e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
-e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
%configure \
--prefix=%{tde_prefix} \
--exec-prefix=%{tde_prefix} \
--bindir=%{tde_bindir} \
--libdir=%{tde_libdir} \
--datadir=%{tde_datadir} \
--disable-rpath \
--with-extra-includes=%{tde_includedir}/tqt \
--disable-static
%__make %{?_smp_mflags}
%install
export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot}
%find_lang autostart
%clean
%__rm -rf %{buildroot}
%files -f autostart.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
%{tde_tdelibdir}/kcm_autostart.la
%{tde_tdelibdir}/kcm_autostart.so
%{tde_tdeappdir}/autostart.desktop
%{tde_tdedocdir}/HTML/en/autostart/
%Changelog
* Thu May 10 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-1
- Initial build for TDE 3.5.13

@ -0,0 +1,52 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2012-05-10 12:01+0100\n"
"Project-Id-Version: autostart_ca\n"
"Language-Team: <ca@li.org>\n"
"X-Generator: KBabel 1.11.4\n"
"MIME-Version: 1.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Last-Translator: Josep Febrer <josep@extens.info>\n"
#: ../src/autostart.cpp:61
msgid "Startup"
msgstr "Démarrage"
#: ../src/autostart.cpp:62
msgid "Shutdown"
msgstr "Arrêt"
#: ../src/autostart.cpp:63
msgid "ENV"
msgstr "ENV"
#: ../src/autostart.cpp:102
msgid "Name"
msgstr "Nom"
#: ../src/autostart.cpp:103
msgid "Command"
msgstr "Comande"
#: ../src/autostart.cpp:104
msgid "Run on"
msgstr "Executer"
#: ../src/autostart.cpp:129
msgid "&Add"
msgstr "&Ajouter"
#: ../src/autostart.cpp:131
msgid "&Remove"
msgstr "&Supprimer"
#: ../src/autostart.cpp:133
msgid "&Properties"
msgstr "&Propiétés"
#: ../src/autostart.cpp:317
msgid "This module helps you configure which applications KDE runs When starting up and shutting down."
msgstr "Ce module vous aide à configurer quelles applications sont exécutées à l'ouverture et à la fermeture de session de TDE."

@ -44,6 +44,7 @@ Source0: %{name}-3.5.13.2.tar.gz
Patch1: tdmtheme-3.5.13.2-fix_segv.patch Patch1: tdmtheme-3.5.13.2-fix_segv.patch
BuildRequires: trinity-tqtinterface-devel >= 3.5.13.2 BuildRequires: trinity-tqtinterface-devel >= 3.5.13.2
BuildRequires: trinity-arts-devel >= 3.5.13.2
BuildRequires: trinity-tdelibs-devel >= 3.5.13.2 BuildRequires: trinity-tdelibs-devel >= 3.5.13.2
BuildRequires: trinity-tdebase-devel >= 3.5.13.2 BuildRequires: trinity-tdebase-devel >= 3.5.13.2
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils

Loading…
Cancel
Save