diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-08-03 13:59:43 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-08-03 13:59:43 +0200 |
commit | be9f9f70d960e0789e024c8285dc681302c3c3f1 (patch) | |
tree | bc4c568eb13a62af120ba51f9145337541b35be3 /redhat/kdebindings | |
parent | 1f76bf54b70463addf27bc503bb58af60dc8ae58 (diff) | |
download | tde-packaging-be9f9f70d960e0789e024c8285dc681302c3c3f1.tar.gz tde-packaging-be9f9f70d960e0789e024c8285dc681302c3c3f1.zip |
RHEL/Fedora: adds support for Mandriva 2011 in packaging
Diffstat (limited to 'redhat/kdebindings')
-rw-r--r-- | redhat/kdebindings/kdebindings-3.5.13-fix_dcopc_header_location.patch | 12 | ||||
-rw-r--r-- | redhat/kdebindings/trinity-kdebindings-3.5.13.spec | 33 |
2 files changed, 30 insertions, 15 deletions
diff --git a/redhat/kdebindings/kdebindings-3.5.13-fix_dcopc_header_location.patch b/redhat/kdebindings/kdebindings-3.5.13-fix_dcopc_header_location.patch new file mode 100644 index 000000000..d9880371a --- /dev/null +++ b/redhat/kdebindings/kdebindings-3.5.13-fix_dcopc_header_location.patch @@ -0,0 +1,12 @@ +--- kdebindings/dcopc/Makefile.am.ORI 2012-08-02 19:39:33.981833237 +0000 ++++ kdebindings/dcopc/Makefile.am 2012-08-02 19:39:45.085467620 +0000 +@@ -10,7 +10,7 @@ + libdcopc_la_LDFLAGS = -version-info 1:0 $(X_LDFLAGS) -lICE -no-undefined + +-include_HEADERS = dcopc.h marshal.h dcopobject.h util.h +-includedir = $(prefix)/include/dcopc ++dcopcinclude_HEADERS = dcopc.h marshal.h dcopobject.h util.h ++dcopcincludedir = $(includedir)/dcopc + + noinst_HEADERS = global.h + diff --git a/redhat/kdebindings/trinity-kdebindings-3.5.13.spec b/redhat/kdebindings/trinity-kdebindings-3.5.13.spec index 0e6db1035..e095efe8a 100644 --- a/redhat/kdebindings/trinity-kdebindings-3.5.13.spec +++ b/redhat/kdebindings/trinity-kdebindings-3.5.13.spec @@ -1,14 +1,14 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif # TDE 3.5.13 specific building variables -%define tde_bindir %{_prefix}/bin -%define tde_datadir %{_prefix}/share +%define tde_bindir %{tde_prefix}/bin +%define tde_datadir %{tde_prefix}/share %define tde_docdir %{tde_datadir}/doc -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%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 @@ -30,7 +30,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: kdebindings-%{version}.tar.gz @@ -46,7 +46,8 @@ Patch3: kdebindings-3.5.13-ruby_1.9.patch Patch4: kdebindings-3.5.13-fixes.patch # [kdebindings] Fix smoke compilation on MGA2 (missing LDFLAGS) Patch5: kdebindings-3.5.13-missing_ldflags.patch - +# [kdebindings] Fix directory for dcopc include +Patch6: kdebindings-3.5.13-fix_dcopc_header_location.patch BuildRequires: autoconf automake libtool m4 BuildRequires: tqtinterface-devel @@ -64,12 +65,12 @@ BuildRequires: xulrunner-devel BuildRequires: glib-devel BuildRequires: gtk+-devel %endif -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}glib1.2-devel BuildRequires: %{_lib}gtk+-devel %endif -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}gdk_pixbuf2.0-devel %else %if 0%{?fedora} >= 17 @@ -354,7 +355,7 @@ This package is part of the official TDE bindings module. %files -n trinity-libsmokeqt-devel %defattr(-,root,root,-) -%{tde_includedir}/smoke.h +%{tde_tdeincludedir}/smoke.h %{tde_libdir}/libsmokeqt.so %{tde_libdir}/libsmokeqt.la @@ -530,7 +531,7 @@ This package is part of the official TDE bindings module. %files -n trinity-libkjsembed-devel %defattr(-,root,root,-) -%{tde_includedir}/kjsembed/ +%{tde_tdeincludedir}/kjsembed/ %{tde_libdir}/libkjsembed.so %{tde_libdir}/libkjsembed.la %{tde_docdir}/trinity-libkjsembed-devel/plugin-examples/customobject/ @@ -765,7 +766,7 @@ Requires: trinity-libkdexparts1 = %{version}-%{release} %files -n trinity-libxparts-devel %defattr(-,root,root,-) -%{tde_includedir}/xkparts/ +%{tde_tdeincludedir}/xkparts/ %{tde_libdir}/libgtkxparts.so %{tde_libdir}/libkdexparts.so @@ -828,7 +829,7 @@ Requires: trinity-libdcop-c = %{version}-%{release} %defattr(-,root,root,-) %{tde_libdir}/libdcopc.so %{tde_libdir}/libdcopc.la -%{tde_includedir}/dcopc/ +%{tde_tdeincludedir}/dcopc/ %post -n trinity-libdcop-c-devel /sbin/ldconfig || : @@ -872,6 +873,7 @@ Development files for the TDE bindings. %endif %patch4 -p1 %patch5 -p1 +%patch6 -p1 -b .dcopcinclude # Adds non-standard Ruby include path in include dirs for d in \ @@ -911,11 +913,12 @@ unset JAVA_HOME ||: export DO_NOT_COMPILE="$DO_NOT_COMPILE python" %configure \ - --exec-prefix=%{_prefix} \ + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ --bindir=%{tde_bindir} \ --datadir=%{tde_datadir} \ --docdir=%{tde_docdir} \ - --includedir=%{tde_includedir} \ + --includedir=%{tde_tdeincludedir} \ --libdir=%{tde_libdir} \ --mandir=%{tde_mandir} \ --disable-rpath \ |