diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-07-25 14:00:02 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-07-25 14:00:02 +0200 |
commit | a39456d7ca821b26b564c357de656097653f8352 (patch) | |
tree | 60d69aa7080fdb23e8b5b8a9971c77543ce85a66 /redhat | |
parent | 7a1e65b00db8fb8f317020bc86856de8a4044a26 (diff) | |
download | tde-packaging-a39456d7ca821b26b564c357de656097653f8352.tar.gz tde-packaging-a39456d7ca821b26b564c357de656097653f8352.zip |
RPM Packaging: add kasablanca
Diffstat (limited to 'redhat')
-rw-r--r-- | redhat/applications/kasablanca/kasablanca-0.4.0.2-dt.patch | 30 | ||||
-rw-r--r-- | redhat/applications/kasablanca/kasablanca-0.4.0.2-fix_autotools_detection.patch | 140 | ||||
-rw-r--r-- | redhat/applications/kasablanca/kasablanca-0.4.0.2-missing_ldflags.patch | 11 | ||||
-rw-r--r-- | redhat/applications/kasablanca/kasablanca-0.4.0.2.tar.gz | bin | 699799 -> 0 bytes | |||
-rw-r--r-- | redhat/applications/kasablanca/kasablanca-14.0.0.spec (renamed from redhat/applications/kasablanca/kasablanca-3.5.13.2.spec) | 97 | ||||
-rw-r--r-- | redhat/applications/kasablanca/kasablanca-3.5.13.1.spec | 182 | ||||
-rw-r--r-- | redhat/applications/kasablanca/kasablanca-3.5.13.spec | 169 |
7 files changed, 33 insertions, 596 deletions
diff --git a/redhat/applications/kasablanca/kasablanca-0.4.0.2-dt.patch b/redhat/applications/kasablanca/kasablanca-0.4.0.2-dt.patch deleted file mode 100644 index 3a7ccd17f..000000000 --- a/redhat/applications/kasablanca/kasablanca-0.4.0.2-dt.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- kasablanca-0.4.0.2/src/kasablanca.desktop.dt 2004-03-22 12:58:39.000000000 -0600 -+++ kasablanca-0.4.0.2/src/kasablanca.desktop 2006-01-19 09:48:07.000000000 -0600 -@@ -1,26 +1,7 @@ - [Desktop Entry] - Encoding=UTF-8 - Name=kasablanca --Name[xx]=xxkasablancaxx -+GenericName=FTP Client - Exec=kasablanca - Icon=kasablanca - Type=Application --Comment=A simple KDE Application --Comment[ca]=Una simple aplicació KDE --Comment[da]=Et simpelt KDE program --Comment[de]=Eine einfache KDE-Anwendung --Comment[el]=Μια απλή εφαρμογή του KDE --Comment[es]=Una aplicación de KDE sencilla --Comment[et]=Lihtne KDE rakendus --Comment[fr]=Une application simple pour KDE. --Comment[hu]=Egyszerű KDE-alkalmazás --Comment[it]=Una semplice applicazione KDE --Comment[nl]=Een eenvoudige KDE-toepassing --Comment[pt]=Uma aplicação KDE simples --Comment[pt_BR]=Um simples Aplicativo do KDE --Comment[ru]=Простое приложение KDE --Comment[sl]=Preprost program za KDE --Comment[sr]=Једноставан KDE програм --Comment[sv]=Ett enkelt KDE-program --Comment[xx]=xxA simple KDE Applicationxx --Comment[zh_CN]=一个简单的KDE应用程序 diff --git a/redhat/applications/kasablanca/kasablanca-0.4.0.2-fix_autotools_detection.patch b/redhat/applications/kasablanca/kasablanca-0.4.0.2-fix_autotools_detection.patch deleted file mode 100644 index 034caa068..000000000 --- a/redhat/applications/kasablanca/kasablanca-0.4.0.2-fix_autotools_detection.patch +++ /dev/null @@ -1,140 +0,0 @@ ---- kasablanca-0.4.0.2/admin/cvs.sh.autotools 2004-06-11 14:04:39.000000000 +0200 -+++ kasablanca-0.4.0.2/admin/cvs.sh 2013-06-04 21:13:20.169314990 +0200 -@@ -30,7 +30,7 @@ - required_autoconf_version="2.53 or newer" - AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1` - case $AUTOCONF_VERSION in -- Autoconf*2.5* | autoconf*2.5* ) : ;; -+ Autoconf*2.5* | autoconf*2.5* | [Aa]utoconf*2.6* ) : ;; - "" ) - echo "*** AUTOCONF NOT FOUND!." - echo "*** KDE requires autoconf $required_autoconf_version" -@@ -45,7 +45,7 @@ - - AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1` - case $AUTOHEADER_VERSION in -- Autoconf*2.5* | autoheader*2.5* ) : ;; -+ Autoconf*2.5* | autoheader*2.5* | *Autoconf*2.6* ) : ;; - "" ) - echo "*** AUTOHEADER NOT FOUND!." - echo "*** KDE requires autoheader $required_autoconf_version" -@@ -66,7 +66,7 @@ - echo "*** KDE requires automake $required_automake_version" - exit 1 - ;; -- automake*1.6.* | automake*1.7* | automake*1.8* ) : ;; -+ automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10* | automake*1.1[0-9]* ) : ;; - "" ) - echo "*** AUTOMAKE NOT FOUND!." - echo "*** KDE requires automake $required_automake_version" -@@ -122,7 +122,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 - fi -@@ -176,7 +176,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 - fi ---- kasablanca-0.4.0.2/admin/configure.in.min.ORI 2013-06-04 21:14:53.495416780 +0200 -+++ kasablanca-0.4.0.2/admin/configure.in.min 2013-06-04 21:15:00.293278499 +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_CHECK_COMPILERS ---- kasablanca-0.4.0.2/admin/acinclude.m4.in.ORI 2011-12-04 15:37:05.013464315 +0100 -+++ kasablanca-0.4.0.2/admin/acinclude.m4.in 2011-12-04 15:40:40.722904947 +0100 -@@ -468,14 +468,14 @@ - if test "$kde_qtver" = "2"; then - kde_moduledir='\${libdir}/kde2' - else -- kde_moduledir='\${libdir}/kde3' -+ kde_moduledir='\${libdir}/trinity' - fi - fi - if test -z "$kde_styledir"; then -- kde_styledir='\${libdir}/kde3/plugins/styles' -+ kde_styledir='\${libdir}/trinity/plugins/styles' - fi - if test -z "$kde_widgetdir"; then -- kde_widgetdir='\${libdir}/kde3/plugins/designer' -+ kde_widgetdir='\${libdir}/trinity/plugins/designer' - fi - if test -z "$xdg_appsdir"; then - xdg_appsdir='\${datadir}/applications/kde' -@@ -542,7 +542,7 @@ - ) - AM_CONDITIONAL(include_ARTS, test "$build_arts" != "no") - -- kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin" -+ kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/trinity/bin /usr/kde/bin /usr/local/kde/bin" - test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs" - if test -n "$KDEDIRS"; then - kde_save_IFS=$IFS -@@ -578,7 +578,7 @@ - KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [XMLLINT=""]) - - if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then -- kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share" -+ kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/trinity/share /opt/kde/share $prefix/share" - test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs" - AC_FIND_FILE(apps/ksgmltools2/customization/kde-chunk.xsl, $kde_sharedirs, KDE_XSL_STYLESHEET) - if test "$KDE_XSL_STYLESHEET" = "NO"; then -@@ -1738,7 +1738,7 @@ - - if test -z "$1"; then - --kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes" -+kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/trinity/include /opt/kde/include $x_includes $qt_includes" - test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs" - kde_incdirs="$ac_kde_includes $kde_incdirs" - AC_FIND_FILE($kde_check_header, $kde_incdirs, kde_incdir) -@@ -1750,7 +1750,7 @@ - So, check this please and use another prefix!]) - fi - --kde_libdirs="/usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}" -+kde_libdirs="/usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/trinity /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/trinity/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}" - test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs" - kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs" - AC_FIND_FILE($kde_check_lib, $kde_libdirs, kde_libdir) -@@ -1758,7 +1758,7 @@ - - kde_widgetdir=NO - dnl this might be somewhere else --AC_FIND_FILE("kde3/plugins/designer/kdewidgets.la", $kde_libdirs, kde_widgetdir) -+AC_FIND_FILE("trinity/plugins/designer/kdewidgets.la", $kde_libdirs, kde_widgetdir) - - if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then - AC_MSG_ERROR([ -@@ -1766,14 +1766,14 @@ - So, check this please and use another prefix!]) - fi - --if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then -+if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/trinity/plugins/designer/kdewidgets.la"; then - AC_MSG_ERROR([ - I can't find the designer plugins. These are required and should have been installed - by kdelibs]) - fi - - if test -n "$kde_widgetdir"; then -- kde_widgetdir="$kde_widgetdir/kde3/plugins/designer" -+ kde_widgetdir="$kde_widgetdir/trinity/plugins/designer" - fi - - diff --git a/redhat/applications/kasablanca/kasablanca-0.4.0.2-missing_ldflags.patch b/redhat/applications/kasablanca/kasablanca-0.4.0.2-missing_ldflags.patch deleted file mode 100644 index 24330fa2d..000000000 --- a/redhat/applications/kasablanca/kasablanca-0.4.0.2-missing_ldflags.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- kasablanca-0.4.0.2/src/Makefile.am.ORI 2012-08-07 15:52:01.549962016 +0200 -+++ kasablanca-0.4.0.2/src/Makefile.am 2012-08-07 15:52:11.265930503 +0200 -@@ -22,7 +22,7 @@ - # the application source, library search path, and link libraries - kasablanca_SOURCES = main.cpp kasablanca.cpp bookmarkdialog.cpp customconnectdialog.cpp fileexistsdialog.cpp kbitem.cpp Q_bookmarkdialog.ui Q_fileexistsdialog.ui Q_mainwindow.ui eventhandler.cpp ftpthread.cpp ftplib.cpp ftpsession.cpp kbfileinfo.cpp kbdirinfo.cpp kbdir.cpp kbfile.cpp kbtransferitem.cpp kbtransferdir.cpp kbtransferfile.cpp kbconfig.kcfgc Q_colorspreferencesdialog.ui Q_generalpreferencesdialog.ui kbtaskview.cpp Q_userinterfacepreferencesdialog.ui kbbookmarkitem.cpp kbsiteinfo.cpp Q_customconnectdialog.ui Q_importdialog.ui importdialog.cpp kbstatustip.cpp - kasablanca_LDFLAGS = $(KDE_RPATH) $(all_libraries) --kasablanca_LDADD = -lssl $(LIB_KDEUI) -+kasablanca_LDADD = -lssl $(LIB_KDEUI) -lcrypto $(LIB_KDECORE) -lDCOP $(LIB_QT) - - # this is where the desktop file will go - shelldesktopdir = $(kde_appsdir)/Utilities diff --git a/redhat/applications/kasablanca/kasablanca-0.4.0.2.tar.gz b/redhat/applications/kasablanca/kasablanca-0.4.0.2.tar.gz Binary files differdeleted file mode 100644 index 1175e6db3..000000000 --- a/redhat/applications/kasablanca/kasablanca-0.4.0.2.tar.gz +++ /dev/null diff --git a/redhat/applications/kasablanca/kasablanca-3.5.13.2.spec b/redhat/applications/kasablanca/kasablanca-14.0.0.spec index 050fc4689..91f5fa24e 100644 --- a/redhat/applications/kasablanca/kasablanca-3.5.13.2.spec +++ b/redhat/applications/kasablanca/kasablanca-14.0.0.spec @@ -1,11 +1,13 @@ -%define tdecomp kasablanca +# Default version for this component +%define tde_pkg kasablanca +%define tde_version 14.0.0 # 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 +# TDE specific building variables %define tde_bindir %{tde_prefix}/bin %define tde_datadir %{tde_prefix}/share %define tde_docdir %{tde_datadir}/doc @@ -13,7 +15,7 @@ %define tde_libdir %{tde_prefix}/%{_lib} %define tde_mandir %{tde_datadir}/man -%define tde_tdeappdir %{tde_datadir}/applications/kde +%define tde_tdeappdir %{tde_datadir}/applications/tde %define tde_tdedocdir %{tde_docdir}/tde %define tde_tdeincludedir %{tde_includedir}/tde %define tde_tdelibdir %{tde_libdir}/trinity @@ -21,27 +23,25 @@ %define _docdir %{tde_docdir} -Name: trinity-%{tdecomp} -Summary: Graphical FTP client -Version: 0.4.0.2 -Release: 3%{?dist}%{?_variant} +Name: trinity-%{tde_pkg} +Summary: Graphical FTP client +Version: 0.4.0.2 +Release: %{?!preversion:4}%{?preversion:3_%{preversion}}%{?dist}%{?_variant} -License: GPLv2+ -Url: http://kasablanca.berlios.de/ -Source: kasablanca-0.4.0.2.tar.gz -Group: Applications/Internet -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: GPLv2+ +Url: http://kasablanca.berlios.de/ +Group: Applications/Internet +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -# [kasablanca] Fix bad content in icon (?) -Patch1: kasablanca-0.4.0.2-dt.patch -# [kasablanca] Fix detection of newer autotools -Patch2: kasablanca-0.4.0.2-fix_autotools_detection.patch -# [kasablanca] Missing LDFLAGS cause FTBFS -Patch3: kasablanca-0.4.0.2-missing_ldflags.patch +Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz BuildRequires: desktop-file-utils +BuildRequires: trinity-tqt3-devel >= 3.5.0 +BuildRequires: trinity-tqtinterface-devel >= %{tde_version} +BuildRequires: trinity-arts-devel >= %{tde_version} +BuildRequires: trinity-tdelibs-devel >= %{tde_version} + BuildRequires: gettext -BuildRequires: trinity-tdelibs-devel >= 3.5.13.2 BuildRequires: openssl-devel %if 0%{?suse_version} @@ -70,16 +70,7 @@ Kasablanca is an ftp client, among its features are currently: %prep -%setup -q -n %{tdecomp}-%{version} -%patch1 -p1 -b .dt -%patch2 -p1 -b .autotools -%patch3 -p1 -b .ldflags - -# 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" +%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} %__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" @@ -87,10 +78,9 @@ Kasablanca is an ftp client, among its features are currently: %build -unset QTDIR || : ; . /etc/profile.d/qt3.sh +unset QTDIR QTINC QTLIB export PATH="%{tde_bindir}:${PATH}" export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" -export KDEDIR=%{tde_prefix} ## Needed(?) for older/legacy setups, harmless otherwise if pkg-config openssl ; then @@ -104,50 +94,23 @@ fi --libdir=%{tde_libdir} \ --includedir=%{tde_tdeincludedir} \ --datadir=%{tde_datadir} \ - --with-qt-libraries=${QTLIB:-${QTDIR}/%{_lib}} \ --disable-static \ --disable-rpath \ --disable-debug --disable-warnings \ --disable-dependency-tracking --enable-final \ - --with-extra-includes=%{tde_includedir}/tqt + --enable-closure -%__make %{?_smp_mflags} LIBTOOL=$(which libtool) +%__make %{?_smp_mflags} %install export PATH="%{tde_bindir}:${PATH}" %__rm -rf $RPM_BUILD_ROOT - %__make install DESTDIR=$RPM_BUILD_ROOT -desktop-file-install \ - --dir $RPM_BUILD_ROOT%{tde_datadir}/applications/kde \ - --vendor="" \ - --add-category="Network" \ - --add-category="KDE" \ - --delete-original \ - $RPM_BUILD_ROOT%{tde_datadir}/applnk/*/*.desktop - -## File lists -# HTML (1.0) -HTML_DIR=$(kde-config --expandvars --install html) -if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then -for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do - if [ -d $lang_dir ]; then - lang=$(basename $lang_dir) - echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang - # replace absolute symlinks with relative ones - pushd $lang_dir - for i in *; do - [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common - done - popd - fi -done -fi - # locale's -%find_lang %{tdecomp} +%find_lang %{tde_pkg} + %clean %__rm -rf $RPM_BUILD_ROOT @@ -156,27 +119,33 @@ fi %post touch --no-create %{tde_datadir}/icons/hicolor &> /dev/null || : + %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &> /dev/null gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : fi + %posttrans gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : -%files -f %{tdecomp}.lang +%files -f %{tde_pkg}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %{tde_bindir}/kasablanca -%{tde_tdeappdir}/kasablanca.desktop %{tde_datadir}/apps/kasablanca/ %{tde_datadir}/config.kcfg/kbconfig.kcfg %{tde_datadir}/icons/hicolor/*/apps/kasablanca.png %{tde_tdedocdir}/HTML/en/kasablanca/ +%{tde_datadir}/applnk/Utilities/kasablanca.desktop + %changelog +* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 0.4.0.2-4 +- Initial release for TDE 14.0.0 + * Sat Jan 19 2013 Francois Andriot <francois.andriot@free.fr> - 0.4.0.2-3 - Initial release for TDE 3.5.13.2 diff --git a/redhat/applications/kasablanca/kasablanca-3.5.13.1.spec b/redhat/applications/kasablanca/kasablanca-3.5.13.1.spec deleted file mode 100644 index 37345953e..000000000 --- a/redhat/applications/kasablanca/kasablanca-3.5.13.1.spec +++ /dev/null @@ -1,182 +0,0 @@ -%define kdecomp kasablanca - -# 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_tdeappdir %{tde_datadir}/applications/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-%{kdecomp} -Summary: Graphical FTP client -Version: 0.4.0.2 -Release: 2%{?dist}%{?_variant} - -License: GPLv2+ -Url: http://kasablanca.berlios.de/ -Source: http://download.berlios.de/kasablanca/kasablanca-%{version}.tar.gz -Group: Applications/Internet -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -# [kasablanca] Fix bad content in icon (?) -Patch1: kasablanca-0.4.0.2-dt.patch -# [kasablanca] Fix detection of newer autotools -Patch2: kasablanca-0.4.0.2-fix_autotools_detection.patch -# [kasablanca] Missing LDFLAGS cause FTBFS -Patch3: kasablanca-0.4.0.2-missing_ldflags.patch - -BuildRequires: desktop-file-utils -BuildRequires: gettext -BuildRequires: trinity-tdelibs-devel >= 3.5.13.1 -BuildRequires: openssl-devel - -%if 0%{?suse_version} -BuildRequires: utempter-devel -%else -BuildRequires: libutempter-devel -%endif - -%description -Kasablanca is an ftp client, among its features are currently: -* ftps encryption via AUTH TLS -* fxp (direct server to server transfer), supporting alternative mode. -* advanced bookmarking system. -* fast responsive multithreaded engine. -* concurrent connections to multiple hosts. -* interactive transfer queue, movable by drag and drop. -* small nifty features, like a skiplist. - - -%if 0%{?suse_version} -%debug_package -%endif - - -%prep -%setup -q -n %{kdecomp}-%{version} -%patch1 -p1 -b .dt -%patch2 -p1 -%patch3 -p1 -b .ldflags - -# 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}" -export KDEDIR=%{tde_prefix} - -## Needed(?) for older/legacy setups, harmless otherwise -if pkg-config openssl ; then - export CPPFLAGS="$CPPFLAGS $(pkg-config --cflags-only-I openssl)" -fi - -%configure \ - --prefix=%{tde_prefix} \ - --exec-prefix=%{tde_prefix} \ - --bindir=%{tde_bindir} \ - --libdir=%{tde_libdir} \ - --includedir=%{tde_tdeincludedir} \ - --datadir=%{tde_datadir} \ - --with-qt-libraries=${QTLIB:-${QTDIR}/%{_lib}} \ - --disable-static \ - --disable-rpath \ - --disable-debug --disable-warnings \ - --disable-dependency-tracking --enable-final \ - --with-extra-includes=%{tde_includedir}/tqt - -%__make %{?_smp_mflags} LIBTOOL=$(which libtool) - - -%install -export PATH="%{tde_bindir}:${PATH}" -%__rm -rf $RPM_BUILD_ROOT - -%__make install DESTDIR=$RPM_BUILD_ROOT - -desktop-file-install \ - --dir $RPM_BUILD_ROOT%{tde_datadir}/applications/kde \ - --vendor="" \ - --add-category="Network" \ - --add-category="KDE" \ - --delete-original \ - $RPM_BUILD_ROOT%{tde_datadir}/applnk/*/*.desktop - -## File lists -# HTML (1.0) -HTML_DIR=$(kde-config --expandvars --install html) -if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then -for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do - if [ -d $lang_dir ]; then - lang=$(basename $lang_dir) - echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang - # replace absolute symlinks with relative ones - pushd $lang_dir - for i in *; do - [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common - done - popd - fi -done -fi - -# locale's -%find_lang %{kdecomp} - -%clean -%__rm -rf $RPM_BUILD_ROOT - - -%post -touch --no-create %{tde_datadir}/icons/hicolor &> /dev/null || : - -%postun -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &> /dev/null - gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : -fi - -%posttrans -gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : - - -%files -f %{kdecomp}.lang -%defattr(-,root,root,-) -%doc AUTHORS ChangeLog COPYING NEWS README -%{tde_bindir}/kasablanca -%{tde_tdeappdir}/kasablanca.desktop -%{tde_datadir}/apps/kasablanca/ -%{tde_datadir}/config.kcfg/kbconfig.kcfg -%{tde_datadir}/icons/hicolor/*/apps/kasablanca.png -%{tde_tdedocdir}/HTML/en/kasablanca/ - -%changelog -* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.0.2-2 -- Initial release for TDE 3.5.13.1 - -* Sun Dec 04 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.0.2-1 -- Initial release for RHEL 5, RHEL 6, Fedora 15, Fedora 16 -- Based on Fedora 12 Spec 'kasablanca-0.4.0.2-17' diff --git a/redhat/applications/kasablanca/kasablanca-3.5.13.spec b/redhat/applications/kasablanca/kasablanca-3.5.13.spec deleted file mode 100644 index cb8c68e9a..000000000 --- a/redhat/applications/kasablanca/kasablanca-3.5.13.spec +++ /dev/null @@ -1,169 +0,0 @@ -%define kdecomp kasablanca - -# 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_tdeappdir %{tde_datadir}/applications/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-%{kdecomp} -Summary: Graphical FTP client -Version: 0.4.0.2 -Release: 1%{?dist}%{?_variant} - -License: GPLv2+ -Url: http://kasablanca.berlios.de/ -Source: http://download.berlios.de/kasablanca/kasablanca-%{version}.tar.gz -Group: Applications/Internet -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -# [kasablanca] Fix bad content in icon (?) -Patch1: kasablanca-0.4.0.2-dt.patch -# [kasablanca] Fix detection of newer autotools -Patch2: kasablanca-0.4.0.2-fix_autotools_detection.patch -# [kasablanca] Missing LDFLAGS cause FTBFS -Patch3: kasablanca-0.4.0.2-missing_ldflags.patch - -BuildRequires: desktop-file-utils -BuildRequires: gettext -BuildRequires: trinity-tdelibs-devel -BuildRequires: openssl-devel -BuildRequires: libutempter-devel - -%description -Kasablanca is an ftp client, among its features are currently: -* ftps encryption via AUTH TLS -* fxp (direct server to server transfer), supporting alternative mode. -* advanced bookmarking system. -* fast responsive multithreaded engine. -* concurrent connections to multiple hosts. -* interactive transfer queue, movable by drag and drop. -* small nifty features, like a skiplist. - - -%prep -%setup -q -n %{kdecomp}-%{version} -%patch1 -p1 -b .dt -%patch2 -p1 -%patch3 -p1 -b .ldflags - -# 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}" - -export KDEDIR=%{tde_prefix} - -## Needed(?) for older/legacy setups, harmless otherwise -if pkg-config openssl ; then - export CPPFLAGS="$CPPFLAGS $(pkg-config --cflags-only-I openssl)" -fi - -%configure \ - --prefix=%{tde_prefix} \ - --exec-prefix=%{tde_prefix} \ - --bindir=%{tde_bindir} \ - --libdir=%{tde_libdir} \ - --includedir=%{tde_includedir} \ - --datadir=%{tde_datadir} \ - --disable-static \ - --disable-rpath \ - --disable-debug --disable-warnings \ - --disable-dependency-tracking --enable-final \ - --with-extra-includes=%{tde_includedir}/tqt - -%__make %{?_smp_mflags} LIBTOOL=$(which libtool) - - -%install -export PATH="%{tde_bindir}:${PATH}" -%__rm -rf $RPM_BUILD_ROOT - -%__make install DESTDIR=$RPM_BUILD_ROOT - -desktop-file-install \ - --dir $RPM_BUILD_ROOT%{tde_datadir}/applications/kde \ - --vendor="" \ - --add-category="Network" \ - --add-category="KDE" \ - --delete-original \ - $RPM_BUILD_ROOT%{tde_datadir}/applnk/*/*.desktop - -## File lists -# HTML (1.0) -HTML_DIR=$(kde-config --expandvars --install html) -if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then -for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do - if [ -d $lang_dir ]; then - lang=$(basename $lang_dir) - echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang - # replace absolute symlinks with relative ones - pushd $lang_dir - for i in *; do - [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common - done - popd - fi -done -fi - -# locale's -%find_lang %{kdecomp} - -%clean -%__rm -rf $RPM_BUILD_ROOT - - -%post -touch --no-create %{tde_datadir}/icons/hicolor &> /dev/null || : - -%postun -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &> /dev/null - gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : -fi - -%posttrans -gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : - - -%files -f %{kdecomp}.lang -%defattr(-,root,root,-) -%doc AUTHORS ChangeLog COPYING NEWS README -%{tde_bindir}/kasablanca -%{tde_tdeappdir}/kasablanca.desktop -%{tde_datadir}/apps/kasablanca/ -%{tde_datadir}/config.kcfg/kbconfig.kcfg -%{tde_datadir}/icons/hicolor/*/apps/kasablanca.png -%{tde_tdedocdir}/HTML/en/kasablanca/ - -%changelog -* Sun Dec 04 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.0.2-1 -- Initial release for RHEL 5, RHEL 6, Fedora 15, Fedora 16 -- Based on Fedora 12 Spec 'kasablanca-0.4.0.2-17' |