From 9a769a7ea42b5dd8fe17a604080923f7ba9656c1 Mon Sep 17 00:00:00 2001 From: albator Date: Sat, 29 Oct 2011 13:17:39 +0200 Subject: [PATCH] RPM kdewebdev for TDE 3.5.13 --- redhat/kdewebdev/hi48-app-kxsldbg.png | Bin 0 -> 2652 bytes .../kdewebdev/trinity-kdewebdev-3.5.13.spec | 228 ++++++++++++++++++ 2 files changed, 228 insertions(+) create mode 100644 redhat/kdewebdev/hi48-app-kxsldbg.png create mode 100644 redhat/kdewebdev/trinity-kdewebdev-3.5.13.spec diff --git a/redhat/kdewebdev/hi48-app-kxsldbg.png b/redhat/kdewebdev/hi48-app-kxsldbg.png new file mode 100644 index 0000000000000000000000000000000000000000..a26283571fbae816431d5fbf9b2a7eebe9ab108a GIT binary patch literal 2652 zcmV-i3ZwOjP)vY{JY=UUmY!67&;Ta3U68fU3+b42;AH!Y0~q) z=bZ2RoO9lDo^xbE2*GuXq^ljk^#hZ)f)G*<(iWZ}@yZv0%Xh0bKLHii!#m2n2)> zLP#^v)6>Jy&=3H(-g+xbmMpoFgLg$>x7+b}JhqF+WMqVqkrCj3U>Ev7fvb({oOac&V*RB|bT6y4q3;T|UgYHD z2teF)(@o;lS6`LB2MDcJE57~qTk-bWZ;Pa)B*|{IT18J!j}Sr#i^U=UQBqPOy1KgJ z&w&f!^?G^dop(^FROIF5(cj4VvKub#tXU?1%oATsjqR}WjcI+S!2#}JJf=;JnU|@j#`}ebB#|~0cQz8Og!PgxUM~Pkmo8=H%9Siyv~=dp|NJxGefJ$RXU@du^Ktm_ zVa#STUw!qJL|Cm>&lbBu-096Pq`0j!QB?7z_rnckfkiF`La)RaH@5UXIV_45RFDz zxNsrs*RLlhCx_hj{$)$8k6utX;d7hK2_Gem@R}gOQODv|24jqY;%# zMIaEMudk0_FvyGEy(T6XfOPk)555TCGN_)lyJUfDnSihY!=#)Wob=v$*%(d&$ksB_}5b zuh+}*wtxZ~o$;rv0uC7juM@L78$jZu+>Qq-(i)b_|e*5h=QB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dev/trinity-kdewebdev-3.5.13.spec new file mode 100644 index 000000000..ea89ce3ae --- /dev/null +++ b/redhat/kdewebdev/trinity-kdewebdev-3.5.13.spec @@ -0,0 +1,228 @@ +# Default version for this component +%if "%{?version}" == "" +%define version 3.5.13 +%endif +%define release 0 + +# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". +%if "%{?_prefix}" != "/usr" +%define _variant .opt +%define _docdir %{_prefix}/share/doc +%endif + +# TDE 3.5.13 specific building variables +BuildRequires: autoconf automake libtool m4 +%define tde_docdir %{_docdir}/kde +%define tde_includedir %{_includedir}/kde +%define tde_libdir %{_libdir}/trinity + +Name: trinity-kdewebdev +Version: %{?version} +Release: %{?release}%{?dist}%{?_variant} +License: GPL +Summary: Web development applications +Group: Applications/Editors + +Vendor: Trinity Project +Packager: Francois Andriot +URL: http://www.trinitydesktop.org/ + +Prefix: %{_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source0: kdewebdev-%{version}.tar.gz +Source1: http://download.sourceforge.net/quanta/css.tar.bz2 +Source2: http://download.sourceforge.net/quanta/html.tar.bz2 +Source3: http://download.sourceforge.net/quanta/php_manual_en_20030401.tar.bz2 +Source4: http://download.sourceforge.net/quanta/javascript.tar.bz2 +Source5: hi48-app-kxsldbg.png + +Patch0: javascript.patch +Patch1: kdewebdev-3.5.4-kxsldbg-icons.patch + + +BuildRequires: desktop-file-utils +BuildRequires: trinity-kdelibs-devel +BuildRequires: trinity-kdesdk-devel +BuildRequires: libxslt-devel libxml2-devel +%if 0%{?rhel} == 4 +# a bogus dep in libexslt.la file from EL-4 (WONTFIX bug http://bugzilla.redhat.com/142241) +BuildRequires: libgcrypt-devel +%endif +BuildRequires: perl + +Requires: %{name}-libs = %{version}-%{release} + +# optional +Requires: tidy + +Provides: kdewebdev3 = %{version}-%{release} + +Obsoletes: quanta < %{version}-%{release} +Provides: quanta = %{version}-%{release} + +%define kommander_ver 1.2.2 +#Obsoletes: kommander < %{kommander_ver}-%{release} +Provides: kommander = %{kommander_ver}-%{release} + +%description +%{summary}, including: +* kfilereplace: batch search and replace tool +* kimagemapeditor: HTML image map editor +* klinkstatus: link checker +* kommander: visual dialog building tool +* kxsldbg: xslt Debugger +* quanta+: web development + +%package devel +Group: Development/Libraries +Summary: Header files and documentation for %{name} +Provides: kdewebdev3-devel = %{version}-%{release} +Requires: trinity-kdelibs-devel +Requires: %{name}-libs +Obsoletes: quanta-devel < %{version}-%{release} +%description devel +%{summary}. + +%package libs +Summary: %{name} runtime libraries +Group: System Environment/Libraries +Requires: trinity-kdelibs +# helps multilib upgrades +%description libs +%{summary}. + + +%prep +%setup -q -a 1 -a 2 -a 3 -a 4 -n kdewebdev + +# 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,%{_includedir}/tqt,g" + +%patch0 -p0 -b .javascript +%patch1 -p1 -b .kxsldbg-icons + +install -m644 -p %{SOURCE5} kxsldbg/ + +%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" +%__make -f admin/Makefile.common + + +%build +unset QTDIR || : ; source /etc/profile.d/qt.sh +export PATH="%{_bindir}:${PATH}" +export LDFLAGS="-L%{_libdir} -I%{_includedir}" + +%if 0%{?fedora} >= 15 +#export CXXFLAGS="${CXXFLAGS} -fpermissive" +%endif + +%configure \ + --includedir=%{tde_includedir} \ + --disable-rpath \ + --enable-new-ldflags \ + --enable-closure \ + --disable-debug --disable-warnings \ + --disable-dependancy-tracking --enable-final \ + --with-extra-includes=%{_includedir}/tqt \ + +%__make %{?_smp_mflags} + + +%install +export PATH="%{_bindir}:${PATH}" +%__rm -rf %{?buildroot} +%__make install DESTDIR=%{?buildroot} + + +## package separately? Why doesn't upstream include this? -- Rex +# install docs +for i in css html javascript ; do + pushd $i + ./install.sh < /dev/null ||: + gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||: +done +update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : + +%postun +for f in crystalsvg hicolor locolor ; do + touch --no-create %{_datadir}/icons/$f 2> /dev/null ||: + gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||: +done +update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : + + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + + +%clean +%__rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README +%doc rpmdocs/* +%{_bindir}/* +%{tde_libdir}/* +%{_datadir}/applications/kde/* +%{_datadir}/applnk/.hidden/* +%{_datadir}/apps/* +%doc %{_datadir}/apps/quanta/doc +%{_datadir}/config.kcfg/* +%{_datadir}/icons/crystalsvg/*/*/* +%{_datadir}/icons/hicolor/*/*/* +%{_datadir}/icons/locolor/*/*/* +%{_datadir}/mimelnk/application/* +%{_datadir}/services/* +%{_datadir}/servicetypes/* +%doc %lang(en) %{_docdir}/HTML/en/* + + +%files libs +%defattr(-,root,root,-) +%{_libdir}/lib*.so.* +%{_libdir}/lib*.la + +%files devel +%defattr(-,root,root,-) +%{_libdir}/lib*.so +%{tde_includedir}/* + + +%changelog +* Mon Sep 19 2011 Francois Andriot - 3.5.13-0 +- Initial build for RHEL 6 / Fedora 15