diff options
author | albator <albator@arcadia.vtf> | 2011-11-20 17:23:38 +0100 |
---|---|---|
committer | albator <albator@arcadia.vtf> | 2011-11-20 17:23:38 +0100 |
commit | 7d1695925f047c17da905d5f3f4dad9e4f0b26d0 (patch) | |
tree | f0d5b257092a7dfab7ee4d84883c52f65bf3fe28 /redhat/libraries/libksquirrel | |
parent | 84baf65a460665c14ec77a19ff760067ef639ec0 (diff) | |
download | tde-packaging-7d1695925f047c17da905d5f3f4dad9e4f0b26d0.tar.gz tde-packaging-7d1695925f047c17da905d5f3f4dad9e4f0b26d0.zip |
RHEL/Fedora: adds fusion-icon, kbfx, kradio, kcpuload, knights, ksplash-engine-moodin, ksquirrel, libksquirrel
Diffstat (limited to 'redhat/libraries/libksquirrel')
3 files changed, 209 insertions, 0 deletions
diff --git a/redhat/libraries/libksquirrel/libksquirrel-3.5.13-detect_netpbm.patch b/redhat/libraries/libksquirrel/libksquirrel-3.5.13-detect_netpbm.patch new file mode 100644 index 000000000..f7a409e8a --- /dev/null +++ b/redhat/libraries/libksquirrel/libksquirrel-3.5.13-detect_netpbm.patch @@ -0,0 +1,18 @@ +--- libksquirrel/configure.ac.ORI 2011-11-21 15:32:36.479813141 +0100 ++++ libksquirrel/configure.ac 2011-11-21 15:32:48.082812826 +0100 +@@ -587,15 +587,6 @@ + fi + fi + +-sq_codec_pict="yes" +-sq_have_pict="no" +-if test $sq_codec_pict = yes; then +- AC_PATH_PROG(PICTTOPPM, picttoppm) +- if [ test -n "$PICTTOPPM" ]; then sq_have_pict="yes" AC_SUBST(PICTTOPPM) +- else missing_prog PICT netpbm +- fi +-fi +- + sq_codec_mac="yes" + sq_have_mac="no" + if test $sq_codec_mac = yes; then diff --git a/redhat/libraries/libksquirrel/libksquirrel-3.5.13-fix_docdir.patch b/redhat/libraries/libksquirrel/libksquirrel-3.5.13-fix_docdir.patch new file mode 100644 index 000000000..4730fe5bc --- /dev/null +++ b/redhat/libraries/libksquirrel/libksquirrel-3.5.13-fix_docdir.patch @@ -0,0 +1,46 @@ +--- libksquirrel/doc/sources/Makefile.am.ORI 2011-11-21 15:50:33.705784300 +0100 ++++ libksquirrel/doc/sources/Makefile.am 2011-11-21 15:52:13.134781698 +0100 +@@ -1,24 +1,24 @@ + install-data-local: +- $(mkinstalldirs) $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources +- $(mkinstalldirs) $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c +- $(mkinstalldirs) $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++ +- $(mkinstalldirs) $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx ++ $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources ++ $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c ++ $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++ ++ $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx + +- $(INSTALL_DATA) c/module.c $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c/module.c +- $(INSTALL_DATA) c/main.c $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c/main.c +- $(INSTALL_SCRIPT) c/compile $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c/compile ++ $(INSTALL_DATA) c/module.c $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c/module.c ++ $(INSTALL_DATA) c/main.c $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c/main.c ++ $(INSTALL_SCRIPT) c/compile $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c/compile + +- $(INSTALL_SCRIPT) c++/compile $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/compile +- $(INSTALL_DATA) c++/main.cpp $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/main.cpp +- $(INSTALL_DATA) c++/triangle.cpp $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/triangle.cpp +- $(INSTALL_DATA) c++/polygon.hpp $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/polygon.hpp +- $(INSTALL_DATA) c++/README $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/README ++ $(INSTALL_SCRIPT) c++/compile $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/compile ++ $(INSTALL_DATA) c++/main.cpp $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/main.cpp ++ $(INSTALL_DATA) c++/triangle.cpp $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/triangle.cpp ++ $(INSTALL_DATA) c++/polygon.hpp $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/polygon.hpp ++ $(INSTALL_DATA) c++/README $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/README + +- $(INSTALL_DATA) ttx/Makefile.am $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/Makefile.am +- $(INSTALL_DATA) ttx/README $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/README +- $(INSTALL_SCRIPT) ttx/compile-c++ $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/compile-c++ +- $(INSTALL_DATA) ttx/fmt_codec_ttx_defs.h $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/fmt_codec_ttx_defs.h +- $(INSTALL_DATA) ttx/fmt_codec_ttx.h $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/fmt_codec_ttx.h +- $(INSTALL_DATA) ttx/fmt_codec_ttx.cpp $(DESTDIR)/usr/share/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/fmt_codec_ttx.cpp ++ $(INSTALL_DATA) ttx/Makefile.am $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/Makefile.am ++ $(INSTALL_DATA) ttx/README $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/README ++ $(INSTALL_SCRIPT) ttx/compile-c++ $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/compile-c++ ++ $(INSTALL_DATA) ttx/fmt_codec_ttx_defs.h $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/fmt_codec_ttx_defs.h ++ $(INSTALL_DATA) ttx/fmt_codec_ttx.h $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/fmt_codec_ttx.h ++ $(INSTALL_DATA) ttx/fmt_codec_ttx.cpp $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/fmt_codec_ttx.cpp + + EXTRA_DIST = c c++ ttx +\ Pas de fin de ligne à la fin du fichier diff --git a/redhat/libraries/libksquirrel/trinity-libksquirrel.spec b/redhat/libraries/libksquirrel/trinity-libksquirrel.spec new file mode 100644 index 000000000..0be591792 --- /dev/null +++ b/redhat/libraries/libksquirrel/trinity-libksquirrel.spec @@ -0,0 +1,145 @@ +# Default version for this component +%define kdecomp libksquirrel +%define version 0.8.0 +%define release 1 + +# 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-%{kdecomp} +Summary: Trinity image viewer +Version: %{?version} +Release: %{?release}%{?dist}%{?_variant} + +License: GPLv2+ +Group: Environment/Libraries + +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: %{kdecomp}-3.5.13.tar.gz +Patch0: libksquirrel-3.5.13-detect_netpbm.patch +Patch1: libksquirrel-3.5.13-fix_docdir.patch + +BuildRequires: tqtinterface-devel +BuildRequires: trinity-kdelibs-devel +BuildRequires: trinity-kdebase-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext + +BuildRequires: gettext-devel +BuildRequires: transfig +BuildRequires: netpbm-progs +%if 0%{?fedora} >= 15 +BuildRequires: xmedcon-devel +BuildRequires: djvulibre +%endif + +%description +Runtime libraries for KSquirrel. + + +%package devel +Group: Development/Libraries +Summary: Trinity image viewer +Requires: %{name} + +%description devel +Development libraries for KSquirrel. + + +%package tools +Summary: Trinity image viewer +Group: Environment/Libraries +Requires: %{name} + +%description tools +Tools for KSquirrel. + + +%prep +%setup -q -n libraries/%{kdecomp} +%patch0 -p1 +%patch1 -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,%{_includedir}/tqt,g" + +%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" +%__make -f "admin/Makefile.common" cvs + + +%build +export PATH="%{_bindir}:${PATH}" +export LDFLAGS="-L%{_libdir} -I%{_includedir}" + +%configure \ + --disable-rpath \ + --with-extra-includes=%{_includedir}/tqt + +%__make %{?_smp_mflags} + + +%install +export PATH="%{_bindir}:${PATH}" +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} + + +%clean +%__rm -rf %{buildroot} + + +%post +/sbin/ldconfig +touch --no-create %{_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : + +%postun +/sbin/ldconfig +touch --no-create %{_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING LICENSE README +%{_libdir}/ksquirrel-libs/*.so.* +%{_libdir}/*.so.* +%{_datadir}/ksquirrel-libs + +%files devel +%defattr(-,root,root,-) +%{_includedir}/ksquirrel-libs +%{_libdir}/ksquirrel-libs/*.la +%{_libdir}/ksquirrel-libs/*.so +%{_libdir}/*.la +%{_libdir}/*.so +%{_libdir}/pkgconfig/ksquirrellibs.pc +%{_docdir}/ksquirrel-libs + +%files tools +%defattr(-,root,root,-) +%{_bindir}/* + + +%Changelog +* Sun Nov 20 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.0-1 +- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 |