Accepting request 79593 from KDE:Distro:Factory
- Split kwrite doc package (fix for RPMLINT warning) - Removed redundant buildrequires - Cleaned up spec file formatting (forwarded request 79544 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/79593 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kate?expand=0&rev=5
This commit is contained in:
parent
616339adcd
commit
36b5ee1b29
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 18 13:13:04 UTC 2011 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Split kwrite doc package (fix for RPMLINT warning)
|
||||||
|
- Removed redundant buildrequires
|
||||||
|
- Cleaned up spec file formatting
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 8 07:56:03 UTC 2011 - mlin@suse.com
|
Mon Aug 8 07:56:03 UTC 2011 - mlin@suse.com
|
||||||
|
|
||||||
|
82
kate.spec
82
kate.spec
@ -11,12 +11,12 @@
|
|||||||
# case the license is the MIT License). An "Open Source License" is a
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: kate
|
Name: kate
|
||||||
Version: 4.7.0
|
Version: 4.7.0
|
||||||
Release: 3
|
Release: 3
|
||||||
@ -27,44 +27,43 @@ Group: Productivity/Editors/Other
|
|||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libkde4-devel
|
BuildRequires: libkde4-devel
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
Requires: libktexteditor = %{version}
|
Requires: libktexteditor = %{version}
|
||||||
Provides: kde4-kate = 4.3.0
|
Provides: kde4-kate = 4.3.0
|
||||||
Obsoletes: kde4-kate < 4.3.0
|
Obsoletes: kde4-kate < 4.3.0
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%kde4_runtime_requires
|
%kde4_runtime_requires
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Kate is an advanced text editor for KDE.
|
Kate is an advanced text editor for KDE.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch ppc64
|
%ifarch ppc64
|
||||||
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
||||||
%endif
|
%endif
|
||||||
%cmake_kde4 -d build
|
%cmake_kde4 -d build
|
||||||
%make_jobs
|
%make_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
cd build
|
||||||
%make_install
|
%make_install
|
||||||
%create_subdir_filelist -d kwrite
|
%suse_update_desktop_file kate TextEditor
|
||||||
%suse_update_desktop_file kate TextEditor
|
%suse_update_desktop_file ktesnippets_editor TextEditor
|
||||||
%suse_update_desktop_file ktesnippets_editor TextEditor
|
%suse_update_desktop_file kwrite TextEditor
|
||||||
%suse_update_desktop_file kwrite TextEditor
|
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
%kde_post_install
|
%kde_post_install
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
rm -rf filelists
|
rm -rf filelists
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Summary: Advanced Text Editor Development Headers
|
Summary: Advanced Text Editor Development Headers
|
||||||
@ -73,10 +72,10 @@ Requires: kate = %{version}
|
|||||||
Requires: libkde4-devel
|
Requires: libkde4-devel
|
||||||
Provides: kde4-kate-devel = 4.3.0
|
Provides: kde4-kate-devel = 4.3.0
|
||||||
Obsoletes: kde4-kate-devel < 4.3.0
|
Obsoletes: kde4-kate-devel < 4.3.0
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Files needed for development of Kate plugins.
|
Files needed for development of Kate plugins.
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_kde4_includedir}/kate/
|
%{_kde4_includedir}/kate/
|
||||||
@ -85,19 +84,19 @@ Files needed for development of Kate plugins.
|
|||||||
%{_kde4_libdir}/libkateinterfaces.so
|
%{_kde4_libdir}/libkateinterfaces.so
|
||||||
%{_kde4_libdir}/libkatepartinterfaces.so
|
%{_kde4_libdir}/libkatepartinterfaces.so
|
||||||
%{_kde4_libdir}/libktexteditor_*.so
|
%{_kde4_libdir}/libktexteditor_*.so
|
||||||
|
|
||||||
%package -n libktexteditor
|
%package -n libktexteditor
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Summary: Advanced Text Editor library
|
Summary: Advanced Text Editor library
|
||||||
Group: Productivity/Editors/Other
|
Group: Productivity/Editors/Other
|
||||||
|
|
||||||
%description -n libktexteditor
|
%description -n libktexteditor
|
||||||
The libraries shared by kwrite and kate editors.
|
The libraries shared by kwrite and kate editors.
|
||||||
|
|
||||||
%post -n libktexteditor -p /sbin/ldconfig
|
%post -n libktexteditor -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libktexteditor -p /sbin/ldconfig
|
%postun -n libktexteditor -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libktexteditor
|
%files -n libktexteditor
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config %{_kde4_configdir}/katepartpluginsrc
|
%config %{_kde4_configdir}/katepartpluginsrc
|
||||||
@ -116,15 +115,15 @@ The libraries shared by kwrite and kate editors.
|
|||||||
%{_kde4_modulesdir}/katepart.so
|
%{_kde4_modulesdir}/katepart.so
|
||||||
%{_kde4_modulesdir}/ktexteditor_*.so
|
%{_kde4_modulesdir}/ktexteditor_*.so
|
||||||
%{_kde4_servicesdir}/ktexteditor_*.desktop
|
%{_kde4_servicesdir}/ktexteditor_*.desktop
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config %{_kde4_configdir}/katefiletemplates.knsrc
|
%config %{_kde4_configdir}/katefiletemplates.knsrc
|
||||||
%config %{_kde4_configdir}/katemoderc
|
%config %{_kde4_configdir}/katemoderc
|
||||||
%config %{_kde4_configdir}/katerc
|
%config %{_kde4_configdir}/katerc
|
||||||
|
|
||||||
%exclude %{_kde4_modulesdir}/katepart.so
|
%exclude %{_kde4_modulesdir}/katepart.so
|
||||||
|
|
||||||
%{_datadir}/mime/packages/ktesnippets.xml
|
%{_datadir}/mime/packages/ktesnippets.xml
|
||||||
%{_kde4_applicationsdir}/kate.desktop
|
%{_kde4_applicationsdir}/kate.desktop
|
||||||
%{_kde4_applicationsdir}/ktesnippets_editor.desktop
|
%{_kde4_applicationsdir}/ktesnippets_editor.desktop
|
||||||
@ -143,7 +142,7 @@ The libraries shared by kwrite and kate editors.
|
|||||||
%{_kde4_servicesdir}/kate*.desktop
|
%{_kde4_servicesdir}/kate*.desktop
|
||||||
%{_kde4_servicesdir}/plasma-applet-katesession.desktop
|
%{_kde4_servicesdir}/plasma-applet-katesession.desktop
|
||||||
%{_kde4_servicetypesdir}/kateplugin.desktop
|
%{_kde4_servicetypesdir}/kateplugin.desktop
|
||||||
|
|
||||||
%package -n kwrite
|
%package -n kwrite
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Summary: KDE Text Editor
|
Summary: KDE Text Editor
|
||||||
@ -153,15 +152,34 @@ Provides: kdebase3:/opt/kde3/bin/kwrite
|
|||||||
Provides: kde4-kwrite = 4.3.0
|
Provides: kde4-kwrite = 4.3.0
|
||||||
Obsoletes: kde4-kwrite < 4.3.0
|
Obsoletes: kde4-kwrite < 4.3.0
|
||||||
%kde4_runtime_requires
|
%kde4_runtime_requires
|
||||||
|
|
||||||
%description -n kwrite
|
%description -n kwrite
|
||||||
KWrite is the default text editor of the K desktop environment.
|
KWrite is the default text editor of the K desktop environment.
|
||||||
|
|
||||||
|
%package -n kwrite-doc
|
||||||
|
License: GPLv2+
|
||||||
|
Summary: KDE Text Editor: Documentation
|
||||||
|
Group: Productivity/Editors/Other
|
||||||
|
Requires: kwrite = %{version}
|
||||||
|
|
||||||
|
%description -n kwrite-doc
|
||||||
|
KWrite is the default text editor of the K desktop environment.
|
||||||
|
|
||||||
|
This package contains the documentation for KWrite
|
||||||
|
|
||||||
%post -n kwrite -p /sbin/ldconfig
|
%post -n kwrite -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n kwrite -p /sbin/ldconfig
|
%postun -n kwrite -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n kwrite -f filelists/kwrite
|
%files -n kwrite
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%{_kde4_bindir}/kwrite
|
||||||
|
%{_kde4_libdir}/libkdeinit4_kwrite.so
|
||||||
|
%{_kde4_applicationsdir}/kwrite.desktop
|
||||||
|
%{_kde4_appsdir}/kwrite/
|
||||||
|
|
||||||
|
%files -n kwrite-doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc %lang(en) %{_kde4_htmldir}/en/kwrite/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user