Mailinglist Archive: opensuse-packaging (107 mails)

< Previous Next >
Re: [opensuse-packaging] Need help by Fixing Bugreports
  • From: "Sascha 'saigkill' Manns" <samannsml@xxxxxxxxxxxxx>
  • Date: Wed, 13 May 2009 23:22:46 +0200
  • Message-id: <200905132322.48707@xxxxxxxxxxxxxxxxxxxxx>
Am Mittwoch 13 Mai 2009 22:33:22 schrieb oc2pus@xxxxxxxx:
Am Mittwoch, 13. Mai 2009 schrieb Sascha 'saigkill' Manns:
Hello Mates,

i've getted an Bugreport for my kde4-skrooge Package. But sadly i'm
on the End of my Knowledge. Has anyone an Idea?
The Report is: https://bugzilla.novell.com/show_bug.cgi?id=502553

in my packman package I worked around this problem with packaging
both *.so and *.so.* in the lib-pacakges (because I'm too lazy to fix
this ...)

and added a rule in rpmlintrc:
addFilter("devel-file-in-non-devel-package .*/lib.*.so")

from my spec-file:
....

%files -n libskgbankgui1
%defattr(-, root, root)
%{_libdir}/libskgbankgui.so
%{_libdir}/libskgbankgui.so.*

%files -n libskgbankmodeler1
%defattr(-, root, root)
%{_libdir}/libskgbankmodeler.so
%{_libdir}/libskgbankmodeler.so.*

%files -n libskgbasegui1
%defattr(-, root, root)
%{_libdir}/libskgbasegui.so
%{_libdir}/libskgbasegui.so.*

%files -n libskgbasemodeler1
%defattr(-, root, root)
%{_libdir}/libskgbasemodeler.so
%{_libdir}/libskgbasemodeler.so.*

Reason of the error: make install creates symlinks from libXXX.so to
libXXX.so.nr

the make install should create symlinks from libXXX.so.nr to
libXXX.so (the *.so is always only a symlink)

have fun
Toni
I'm using the following:
%files -n libskgbankgui1
%defattr(-, root, root)
%{_libdir}/libskgbankgui.so.*

%files -n libskgbankmodeler1
%defattr(-, root, root)
%{_libdir}/libskgbankmodeler.so.*

%files -n libskgbasegui1
%defattr(-, root, root)
%{_libdir}/libskgbasegui.so.*

%files -n libskgbasemodeler1
%defattr(-, root, root)
%{_libdir}/libskgbasemodeler.so.*

%files devel
%defattr(-, root, root)
%{_libdir}/libskgbankgui.so
%{_libdir}/libskgbankmodeler.so
%{_libdir}/libskgbasegui.so
%{_libdir}/libskgbasemodeler.so
%{_libdir}/kde4/plugins/designer/libskgbasegui.so

%files lang -f %{realname}.lang
%defattr(-, root, root)

Specfile added...
--
Sincereley yours

Sascha Manns
openSUSE Marketing Team
openSUSE Build Service
openSUSE Features Screening Team
Web: http://saschamanns.gulli.to
Project-Blog: http://lizards.opensuse.org/author/saigkill
Private-Blog: http://saschasbacktrace.blogspot.com
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# Packaged by: <saigkill@xxxxxxxxxxxx>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# # norootforbuild

%define realname skrooge
%define _prefix /usr

Name: kde4-%{realname}
Version: 0.2.8
Release: 1
License: GPLv3
BuildRequires: libkde4-devel libqt4-devel
BuildRequires: cmake fdupes libQtWebKit-devel doxygen
BuildRequires: qt-devel kdesdk4-scripts libqca2-devel
BuildRequires: sqlite-devel sqlite3-devel libofx-devel
BuildRequires: update-desktop-files
Requires: %{name}-lang = %{version}-%{release}
Requires: licenses kdebase4-runtime
Requires: libqt4-sql-sqlite
Requires: skgbankgui1 skgbankmodeler1 skgbasegui1 skgbasemodeler1
Source: %{realname}-%{version}.tar.bz2
Group: Productivity/Office/Finance
Summary: Skrooge is a personal finance management tool
Url: https://sourceforge.net/project/showfiles.php?group_id=222722
AutoReqProv: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%lang_package

%description
Skrooge is a personal finance management tool for KDE4, with
the aim of being highly intuitive, while providing powerful
functions such as graphics, persistent Undo/Redo, infinite
category levels, and much more...

%package -n libskgbankgui1
Summary: Shared library for Skrooge
Group: System/Libraries
Provides: skgbankgui1

%description -n libskgbankgui1
Skrooge is a personal finance management tool for KDE4, with
the aim of being highly intuitive, while providing powerful
functions such as graphics, persistent Undo/Redo, infinite
category levels, and much more...

%package -n libskgbankmodeler1
Summary: Shared library for Skrooge
Group: System/Libraries
Provides: skgbankmodeler1

%description -n libskgbankmodeler1
Skrooge is a personal finance management tool for KDE4, with
the aim of being highly intuitive, while providing powerful
functions such as graphics, persistent Undo/Redo, infinite
category levels, and much more...

%package -n libskgbasegui1
Summary: Shared library for Skrooge
Group: System/Libraries
Provides: skgbasegui1

%description -n libskgbasegui1
Skrooge is a personal finance management tool for KDE4, with
the aim of being highly intuitive, while providing powerful
functions such as graphics, persistent Undo/Redo, infinite
category levels, and much more...

%package -n libskgbasemodeler1
Summary: Shared library for Skrooge
Group: System/Libraries
Provides: skgbasemodeler1

%description -n libskgbasemodeler1
Skrooge is a personal finance management tool for KDE4, with
the aim of being highly intuitive, while providing powerful
functions such as graphics, persistent Undo/Redo, infinite
category levels, and much more...

%package devel
Summary: Shared library for Skrooge
Requires: kde4-skrooge = %{version}-%{release}
Group: Development/Languages/C and C++

%description devel
Skrooge is a personal finance management tool for KDE4, with
the aim of being highly intuitive, while providing powerful
functions such as graphics, persistent Undo/Redo, infinite
category levels, and much more...

%prep
%setup -q -n %{realname}-%{version}
%if %suse_version <= 1100
%__sed -i -e 's|License_GPL_V3|License_GPL_V2|g' skrooge/main.cpp
%endif

%build
export CFLAGS="%{optflags}"
export OBJCFLAGS="%{optflags}"
# %# cmake_kde4
cmake . \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
# -DCMAKE_SKIP_RPATH=YES
%make_jobs

%install
%__chmod +x po/listFiles.sh
%makeinstall %{?jobs:-j%{jobs}}

%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
%__install -m 644 %{realname}/ox128-apps-%{realname}.png \
%{buildroot}%{_datadir}/pixmaps/%{realname}.png

%suse_update_desktop_file %{realname} Finance
%kde_post_install
ln -sf %{_datadir}/doc/licenses/md5/$(md5sum COPYING | %__sed 's/ .*//') COPYING
%find_lang %{realname}
%fdupes -s %{buildroot}

find %{buildroot}

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%post -n libskgbankgui1 -p /sbin/ldconfig
%postun -n libskgbankgui1 -p /sbin/ldconfig

%post -n libskgbankmodeler1 -p /sbin/ldconfig
%postun -n libskgbankmodeler1 -p /sbin/ldconfig

%post -n libskgbasegui1 -p /sbin/ldconfig
%postun -n libskgbasegui1 -p /sbin/ldconfig

%post -n libskgbasemodeler1 -p /sbin/ldconfig
%postun -n libskgbasemodeler1 -p /sbin/ldconfig

%files
%defattr(-, root, root)
%{_bindir}/%{realname}
%{_datadir}/applications/kde4/%{realname}.desktop
%{_datadir}/mime/packages/x-skg.xml
%{_datadir}/pixmaps/%{realname}.png
%dir %{_libdir}/kde4
%dir %{_libdir}/kde4/plugins
%dir %{_libdir}/kde4/plugins/designer
%{_libdir}/kde4/%{realname}_*.so
%{_libdir}/kde4/plugins/designer/*.so.*
%{_datadir}/kde4/config.kcfg/%{realname}*.kcfg
%{_datadir}/kde4/services/%{realname}*.desktop
%{_datadir}/kde4/servicetypes/%{realname}*.desktop
%dir %{_datadir}/kde4/apps/%{realname}
%{_datadir}/kde4/apps/%{realname}/*
%dir %{_datadir}/kde4/apps/%{realname}_bookmark
%{_datadir}/kde4/apps/%{realname}_bookmark/*
%dir %{_datadir}/kde4/apps/%{realname}_categories
%{_datadir}/kde4/apps/%{realname}_categories/*
%dir %{_datadir}/kde4/apps/%{realname}_delete
%{_datadir}/kde4/apps/%{realname}_delete/*
%dir %{_datadir}/kde4/apps/%{realname}_file
%{_datadir}/kde4/apps/%{realname}_file/*
%dir %{_datadir}/kde4/apps/%{realname}_importexport
%{_datadir}/kde4/apps/%{realname}_importexport/*
%dir %{_datadir}/kde4/apps/%{realname}_monthly
%{_datadir}/kde4/apps/%{realname}_monthly/*
%dir %{_datadir}/kde4/apps/%{realname}_operation
%{_datadir}/kde4/apps/%{realname}_operation/*
%dir %{_datadir}/kde4/apps/%{realname}_print
%{_datadir}/kde4/apps/%{realname}_print/*
%dir %{_datadir}/kde4/apps/%{realname}_report
%{_datadir}/kde4/apps/%{realname}_report/*
%dir %{_datadir}/kde4/apps/%{realname}_scheduled
%{_datadir}/kde4/apps/%{realname}_scheduled/*
%dir %{_datadir}/kde4/apps/%{realname}_undoredo
%{_datadir}/kde4/apps/%{realname}_undoredo/*
%dir %{_datadir}/kde4/apps/%{realname}_unit
%{_datadir}/kde4/apps/%{realname}_unit/*
%{_datadir}/icons/*/*/actions/*.png
%{_datadir}/icons/*/*/actions/*.svgz
%{_datadir}/icons/*/*/apps/*.png
%{_datadir}/icons/*/*/apps/*.svgz
%{_datadir}/icons/*/*/mimetypes/*.png
# %#{_datadir}/icons/*/*/mimetypes/*.svg
%dir %{_datadir}/kde4/apps/skrooge_properties
%dir %{_datadir}/kde4/apps/skrooge_refund
%{_datadir}/kde4/apps/skrooge_properties/skrooge_properties.rc
%{_datadir}/kde4/apps/%{realname}_refund/%{realname}_refund.rc
# %#{_datadir}/icons/oxygen/scalable/mimetypes/skroogedocument.svgz
# %#{_datadir}/icons/oxygen/scalable/mimetypes/skroogedocument2.svgz
%{_datadir}/icons/oxygen/scalable/mimetypes/application-x-skg.svgz
%{_datadir}/icons/oxygen/scalable/mimetypes/application-x-skg2.svgz
%doc CHANGELOG COPYING README

%files -n libskgbankgui1
%defattr(-, root, root)
%{_libdir}/libskgbankgui.so.*

%files -n libskgbankmodeler1
%defattr(-, root, root)
%{_libdir}/libskgbankmodeler.so.*

%files -n libskgbasegui1
%defattr(-, root, root)
%{_libdir}/libskgbasegui.so.*

%files -n libskgbasemodeler1
%defattr(-, root, root)
%{_libdir}/libskgbasemodeler.so.*

%files devel
%defattr(-, root, root)
%{_libdir}/libskgbankgui.so
%{_libdir}/libskgbankmodeler.so
%{_libdir}/libskgbasegui.so
%{_libdir}/libskgbasemodeler.so
%{_libdir}/kde4/plugins/designer/libskgbasegui.so

%files lang -f %{realname}.lang
%defattr(-, root, root)

%changelog
< Previous Next >
Follow Ups