diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-06-26 22:46:07 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-06-26 22:46:07 +0200 |
commit | a62bf523e93cfc54151ad9c13bb67a135fd676fd (patch) | |
tree | c28c0d549a28457dd5a0b722238048e9bfce983f /redhat/tdelibs | |
parent | 502bd62dcfc36b32315f763557ab943edbc0a75a (diff) | |
download | tde-packaging-a62bf523e93cfc54151ad9c13bb67a135fd676fd.tar.gz tde-packaging-a62bf523e93cfc54151ad9c13bb67a135fd676fd.zip |
RPM Packaging: initial support for R14.0.0
Diffstat (limited to 'redhat/tdelibs')
-rw-r--r-- | redhat/tdelibs/tdelibs-r14.spec | 316 | ||||
-rw-r--r-- | redhat/tdelibs/trinity-tdelibs-14.0.0.spec | 456 |
2 files changed, 456 insertions, 316 deletions
diff --git a/redhat/tdelibs/tdelibs-r14.spec b/redhat/tdelibs/tdelibs-r14.spec deleted file mode 100644 index d57bea3a6..000000000 --- a/redhat/tdelibs/tdelibs-r14.spec +++ /dev/null @@ -1,316 +0,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 specific variables -BuildRequires: cmake >= 2.8 -%define tde_docdir %{_docdir}/trinity -%define tde_libdir %{_libdir}/trinity - -# Older RHEL/Fedora versions use packages named "qt", "qt-devel", .. -# whereas newer versions use "qt3", "qt3-devel" ... -%if 0%{?rhel} >= 6 || 0%{?fedora} >= 8 -%define _qt_suffix 3 -%endif - - -Name: tdelibs -Version: r14 -Release: 1%{?dist}%{?_variant} -License: GPL -Summary: TDE Libraries -Group: System 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: tdelibs-%{version}.tar.gz -Patch0: git.patch - -## [kdelibs/kio] Disable 'max line length' detection [Bug #656] -Patch10: kdelibs-3.5.13-maxlinelength.patch - -BuildRequires: libtool -BuildRequires: tqtinterface-devel -BuildRequires: trinity-arts-devel -BuildRequires: avahi-devel -BuildRequires: lua-devel -BuildRequires: krb5-devel libxslt-devel cups-devel libart_lgpl-devel pcre-devel -BuildRequires: libutempter-devel -BuildRequires: bzip2-devel -BuildRequires: openssl-devel -BuildRequires: gcc-c++ -BuildRequires: alsa-lib-devel -BuildRequires: libidn-devel -BuildRequires: tqt3-devel >= 3.4.0 -BuildRequires: avahi-tqt-devel -BuildRequires: jasper-devel -BuildRequires: libtiff-devel -BuildRequires: OpenEXR-devel -BuildRequires: libtool-ltdl-devel -BuildRequires: glib2-devel -BuildRequires: gamin-devel -BuildRequires: xorg-x11-proto-devel - -Requires: tqtinterface -Requires: trinity-arts -Requires: avahi -Requires: tqt3 >= 3.4.0 -Requires: avahi-tqt - -Obsoletes: trinity-kdelibs <= 3.5.13 - -%if "%{?_prefix}" == "/usr" -Provides: kdelibs%{?_qt_suffix} = %{version} -Obsoletes: kdelibs%{?_qt_suffix} <= 3.5.10 -%endif - -%description -Libraries for the Trinity Desktop Environment: -KDE Libraries included: kdecore (KDE core library), kdeui (user interface), -kfm (file manager), khtmlw (HTML widget), kio (Input/Output, networking), -kspell (spelling checker), jscript (javascript), kab (addressbook), -kimgio (image manipulation). - - -%package devel -Summary: %{name} - Development files -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Obsoletes: trinity-kdelibs-devel <= 3.5.13 -%if "%{?_prefix}" == "/usr" -Provides: kdelibs%{?_qt_suffix}-devel = %{version} -Obsoletes: kdelibs%{?_qt_suffix}-devel <= 3.5.10 -%endif - -%description devel -This package includes the header files you will need to compile -applications for TDE. - -%package apidocs -Group: Development/Libraries -Summary: %{name} - API documentation -Requires: %{name} = %{version}-%{release} -Obsoletes: trinity-kdelibs-apidocs <= 3.5.13 -%if "%{?_prefix}" == "/usr" -Provides: kdelibs%{?_qt_suffix}-apidocs = %{version} -Obsoletes: kdelibs%{?_qt_suffix}-apidocs <= 3.5.10 -%endif - -%description apidocs -This package includes the TDE API documentation in HTML -format for easy browsing - - -%prep -%setup -q -n tdelibs -#patch0 -p1 -%patch10 -p1 - - -%build -export PATH="%{_bindir}:${PATH}" -export LD_LIBRARY_PATH="%{_libdir}" -export PKG_CONFIG_PATH="%{_libdir}/pkgconfig" -export CMAKE_INCLUDE_PATH="%{_includedir}:%{_includedir}/tqt" - -%__mkdir build -cd build -%cmake \ - -DHAVE_REAL_TQT=ON \ - -DHTML_INSTALL_DIR=%{tde_docdir}/HTML \ - -DWITH_ARTS=ON \ - -DWITH_ALSA=ON \ - -DWITH_LIBART=ON \ - -DWITH_LIBIDN=OFF \ - -DWITH_SSL=ON \ - -DWITH_CUPS=ON \ - -DWITH_LUA=OFF \ - -DWITH_TIFF=ON \ - -DWITH_JASPER=ON \ - -DWITH_OPENEXR=ON \ - -DWITH_UTEMPTER=ON \ - -DWITH_AVAHI=ON \ - -DWITH_ASPELL=OFF \ - -DWITH_HSPELL=OFF \ - -DWITH_PCRE=ON \ - -DWITH_INOTIFY=ON \ - -DWITH_GAMIN=ON \ - .. - -%__make %{?_smp_mflags} - - -%install -%__rm -rf %{?buildroot} -%__make install DESTDIR=%{?buildroot} -C build - -%__mkdir_p %{?buildroot}%{_sysconfdir}/ld.so.conf.d -cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf -%if "%{?_prefix}" != "/usr" -%{_libdir} -%endif -%{tde_libdir} -EOF - -# Moves the XDG configuration files to TDE directory -%if "%{_prefix}" != "/usr" - %__install -p -D -m644 \ - "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" \ - "%{?buildroot}%{_prefix}/etc/xdg/menus/kde-applications.menu" - %__rm -rf "%{?buildroot}%{_sysconfdir}/xdg" -%else - %__mv -f "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" "%{?buildroot}%{_sysconfdir}/xdg/menus/kde-applications.menu" -%endif - - -%clean -%__rm -rf %{?buildroot} - - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - - -%files -%defattr(-,root,root,-) -%doc README -%doc COPYING.LIB -%{_bindir}/artsmessage -%{_bindir}/cupsdconf -%{_bindir}/cupsdoprint -%{_bindir}/dcop -%{_bindir}/dcopclient -%{_bindir}/dcopfind -%{_bindir}/dcopobject -%{_bindir}/dcopquit -%{_bindir}/dcopref -%{_bindir}/dcopserver -%{_bindir}/dcopserver_shutdown -%{_bindir}/dcopstart -%{_bindir}/filesharelist -%{_bindir}/fileshareset -%{_bindir}/imagetops -%{_bindir}/kab2kabc -%{_bindir}/kaddprinterwizard -%{_bindir}/kbuildsycoca -%{_bindir}/kcmshell -%{_bindir}/kconf_update -%{_bindir}/kcookiejar -%{_bindir}/tde-config -%{_bindir}/kde-menu -%{_bindir}/kded -%{_bindir}/tdeinit -%{_bindir}/tdeinit_shutdown -%{_bindir}/tdeinit_wrapper -%{_bindir}/tdesu_stub -%{_bindir}/kdontchangethehostname -%{_bindir}/kdostartupconfig -%{_bindir}/kfile -%{_bindir}/kfmexec -%{_bindir}/khotnewstuff -%{_bindir}/kinstalltheme -%{_bindir}/kio_http_cache_cleaner -%{_bindir}/kio_uiserver -%{_bindir}/kioexec -%{_bindir}/kioslave -%{_bindir}/klauncher -%{_bindir}/kmailservice -%{_bindir}/kmimelist -%attr(4755,root,root) %{_bindir}/kpac_dhcp_helper -%{_bindir}/ksendbugmail -%{_bindir}/kshell -%{_bindir}/kstartupconfig -%{_bindir}/ktelnetservice -%{_bindir}/ktradertest -%{_bindir}/kwrapper -%{_bindir}/lnusertemp -%{_bindir}/make_driver_db_cups -%{_bindir}/make_driver_db_lpr -%{_bindir}/meinproc -%{_bindir}/networkstatustestservice -%{_bindir}/start_tdeinit -%{_bindir}/start_tdeinit_wrapper -%attr(4755,root,root) %{_bindir}/kgrantpty -%{_libdir}/lib*.so.* -%{_libdir}/libtdeinit_*.so -%{_libdir}/lib*.la -%{tde_libdir}/ -%{_datadir}/applications/kde/*.desktop -%{_datadir}/autostart/kab2kabc.desktop -%{_datadir}/applnk/kio_iso.desktop -%{_datadir}/apps/* -%exclude %{_datadir}/apps/ksgmltools2/ -%config(noreplace) %{_datadir}/config/* -%{_datadir}/emoticons/* -%{_datadir}/icons/default.kde -%{_datadir}/mimelnk/magic -%{_datadir}/mimelnk/*/*.desktop -%{_datadir}/services/* -%{_datadir}/servicetypes/* -%{_datadir}/icons/crystalsvg/ -%{tde_docdir}/HTML/en/kspell -# remove conflicts with kdelibs-4 -%if "%{?_prefix}" != "/usr" -%{_bindir}/checkXML -%{_bindir}/ksvgtopng -%{_bindir}/kunittestmodrunner -%{_bindir}/preparetips -%{_datadir}/icons/hicolor/index.theme -%{_datadir}/locale/all_languages -%{tde_docdir}/HTML/en/common/* -%else -%exclude %{_bindir}/checkXML -%exclude %{_bindir}/ksvgtopng -%exclude %{_bindir}/kunittestmodrunner -%exclude %{_bindir}/preparetips -%exclude %{_datadir}/config/colors -%exclude %{_datadir}/config/kdebug.areas -%exclude %{_datadir}/config/kdebugrc -%exclude %{_datadir}/config/ksslcalist -%exclude %{_datadir}/config/ui/ui_standards.rc -%exclude %{_datadir}/icons/hicolor/index.theme -%exclude %{_datadir}/locale/all_languages -%exclude %{tde_docdir}/HTML/en/common/* -%endif -%{_sysconfdir}/ld.so.conf.d/trinity.conf - -# Avoid conflict with 'redhat-menus' package -%if "%{_prefix}" == "/usr" -%{_sysconfdir}/xdg/menus/kde-applications.menu -%else -%{_prefix}/etc/xdg/menus/kde-applications.menu -%endif - -# New in TDE 3.5.13 -%{_bindir}/kdetcompmgr - -%files devel -%defattr(-,root,root,-) -%{_bindir}/dcopidl* -%{_bindir}/kconfig_compiler -%{_bindir}/makekdewidgets -%{_datadir}/apps/ksgmltools2/ -%{_includedir}/ -%{_libdir}/lib*.so -%{_libdir}/lib*.a -%exclude %{_libdir}/libtdeinit_*.so -%{_datadir}/cmake/tdelibs.cmake - -%files apidocs -%defattr(-,root,root,-) -%{_docdir}/%{name}-%{version}/ - - -%changelog -* Thu Feb 16 2012 Francois Andriot <francois.andriot@free.fr> - r14-1 -- Initial build for TDE R14, using 'tqt3' instead of 'qt3' diff --git a/redhat/tdelibs/trinity-tdelibs-14.0.0.spec b/redhat/tdelibs/trinity-tdelibs-14.0.0.spec new file mode 100644 index 000000000..326915004 --- /dev/null +++ b/redhat/tdelibs/trinity-tdelibs-14.0.0.spec @@ -0,0 +1,456 @@ +# 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 specific 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_tdedocdir %{tde_docdir}/tde +%define tde_tdeincludedir %{tde_includedir}/tde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} + +Name: trinity-tdelibs +Version: 14.0.0 +Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant} +License: GPL +Summary: TDE Libraries +Group: Environment/Libraries + +Vendor: Trinity Project +Packager: Francois Andriot <francois.andriot@free.fr> +URL: http://www.trinitydesktop.org/ + +Prefix: %{tde_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source0: %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz + + +Obsoletes: tdelibs < %{version}-%{release} +Provides: tdelibs = %{version}-%{release} +Obsoletes: trinity-kdelibs < %{version}-%{release} +Provides: trinity-kdelibs = %{version}-%{release} +Obsoletes: trinity-kdelibs-apidocs < %{version}-%{release} +Provides: trinity-kdelibs-apidocs = %{version}-%{release} + + +BuildRequires: cmake >= 2.8 +BuildRequires: libtool +BuildRequires: trinity-tqt3-devel >= %{version} +BuildRequires: trinity-tqtinterface-devel >= %{version} +BuildRequires: trinity-arts-devel >= %{version} +BuildRequires: trinity-dbus-1-tqt-devel >= %{version} +BuildRequires: trinity-dbus-tqt-devel >= %{version} +BuildRequires: krb5-devel +BuildRequires: libxslt-devel +BuildRequires: cups-devel +BuildRequires: trinity-libart-lgpl-devel +BuildRequires: openssl-devel +BuildRequires: gcc-c++ +BuildRequires: alsa-lib-devel +BuildRequires: libidn-devel +BuildRequires: libtiff-devel +BuildRequires: glib2-devel +# LUA support are not ready yet +#BuildRequires: lua-devel + +# ASPELL support +BuildRequires: aspell +BuildRequires: aspell-devel + +# GAMIN support +# Not on openSUSE. +%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} +%define with_gamin 1 +BuildRequires: gamin-devel +%endif + +# PCRE support +%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} +%define with_pcre 1 +BuildRequires: pcre-devel +%endif + +# INOTIFY support +%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} +%define with_inotify 1 +%endif + +# BZIP2 support +%if 0%{?suse_version} +BuildRequires: libbz2-devel +%else +BuildRequires: bzip2-devel +%endif + +# UTEMPTER support +%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: libutempter-devel +%endif +%if 0%{?rhel} == 4 +BuildRequires: utempter +%endif +%if 0%{?suse_version} +BuildRequires: utempter-devel +%endif + +# HSPELL support +%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} +%define with_hspell 1 +BuildRequires: hspell-devel +%endif + +# JASPER support +%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} +%define with_jasper 1 +%if 0%{?suse_version} +BuildRequires: libjasper-devel +%endif +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}jasper-devel +%endif +%if 0%{?rhel} || 0%{?fedora} +BuildRequires: jasper-devel +%endif +%endif + +# AVAHI support +%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} +%define with_avahi 1 +BuildRequires: trinity-avahi-tqt-devel >= %{version} +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}avahi-client-devel +Requires: %{_lib}avahi-client3 +%endif +%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} +BuildRequires: avahi-devel +Requires: avahi +%endif +%endif + +# OPENEXR support +%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} +%define with_openexr 1 +BuildRequires: OpenEXR-devel +%endif + +# LIBTOOL +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}ltdl-devel +%endif +%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} >= 1220 +BuildRequires: libtool-ltdl-devel +%endif +%if 0%{?rhel} == 4 || 0%{?suse_version} == 1140 +BuildRequires: libtool +%endif + +# X11 support +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: x11-proto-devel +BuildRequires: %{_lib}xcomposite%{?mgaversion:1}-devel +%endif +%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} +BuildRequires: xorg-x11-proto-devel +%endif +%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} >= 1220 +BuildRequires: libXcomposite-devel +%endif +%if 0%{?rhel} == 4 +BuildRequires: xorg-x11-devel +%endif + +# ICEAUTH +%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} >= 1220 +Requires: iceauth +%endif +%if 0%{?rhel} >= 5 || 0%{?fedora} +Requires: xorg-x11-server-utils +%endif +%if 0%{?rhel} == 4 || 0%{?suse_version} +Requires: xorg-x11 +%endif + +# XZ support +%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} +%define with_lzma 1 +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}lzma-devel +%endif +%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} +BuildRequires: xz-devel +%endif +%endif + +# NETWORKMANAGER support +%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?suse_version} +%define with_nm 1 +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}nm-util-devel +%endif +%endif + +Requires: trinity-tqt3 >= %{version} +Requires: trinity-tqtinterface >= %{version} +Requires: trinity-arts >= %{version} + +%description +Libraries for the Trinity Desktop Environment: +TDE Libraries included: tdecore (TDE core library), kdeui (user interface), +kfm (file manager), khtmlw (HTML widget), kio (Input/Output, networking), +kspell (spelling checker), jscript (javascript), kab (addressbook), +kimgio (image manipulation). + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING COPYING-DOCS COPYING.LIB README TODO +%{tde_bindir}/artsmessage +%{tde_bindir}/cupsdconf +%{tde_bindir}/cupsdoprint +%{tde_bindir}/dcop +%{tde_bindir}/dcopclient +%{tde_bindir}/dcopfind +%{tde_bindir}/dcopobject +%{tde_bindir}/dcopquit +%{tde_bindir}/dcopref +%{tde_bindir}/dcopserver +%{tde_bindir}/dcopserver_shutdown +%{tde_bindir}/dcopstart +%{tde_bindir}/filesharelist +%{tde_bindir}/fileshareset +%{tde_bindir}/imagetops +%{tde_bindir}/tdeab2tdeabc +%{tde_bindir}/kaddprinterwizard +%{tde_bindir}/tdebuildsycoca +%{tde_bindir}/tdecmshell +%{tde_bindir}/tdeconf_update +%{tde_bindir}/kcookiejar +%{tde_bindir}/[kt]de-config +%{tde_bindir}/[kt]de-menu +%{tde_bindir}/kded +%{tde_bindir}/[kt]deinit +%{tde_bindir}/[kt]deinit_shutdown +%{tde_bindir}/[kt]deinit_wrapper +%{tde_bindir}/[kt]desu_stub +%{tde_bindir}/kdetcompmgr +%{tde_bindir}/kdontchangethehostname +%{tde_bindir}/tdedostartupconfig +%{tde_bindir}/tdefile +%{tde_bindir}/kfmexec +%{tde_bindir}/tdehotnewstuff +%{tde_bindir}/kinstalltheme +%{tde_bindir}/tdeio_http_cache_cleaner +%{tde_bindir}/tdeio_uiserver +%{tde_bindir}/tdeioexec +%{tde_bindir}/tdeioslave +%{tde_bindir}/tdelauncher +%{tde_bindir}/tdemailservice +%{tde_bindir}/tdemimelist +%attr(4755,root,root) %{tde_bindir}/kpac_dhcp_helper +%{tde_bindir}/tdesendbugmail +%{tde_bindir}/kshell +%{tde_bindir}/tdestartupconfig +%{tde_bindir}/tdetelnetservice +%{tde_bindir}/tdetradertest +%{tde_bindir}/kwrapper +%{tde_bindir}/lnusertemp +%{tde_bindir}/make_driver_db_cups +%{tde_bindir}/make_driver_db_lpr +%{tde_bindir}/meinproc +%{tde_bindir}/networkstatustestservice +%{tde_bindir}/start_[kt]deinit +%{tde_bindir}/start_[kt]deinit_wrapper +%attr(4755,root,root) %{tde_bindir}/kgrantpty +%{tde_bindir}/tde_dbus_hardwarecontrol +%{tde_bindir}/checkXML +%{tde_bindir}/ksvgtopng +%{tde_bindir}/tdeunittestmodrunner +%{tde_bindir}/preparetips +%{tde_tdelibdir}/* +%{tde_libdir}/lib*.so.* +%{tde_libdir}/lib[kt]deinit_*.la +%{tde_libdir}/lib[kt]deinit_*.so +%{tde_datadir}/applications/[kt]de/*.desktop +%{tde_datadir}/autostart/tdeab2tdeabc.desktop +%{tde_datadir}/applnk/tdeio_iso.desktop +%{tde_datadir}/apps/* +%exclude %{tde_datadir}/apps/ksgmltools2/ +%config(noreplace) %{tde_datadir}/config/* +%{tde_datadir}/emoticons/* +%{tde_datadir}/icons/crystalsvg/ +%{tde_datadir}/icons/default.tde +%{tde_datadir}/icons/hicolor/index.theme +%{tde_datadir}/locale/all_languages +%{tde_datadir}/mimelnk/magic +%{tde_datadir}/mimelnk/*/*.desktop +%{tde_datadir}/services/* +%{tde_datadir}/servicetypes/* +%{tde_tdedocdir}/HTML/en/common/* +%{tde_tdedocdir}/HTML/en/tdespell/ + +%{_sysconfdir}/dbus-1/system.d/org.trinitydesktop.hardwarecontrol.conf +%{tde_prefix}/etc/xdg/menus/tde-applications.menu +%{_sysconfdir}/ld.so.conf.d/trinity.conf +%{_datadir}/dbus-1/system-services/org.trinitydesktop.hardwarecontrol.service + + +%pre +# TDE Bug #1074 +if [ -d "%{tde_datadir}/locale/all_languages" ]; then + rm -rf "%{tde_datadir}/locale/all_languages" +fi + +%post +/sbin/ldconfig || : + +%postun +/sbin/ldconfig || : + +########## + +%package devel +Summary: %{name} - Development files +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +Obsoletes: tdelibs-devel < %{version}-%{release} +Provides: tdelibs-devel = %{version}-%{release} +Obsoletes: trinity-kdelibs-devel < %{version}-%{release} +Provides: trinity-kdelibs-devel = %{version}-%{release} + +%description devel +This package includes the header files you will need to compile +applications for TDE. + +%files devel +%defattr(-,root,root,-) +%{tde_bindir}/dcopidl* +%{tde_bindir}/*config_compiler +%{tde_bindir}/make[kt]dewidgets +%{tde_datadir}/apps/ksgmltools2/ +%{tde_tdeincludedir}/* +%{tde_libdir}/*.la +%{tde_libdir}/*.so +%{tde_libdir}/*.a +%{tde_libdir}/pkgconfig/tdelibs.pc +%exclude %{tde_libdir}/lib[kt]deinit_*.la +%exclude %{tde_libdir}/lib[kt]deinit_*.so +%{tde_datadir}/cmake/[kt]delibs.cmake + +%post devel +/sbin/ldconfig || : + +%postun devel +/sbin/ldconfig || : + +########## + +%if 0%{?suse_version} || 0%{?pclinuxos} +%debug_package +%endif + +########## + +%prep +%setup -q -n %{name}-%{version}%{?preversion:~%{preversion}} + + +%build +unset QTDIR +export PATH="%{tde_bindir}:${PATH}" +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" +export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt" + +# We need LD_LIBRARY_PATH here because ld.so.conf file has not been written yet +export LD_LIBRARY_PATH="%{tde_libdir}" + +if [ -d "/usr/X11R6" ]; then + export CXXFLAGS="${RPM_OPT_FLAGS} -L/usr/X11R6/%{_lib} -I/usr/X11R6/include" +fi + + +%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} +%__mkdir_p build +cd build +%endif + +%cmake \ + -DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \ + -DBIN_INSTALL_DIR="%{tde_bindir}" \ + -DDOC_INSTALL_DIR="%{tde_docdir}" \ + -DINCLUDE_INSTALL_DIR="%{tde_tdeincludedir}" \ + -DLIB_INSTALL_DIR="%{tde_libdir}" \ + -DPKGCONFIG_INSTALL_DIR="%{tde_libdir}/pkgconfig" \ + -DSHARE_INSTALL_PREFIX="%{tde_datadir}" \ + -DCMAKE_SKIP_RPATH=OFF \ + -DWITH_ARTS=ON \ + -DWITH_ALSA=ON \ + -DWITH_LIBART=ON \ + -DWITH_LIBIDN=ON \ + -DWITH_SSL=ON \ + -DWITH_CUPS=ON \ + -DWITH_LUA=OFF \ + -DWITH_TIFF=ON \ + %{?with_jasper:-DWITH_JASPER=ON} \ + %{?with_openexr:-DWITH_OPENEXR=ON} \ + -DWITH_UTEMPTER=ON \ + -DWITH_ELFICON=OFF \ + %{?with_avahi:-DWITH_AVAHI=ON} \ + %{?!with_pcre:-DWITH_PCRE=OFF} \ + -DWITH_GCC_VISIBILITY=ON \ + %{?!with_inotify:-DWITH_INOTIFY=OFF} \ + %{?!with_gamin:-DWITH_GAMIN=OFF} %{?with_gamin:-DWITH_GAMIN=ON} \ + -DWITH_UPOWER=ON \ + -DWITH_UDISKS=ON \ + -DWITH_UDISKS2=ON \ + -DWITH_CONSOLEKIT=ON \ + %{?with_nm:-DWITH_NETWORK_MANAGER_BACKEND=ON} \ + -DWITH_SUDO_TDESU_BACKEND=OFF \ + -DWITH_OLD_XDG_STD=OFF \ + %{?with_lzma:-DWITH_LZMA=ON} %{?!with_lzma:-DWITH_LZMA=OFF} \ + -DWITH_ASPELL=ON \ + %{?with_hspell:-DWITH_HSPELL=ON} \ + .. + +%__make %{?_smp_mflags} || %__make + + +%install +%__rm -rf "%{?buildroot}" +%__make install DESTDIR="%{?buildroot}" -C build + +%if "%{?tde_prefix}" != "/usr" +%__mkdir_p "%{?buildroot}%{_sysconfdir}/ld.so.conf.d" +cat <<EOF >"%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf" +%{tde_libdir} +EOF +%endif + +# Moves the XDG configuration files to TDE directory +%if "%{tde_prefix}" != "/usr" +%__install -p -D -m644 \ + "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" \ + "%{?buildroot}%{tde_prefix}/etc/xdg/menus/tde-applications.menu" +%__rm -rf "%{?buildroot}%{_sysconfdir}/xdg" +%else +%__mv -f "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" "%{?buildroot}%{_sysconfdir}/xdg/menus/tde-applications.menu" +%endif + +# Appends TDE version to '.pc' file +echo "Version: %{version}" >>"%{?buildroot}%{tde_libdir}/pkgconfig/tdelibs.pc" + + +%clean +%__rm -rf "%{?buildroot}" + + +%changelog +* Thu Feb 16 2012 Francois Andriot <francois.andriot@free.fr> - 14.0.0-1 +- Initial build for TDE R14, using 'tqt3' instead of 'qt3' |