Репозиторий Sisyphus
Последнее обновление: 16 октября 2019 | Пакетов: 17499 | Посещений: 15273547
en ru br
Репозитории ALT

Группа :: Development/Tools
Пакет: kdevplatform

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 


%def_disable apidox
%define unstable 0
%define post_version 1
%define _unpackaged_files_terminate_build 1

%if %unstable
%define pkg_sfx -pre4.7
%define pkg_sfx_other %nil
%define if_unstable() %{expand:%*}
%define if_stable() %nil
%else
%define pkg_sfx %nil
%define pkg_sfx_other -pre4.7
%define if_unstable()  %nil
%define if_stable() %{expand:%*}
%endif

%define kdevplatform kdevplatform%{pkg_sfx}
%define kdevplatform_other kdevplatform%{pkg_sfx_other}
%define kdevelop kdevelop%{pkg_sfx}
%define kdevelop_other kdevelop%{pkg_sfx_other}

Name: %kdevplatform
Version: 1.7.3
Release: alt1.git
Serial: 1

Group: Development/Tools
Summary: A foundation for KDE-based Integrated Development Environments
Url: http://www.kde.org
License: GPL

Source: ftp://ftp.kde.org/pub/kde/stable/%version/src/kdevplatform-%version.tar.gz
Source1: kdevplatform-translations-%version.tar.gz
%if %post_version
Patch0: kdevplatform-post-%version.patch
%endif
Patch1: kdevplatform-%version-%release-alt-fixes.patch
Patch2: kdevplatform-alt-translations.patch

BuildRequires(pre): kde4libs-devel >= 4.6.0
BuildRequires: attica-devel boost-devel cvs gcc-c++ glib2-devel glibc-devel
BuildRequires: libsubversion-devel libssh2-devel qjson-devel grantlee-devel
Conflicts: kde4libs < 4.6.0

Conflicts: %{kdevplatform_other}
# Only stable package replaces unstable counterpart
%if_stable Obsoletes: %{kdevplatform_other} < %serial:%version-%release

# Drop previous -unstable

Conflicts: kdevplatform-unstable

Requires: %kdevplatform-libs = %serial:%version-%release

%description
%name provides a foundation for KDE-based Integrated Development Environments
like KDevelop or Quanta

%package libs
Summary: Commonly used KDevelop Platform libraries
Group: Development/Tools

Conflicts: %{kdevplatform_other}-libs
# Only stable package replaces unstable counterpart
%if_stable Obsoletes: %{kdevplatform_other}-libs < %serial:%version-%release

# Drop over-splitted packages

Obsoletes: libkdevplatforminterfaces4%pkg_sfx < %serial:%version-%release
Obsoletes: libkdevplatformlanguage4%pkg_sfx < %serial:%version-%release
Obsoletes: libkdevplatformoutputview4%pkg_sfx < %serial:%version-%release
Obsoletes: libkdevplatformproject4%pkg_sfx < %serial:%version-%release
Obsoletes: libkdevplatformshell4%pkg_sfx < %serial:%version-%release
Obsoletes: libkdevplatformutil4%pkg_sfx < %serial:%version-%release
Obsoletes: libkdevplatformvcs4%pkg_sfx < %serial:%version-%release
Obsoletes: libkdevplatformdebugger4%pkg_sfx < %serial:%version-%release
Obsoletes: libsublime4%pkg_sfx < %serial:%version-%release
Obsoletes: libkdevplatformdocumentation4%pkg_sfx < %serial:%version-%release

Obsoletes: libkdevplatforminterfaces4-unstable < %serial:%version-%release
Obsoletes: libkdevplatformlanguage4-unstable < %serial:%version-%release
Obsoletes: libkdevplatformoutputview4-unstable < %serial:%version-%release
Obsoletes: libkdevplatformproject4-unstable < %serial:%version-%release
Obsoletes: libkdevplatformshell4-unstable < %serial:%version-%release
Obsoletes: libkdevplatformutil4-unstable < %serial:%version-%release
Obsoletes: libkdevplatformvcs4-unstable < %serial:%version-%release
Obsoletes: libkdevplatformdebugger4-unstable < %serial:%version-%release
Obsoletes: libsublime4-unstable < %serial:%version-%release
Obsoletes: libkdevplatformdocumentation4-unstable < %serial:%version-%release

# Get rid of useless -common subpackage

Obsoletes: %kdevplatform-common < %serial:%version-%release
%if_stable Obsoletes: kdevplatform-unstable-common < %serial:%version-%release

%description libs
This package contains commonly used KDevelop Platform libraries:
* libkdevplatforminterfaces4
* libkdevplatformlanguage4
* libkdevplatformoutputview4
* libkdevplatformproject4
* libkdevplatformshell4
* libkdevplatformutil4
* libkdevplatformvcs4
* libkdevplatformdebugger4
* libsublime4
* libkdevplatformdocumentation4

%package subversion
Summary: KDevelop Platform module for Subversion support
Group: Development/Tools
Requires: kde4libs >= %{get_version kde4libs}
Requires: %name-libs = %serial:%version-%release
Requires: subversion

Conflicts: %{kdevplatform_other}-subversion
# Only stable package replaces unstable counterpart
%if_stable Obsoletes: %{kdevplatform_other}-subversion < %serial:%version-%release

# Backward compatibility

Obsoletes: %{kdevelop}-for-subversion

%description subversion
This package contains KDevelop Platform module for subversion support

%package git
Summary: KDevelop Platform module for Git support
Group: Development/Tools
Requires: kde4libs >= %{get_version kde4libs}
Requires: %name-libs = %serial:%version-%release
Requires: /usr/bin/git

Conflicts: %{kdevplatform_other}-git
# Only stable package replaces unstable counterpart
%if_stable Obsoletes: %{kdevplatform_other}-git < %serial:%version-%release

%description git
This package contains KDevelop platform module for git support

%package cvs
Summary: KDevelop Platform module for CVS support
Group: Development/Tools
Requires: kde4libs >= %{get_version kde4libs}
Requires: %name-libs = %serial:%version-%release
Requires: /usr/bin/cvs

Conflicts: %{kdevplatform_other}-cvs
# Only stable package replaces unstable counterpart
%if_stable Obsoletes: %{kdevplatform_other}-cvs < %serial:%version-%release

%description cvs
This package contains KDevelop platform module for CVS support

%package bazaar
Summary: KDevelop Platform module for Bazaar support
Group: Development/Tools
Requires: kde4libs >= %{get_version kde4libs}
Requires: %name-libs = %serial:%version-%release
Requires: bzr

Conflicts: %{kdevplatform_other}-bazaar
# Only stable package replaces unstable counterpart
%if_stable Obsoletes: %{kdevplatform_other}-bazaar < %serial:%version-%release

%description bazaar
This package contains KDevelop platform module for Bazaar support

%package -n libkdevplatformtests4%pkg_sfx
Summary: KDevelop Platform tests framework
Group: Development/Tools
Requires: %name-libs = %serial:%version-%release
Requires: kde4libs >= %{get_version kde4libs}

Conflicts: libkdevplatformtests4%{pkg_sfx_other}
%if_stable Obsoletes: libkdevplatformtests4%{pkg_sfx_other} < %serial:%version-%release

# Drop previous -unstable

Conflicts: libkdevplatformtests4-unstable

%description -n libkdevplatformtests4%pkg_sfx
KDevPlatform tests framework.

%package devel
Summary: Development files for kdevplatform
Group: Development/C++

Conflicts: %{kdevplatform_other}-devel
%if_stable Obsoletes: %{kdevplatform_other}-devel < %serial:%version-%release

# Drop previous -unstable

Conflicts: kdevplatform-unstable-devel

Requires: %{kdevplatform}-libs = %serial:%version-%release
Requires: libkdevplatformtests4%pkg_sfx = %serial:%version-%release
%description devel
Development files for kdevplatform.

%prep
%setup -q -a 1 -n kdevplatform-%version
%if %post_version
%patch0 -p1
%endif
%patch1 -p1
cd po
%patch2 -p1
cd ..

cat >>CMakeLists.txt <<EOF

include(MacroOptionalAddSubdirectory)
macro_optional_add_subdirectory( po )
EOF

%build
%K4cmake
%K4make

%if_enabled apidox
make apidox
%endif


%install
%K4install
# remove all desktop_extragear-* translations, zerg at  told they aren't needed at all
find %buildroot -name 'desktop_extragear*.mo' -exec rm {} \;
%K4find_lang --output=%name.lang --with-kde          kdevappwizard

for m in \
kdevclassbrowser kdevcontextbrowser kdevdocumentswitcher kdevdocumentview \
kdevexecute kdevexecutescript kdevfilemanager kdevgenericprojectmanager \
kdevprojectdashboard kdevvcsprojectintegration kdevgrepview kdevkonsole \
kdevpatchreview kdevplatform kdevproblemreporter kdevprojectmanagerview \
kdevquickopen kdevsnippet kdevstandardoutputview kdevexternalscript \
kdevcodeutils kdevopenwith kdevpastebin kdevreviewboard kdevprojectfilter \
kdevfiletemplates kdevswitchtobuddy kdevtemplates_config kdevtestview
do
   %K4find_lang --output=%name.lang --with-kde --append $m
done

%K4find_lang --output=%name-subversion.lang --with-kde kdevsubversion
%K4find_lang --output=%name-git.lang --with-kde kdevgit
%K4find_lang --output=%name-cvs.lang --with-kde kdevcvs

%files -f %name.lang
%_K4bindir/*
%_K4lib/*.so
%exclude %_K4lib/kdevsubversion.so
%exclude %_K4lib/kdevgit.so
%exclude %_K4lib/kdevcvs.so
%exclude %_K4lib/kdevbazaar.so
%_K4plug/grantlee/*/*.so
%_K4lib/imports/org/kde/kdevplatform
%_K4apps/kdevelop
%_K4apps/kdevcodeutils
%_K4apps/kdevexternalscript
%_K4apps/kdevprojectmanagerview
%_K4apps/kdevstandardoutputview
%_K4apps/kdevfilemanager
%_K4apps/kdevquickopen
%_K4apps/kdevproblemreporter
%_K4apps/kdevcontextbrowser
%_K4apps/kdevsourceformatter
%_K4apps/kdevappwizard
%_K4apps/kdevclassbrowser
%_K4apps/kdevdebugger
%_K4apps/kdevdocumentswitcher
%_K4apps/kdevcodegen
%_K4apps/kdevpatchreview
%_K4apps/kdevdocumentview
%_K4apps/kdevgrepview
%_K4apps/kdevsession
%_K4apps/kdevsnippet
%_K4apps/kdevfiletemplates
%_K4apps/kdevtestview
%_K4apps/plasma/plasmoids/org.kdevelop.branches
%_K4srv/kdevquickopen.desktop
%_K4srv/kcm_kdev_uisettings.desktop
%_K4srv/kdevfilemanager.desktop
%_K4srv/kdevgenericmanager.desktop
%_K4srv/kdevkonsoleview.desktop
%_K4srv/kdevprojectmanagerview.desktop
%_K4srv/kdevsnippet.desktop
%_K4srv/kdevstandardoutputview.desktop
%_K4srv/kcm_kdev_envsettings.desktop
%_K4srv/kcm_kdev_bgsettings.desktop
%_K4srv/kcm_kdev_ccsettings.desktop
%_K4srv/kcm_kdev_projectsettings.desktop
%_K4srv/kdevproblemreporter.desktop
%_K4srv/kdevexecute.desktop
%_K4srv/kcm_kdevprojectfilter.desktop
%_K4srv/kdevprojectfilter.desktop
%_K4srv/kcm_kdevsourceformattersettings.desktop
%_K4srv/kdevcontextbrowser.desktop
%_K4srv/kcm_kdev_pluginsettings.desktop
%_K4srv/kdevappwizard.desktop
%_K4srv/kdevclassbrowser.desktop
%_K4srv/kdevdocumentswitcher.desktop
%_K4srv/kdevopenwith.desktop
%_K4srv/kdevpatchreview.desktop
%_K4srv/kdevdocumentview.desktop
%_K4srv/kdevgrepview.desktop
%_K4srv/kdevcodeutils.desktop
%_K4srv/kdevexternalscript.desktop
%_K4srv/kdevpastebin.desktop
%_K4srv/kdevreviewboard.desktop
%_K4srv/kdev-dash-projectfileelement.desktop
%_K4srv/kdevexecutescript.desktop
%_K4srv/kdevprojectdashboard.desktop
%_K4srv/kdevvcschangesview.desktop
%_K4srv/kdevelop-dashboard-branches.desktop
%_K4srv/kdevfiletemplates.desktop
%_K4srv/kdevtemplatemanager_config.desktop
%_K4srv/kdevtestview.desktop
%_K4srv/kdevswitchtobuddy.desktop
%_K4srvtyp/kdevelopplugin.desktop
%_K4iconsdir/hicolor/*/actions/run-clean.*
%_K4iconsdir/hicolor/*/actions/run-install.*
%_K4iconsdir/hicolor/*/apps/reviewboard.*
%_K4conf/kdevappwizard.knsrc
%_K4conf/kdevfiletemplates.knsrc

%files libs
%_K4libdir/libkdevplatforminterfaces.so.*
%_K4libdir/libkdevplatformlanguage.so.*
%_K4libdir/libkdevplatformoutputview.so.*
%_K4libdir/libkdevplatformproject.so.*
%_K4libdir/libkdevplatformshell.so.*
%_K4libdir/libkdevplatformutil.so.*
%_K4libdir/libkdevplatformvcs.so.*
%_K4libdir/libsublime.so.*
%_K4libdir/libkdevplatformdebugger.so.*
%_K4libdir/libkdevplatformdocumentation.so.*
%_K4libdir/libkdevplatformjsontests.so.*

%files -n libkdevplatformtests4%pkg_sfx
%_K4libdir/libkdevplatformtests.so.*

%files subversion -f %name-subversion.lang
%_K4srv/kdevsubversion.desktop
%_K4lib/kdevsubversion.so
%_K4iconsdir/hicolor/*/apps/subversion.*

%files git -f %name-git.lang
%_K4srv/kdevgit.desktop
%_K4lib/kdevgit.so
%_K4iconsdir/hicolor/*/apps/git.*

%files cvs -f %name-cvs.lang
%_K4srv/kdevcvs.desktop
%_K4lib/kdevcvs.so
%_K4apps/kdevcvs

%files bazaar
%_K4srv/kdevbazaar.desktop
%_K4lib/kdevbazaar.so
%_K4iconsdir/hicolor/*/apps/bazaar.*

%files devel
#%_K4apps/cmake/modules/FindKDevPlatform.cmake
%_K4libdir/cmake/kdevplatform/
%_K4includedir/kdevplatform
%_K4link/lib*.so

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin