* Tue Aug 14 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.92.0-4

- -devel: omit most (hopefully) extraneous Requires:
- use macros.kde4
- -devel: Conflicts: kdelibs-devel (in %_bindir,%_libdir)
- License clarification
This commit is contained in:
Rex Dieter 2007-08-16 16:05:09 +00:00
parent ee3ec1bef4
commit c4334edadb
1 changed files with 78 additions and 57 deletions

View File

@ -1,4 +1,7 @@
# TODO:
# 1. package some noarch bits separately: apidocs, oxygen(icons).
Summary: K Desktop Environment 4 - Libraries Summary: K Desktop Environment 4 - Libraries
Version: 3.92.0 Version: 3.92.0
Release: 4%{?dist} Release: 4%{?dist}
@ -12,16 +15,20 @@ Provides: kdelibs4 = %{version}-%{release}
Name: kdelibs4 Name: kdelibs4
%endif %endif
# FIXME/TODO: there appear to be bits of ARTISTIC, BSD, GPLv2, GFDL (and QPL?) too -- Rex # LGPLv2: everything, except (see below)
License: LGPLv2 # BSD: kdoctools/
# GFDL: kdoctools/customization ?
License: LGPLv2 and BSD
URL: http://www.kde.org/ URL: http://www.kde.org/
Group: System Environment/Libraries Group: System Environment/Libraries
Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/kdelibs-%{version}.tar.bz2 Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/kdelibs-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# for macros.kde4
BuildRequires: kde-filesystem BuildRequires: kde-filesystem
Requires: hicolor-icon-theme Requires: hicolor-icon-theme
Requires: kde-filesystem Requires: kde-filesystem
%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
Requires: shared-mime-info Requires: shared-mime-info
#Requires: kde4-settings #Requires: kde4-settings
@ -29,6 +36,7 @@ Requires: shared-mime-info
Patch0: kdelibs-%{version}-kde4home.diff Patch0: kdelibs-%{version}-kde4home.diff
# purpose of this patch? -- Rex # purpose of this patch? -- Rex
Patch1: kdelibs-3.92.0-conflict-kde3.patch Patch1: kdelibs-3.92.0-conflict-kde3.patch
Source1: kde4.sh Source1: kde4.sh
Source2: kde4.csh Source2: kde4.csh
@ -72,18 +80,21 @@ Also, the API and ABI are NOT fully stable yet (soft freeze only).
Group: Development/Libraries Group: Development/Libraries
Summary: Header files for compiling KDE 4 applications Summary: Header files for compiling KDE 4 applications
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%if "%{name}" != "kdelibs4" %if "%{name}" == "kdelibs4"
# Yes, we still have conflicts, in _bindir, _libdir
Conflicts: kdelibs-devel
%else
Obsoletes: kdelibs4-devel < %{version}-%{release} Obsoletes: kdelibs4-devel < %{version}-%{release}
Provides: kdelibs4-devel = %{version}-%{release} Provides: kdelibs4-devel = %{version}-%{release}
%endif %endif
Requires: qt4-devel Requires: qt4-devel
# FIXME/TODO: trim these down -- Rex Requires: openssl-devel
Requires: libxslt-devel aspell-devel giflib-devel ## FIXME/TODO: trim these down -- Rex
Requires: libpng-devel bzip2-devel openssl-devel libacl-devel gettext-devel #Requires: libxslt-devel aspell-devel giflib-devel
Requires: libtiff-devel pcre-devel libxml2-devel cups-devel libjpeg-devel #Requires: libpng-devel bzip2-devel libacl-devel gettext-devel
Requires: zlib-devel krb5-devel libattr-devel gamin-devel strigi-devel #Requires: libtiff-devel pcre-devel libxml2-devel cups-devel libjpeg-devel
Requires: alsa-lib-devel avahi-devel #Requires: zlib-devel krb5-devel libattr-devel gamin-devel strigi-devel
#Requires: alsa-lib-devel avahi-devel
%description devel %description devel
This package includes the header files you will need to compile This package includes the header files you will need to compile
applications for KDE 4. applications for KDE 4.
@ -102,10 +113,10 @@ Also, the API and ABI are NOT fully stable yet (soft freeze only).
mkdir -p %{_target_platform} mkdir -p %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
%cmake_kde4 .. %cmake_kde4 ..
popd popd
make %{?_smp_mflags} -C %{_target_platform} make %{?_smp_mflags} -C %{_target_platform} VERBOSE=1
# FIXME/TODO: apidocs # FIXME/TODO: apidocs
# doc/api/doxygen.sh --doxdatadir=doc/common . # doc/api/doxygen.sh --doxdatadir=doc/common .
@ -117,22 +128,27 @@ rm -rf %{buildroot}
make install DESTDIR=%{buildroot} -C %{_target_platform} make install DESTDIR=%{buildroot} -C %{_target_platform}
# see also use-of/patching of XDG_MENU_PREFIX in kdebase # see also use-of/patching of XDG_MENU_PREFIX in kdebase
mv %{buildroot}%{_sysconfdir}/xdg/menus/applications.menu \ mv %{buildroot}%{_kde4_sysconfdir}/xdg/menus/applications.menu \
%{buildroot}%{_sysconfdir}/xdg/menus/kde4-applications.menu %{buildroot}%{_kde4_sysconfdir}/xdg/menus/kde4-applications.menu
# Unpackaged files ## unpackaged files
rm -rf %{buildroot}%{_datadir}/icons/hicolor rm -rf %{buildroot}%{_kde4_iconsdir}/hicolor
# omit gigantic oxygen scalable/svg icons, for now -- Rex
#rm -f %{buildroot}%{_kde4_iconsdir}/oxygen/scalable/*/* ||:
find %{buildroot}%{_kde4_iconsdir}/oxygen/scalable -name "*.svgz" | xargs --no-run-if-empty rm -fv
# omit emoticons, which conflict with kdelibs3 (for now) -- Rex
rm -rf %{buildroot}%{_datadir}/emoticons
%post %post
/sbin/ldconfig ||: /sbin/ldconfig ||:
%{_bindir}/xdg-icon-resource forceupdate --theme oxygen 2> /dev/null || : %{_kde4_bindir}/xdg-icon-resource forceupdate --theme oxygen 2> /dev/null || :
%{_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || : %{_kde4_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || :
%postun %postun
/sbin/ldconfig ||: /sbin/ldconfig ||:
%{_bindir}/xdg-icon-resource forceupdate --theme oxygen 2> /dev/null || : %{_kde4_bindir}/xdg-icon-resource forceupdate --theme oxygen 2> /dev/null || :
%{_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || : %{_kde4_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || :
%clean %clean
@ -143,53 +159,58 @@ rm -rf %{buildroot}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS README TODO %doc AUTHORS README TODO
%doc COPYING COPYING-DOCS COPYING.LIB %doc COPYING COPYING-DOCS COPYING.LIB
%{_bindir}/* %{_kde4_bindir}/*
%exclude %{_bindir}/checkXML %exclude %{_kde4_bindir}/checkXML
%exclude %{_bindir}/kconfig_compiler %exclude %{_kde4_bindir}/kconfig_compiler
%exclude %{_bindir}/ksvgtopng %exclude %{_kde4_bindir}/ksvgtopng
%exclude %{_bindir}/kunittestmodrunner %exclude %{_kde4_bindir}/kunittestmodrunner
%{_kde4_appsdir}/*
# kdewidgets # kdewidgets
%exclude %{_bindir}/makekdewidgets %exclude %{_kde4_bindir}/makekdewidgets
%exclude %{_datadir}/apps/kdewidgets/ %exclude %{_kde4_appsdir}/kdewidgets/
%exclude %{_libdir}/kde4/plugins/designer/kdewidgets.* %exclude %{_kde4_libdir}/kde4/plugins/designer/kdewidgets.*
%{_datadir}/apps/* # ksgmltools2
%exclude %{_datadir}/apps/ksgmltools2/ %exclude %{_kde4_appsdir}/ksgmltools2/
%{_datadir}/config/* %{_kde4_configdir}/*
%{_datadir}/dbus-1/interfaces/* %{_datadir}/dbus-1/interfaces/*
%{_datadir}/emoticons/* %{_kde4_datadir}/mime/packages/*
%{_datadir}/kde4/* %{_kde4_iconsdir}/oxygen/
# consider omitting (or packaging separately) scalable icons, since they take ~60% of the space -- Rex #{_kde4_sharedir}/emoticons/*
%{_datadir}/icons/oxygen/ %{_kde4_sharedir}/locale/all_languages/
%{_datadir}/locale/all_languages/ %{_kde4_sharedir}/kde4/services/*
%{_datadir}/mime/packages/* %{_kde4_sharedir}/kde4/servicetypes/*
%dir %{_datadir}/doc/HTML %{_kde4_docdir}/HTML/en/*
%dir %{_datadir}/doc/HTML/en %{_kde4_libdir}/lib*.so.*
%{_datadir}/doc/HTML/en/* %{_kde4_libdir}/libkdeinit4_*.so
%{_libdir}/lib*.so.* %{_kde4_libdir}/kde4/
%{_libdir}/libkdeinit4_*.so %{_kde4_sysconfdir}/xdg/menus/*.menu
%{_libdir}/kde4/
%{_sysconfdir}/xdg/menus/*applications.menu
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc KDE4PORTING.html %doc KDE4PORTING.html
%{_bindir}/checkXML %{_kde4_bindir}/checkXML
%{_bindir}/kconfig_compiler %{_kde4_bindir}/kconfig_compiler
%{_bindir}/ksvgtopng %{_kde4_bindir}/ksvgtopng
%{_bindir}/kunittestmodrunner %{_kde4_bindir}/kunittestmodrunner
%{_bindir}/makekdewidgets %{_kde4_bindir}/makekdewidgets
%{_bindir}/makekdewidgets %{_kde4_bindir}/makekdewidgets
%{_datadir}/apps/kdewidgets/ %{_kde4_appsdir}/kdewidgets/
%dir %{_libdir}/kde4/plugins/designer %dir %{_kde4_libdir}/kde4/plugins/designer
%{_libdir}/kde4/plugins/designer/kdewidgets.* %{_kde4_libdir}/kde4/plugins/designer/kdewidgets.*
%{_datadir}/apps/ksgmltools2/ %{_kde4_appsdir}/ksgmltools2/
%{_includedir}/ %{_kde4_includedir}/*
%{_libdir}/lib*.so %{_kde4_libdir}/lib*.so
%exclude %{_libdir}/libkdeinit4_*.so %exclude %{_kde4_libdir}/libkdeinit4_*.so
%changelog %changelog
* Tue Aug 14 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.92.0-4
- -devel: omit most (hopefully) extraneous Requires:
- use macros.kde4
- -devel: Conflicts: kdelibs-devel (in %%_bindir,%%_libdir)
- License clarification
* Fri Aug 03 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.92.0-3 * Fri Aug 03 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.92.0-3
- name kdelibs4, don't mess with %%_prefix (for now) - name kdelibs4, don't mess with %%_prefix (for now)
- move to -devel: checkXML, kconfig_compiler, (make)kdewidgets, ksgmltools2, - move to -devel: checkXML, kconfig_compiler, (make)kdewidgets, ksgmltools2,