summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kvirc
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-08-06 22:45:56 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-08-06 22:45:56 +0200
commitd27f0076471e9f60e546dae988c35cf827f4255f (patch)
tree14f279f1db08a1744b949f67eaaf6627d4e94302 /redhat/applications/kvirc
parent53831bb045f35ee9d97f2a4560bdb776d3e41d5f (diff)
downloadtde-packaging-d27f0076471e9f60e546dae988c35cf827f4255f.tar.gz
tde-packaging-d27f0076471e9f60e546dae988c35cf827f4255f.zip
RPM Packaging: update lots of applications
Diffstat (limited to 'redhat/applications/kvirc')
-rw-r--r--redhat/applications/kvirc/kvirc-14.0.0-install_directory.patch11
-rw-r--r--redhat/applications/kvirc/kvirc-14.0.0.spec33
2 files changed, 32 insertions, 12 deletions
diff --git a/redhat/applications/kvirc/kvirc-14.0.0-install_directory.patch b/redhat/applications/kvirc/kvirc-14.0.0-install_directory.patch
new file mode 100644
index 000000000..33bdda5a7
--- /dev/null
+++ b/redhat/applications/kvirc/kvirc-14.0.0-install_directory.patch
@@ -0,0 +1,11 @@
+--- trinity-kvirc-14.0.0~pre102+3e8fea2e/admin/acinclude.m4.in.ROI 2013-08-04 20:37:52.076477391 +0200
++++ trinity-kvirc-14.0.0~pre102+3e8fea2e/admin/acinclude.m4.in 2013-08-04 20:37:57.402529614 +0200
+@@ -2633,7 +2633,7 @@
+ AC_DEFINE_UNQUOTED([VERSION_BRANCH], "$SS_DIRTAG", [MAJOR.MINOR part of version])
+ AC_DEFINE_UNQUOTED([BUILD_FLAGS],"$target_cpu-$build_flags", [these are the build flags])
+
+- globalkvircdir="\${datadir}/kvirc/$SS_DIRTAG"
++ globalkvircdir="\${libdir}/kvirc/$SS_DIRTAG"
+ AC_SUBST(globalkvircdir)
+
+ configdir="\${globalkvircdir}/config"
diff --git a/redhat/applications/kvirc/kvirc-14.0.0.spec b/redhat/applications/kvirc/kvirc-14.0.0.spec
index 5eedd7db3..25a80b1c0 100644
--- a/redhat/applications/kvirc/kvirc-14.0.0.spec
+++ b/redhat/applications/kvirc/kvirc-14.0.0.spec
@@ -43,10 +43,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
+Patch1: kvirc-14.0.0-install_directory.patch
+
BuildRequires: trinity-tqtinterface-devel >= %{tde_version}
+BuildRequires: trinity-arts-devel >= 1:1.5.10
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
BuildRequires: trinity-tdebase-devel >= %{tde_version}
BuildRequires: desktop-file-utils
+
BuildRequires: gettext
Requires: %{name}-data = %{version}-%{release}
@@ -75,7 +79,7 @@ as a very simple IRC client you are likely to want to write scripts to
tailor KVIrc to your needs.
KVIrc is a graphical IRC client based on the TDE widget set which integrates
-with the K Desktop Environment version 3.
+with the Trinity Desktop Environment version 3.
%package devel
Group: Development/Libraries
@@ -97,12 +101,9 @@ with the K Desktop Environment version 3.
%prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
+%patch1 -p1 -b .installdir
# Hardcoded absolute PATH to TDEDIR in source code ! That sucks !
-%__sed -i "src/kvirc/kernel/kvi_app_fs.cpp" \
- -e "s|/opt/kde3/lib|%{tde_libdir}|g"
-%__sed -i "src/kvirc/kernel/kvi_app_setup.cpp" \
- -e "s|/opt/kde3|%{tde_prefix}|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"
@@ -122,8 +123,15 @@ export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
--libdir=%{tde_libdir} \
--mandir=%{tde_mandir} \
--includedir=%{tde_tdeincludedir} \
+ \
+ --disable-dependency-tracking \
+ --disable-debug \
+ --enable-wall \
+ \
+ --with-pic \
+ \
--with-big-channels \
- --enable-perl --with-pic --enable-wall \
+ --enable-perl \
--with-ix86-asm \
--with-kde-services-dir=%{tde_datadir}/services \
--with-kde-library-dir=%{tde_libdir} \
@@ -137,7 +145,8 @@ export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
%__make symlinks -C src/kvilib/build
%__make symlinks -C src/kvirc/build
-%__make %{?_smp_mflags}
+%__make %{?_smp_mflags
+}
%install
@@ -147,8 +156,8 @@ export PATH="%{tde_bindir}:${PATH}"
# Debian maintainer has renamed 'COPYING' file to 'EULA', so we do the same ...
%__mv \
- %{?buildroot}%{tde_datadir}/kvirc/3.4/license/COPYING \
- %{?buildroot}%{tde_datadir}/kvirc/3.4/license/EULA
+ %{?buildroot}%{tde_libdir}/kvirc/3.4/license/COPYING \
+ %{?buildroot}%{tde_libdir}/kvirc/3.4/license/EULA
%clean
@@ -171,18 +180,18 @@ gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
%doc ChangeLog FAQ README TODO
%{tde_bindir}/kvirc
%{tde_libdir}/*.so.*
-#%{tde_libdir}/kvirc/*/modules/*.so
+%{tde_libdir}/kvirc/*/modules/*.so
%files data
%defattr(-,root,root,-)
%{tde_bindir}/kvi_run_netscape
%{tde_bindir}/kvi_search_help
-#%{tde_libdir}/kvirc/*/modules/caps/
+%{tde_libdir}/kvirc/
%{tde_datadir}/applnk/Internet/kvirc.desktop
%{tde_datadir}/icons/hicolor/*/*/*.png
%{tde_datadir}/icons/hicolor/*/*/*.svgz
%{tde_datadir}/icons/hicolor/*/*/*.xpm
-%{tde_datadir}/kvirc
+#%{tde_datadir}/kvirc
%{tde_datadir}/mimelnk/text/*.desktop
%{tde_datadir}/services/*.protocol
%{tde_mandir}/man1/kvirc.1