Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
support soversion on the packaging level
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
  • Loading branch information
Denis Zalevskiy committed Oct 22, 2015
1 parent 75a996d commit 2ebe73b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 13 deletions.
1 change: 1 addition & 0 deletions qtaround-1.pc.in
Expand Up @@ -5,5 +5,6 @@ includedir=${prefix}/include
Name: qtaround
Description: qtaround library
Version: @VERSION@
Requires.private: cor >= 0.1.17
Libs: -lqtaround -L${libdir}
Cflags: -I${includedir}
1 change: 1 addition & 0 deletions qtaround-dbus.pc.in
Expand Up @@ -5,5 +5,6 @@ includedir=${prefix}/include
Name: qtaround-dbus
Description: qtaround-dbus library
Version: @VERSION@
Requires.private: cor >= 0.1.17, qtaround = @VERSION@
Libs: -lqtaround-dbus -L${libdir}
Cflags: -I${includedir}
1 change: 1 addition & 0 deletions qtaround.pc.in
Expand Up @@ -5,5 +5,6 @@ includedir=${prefix}/include
Name: qtaround
Description: qtaround library
Version: @VERSION@
Requires.private: cor >= 0.1.17
Libs: -lqtaround -L${libdir}
Cflags: -I${includedir} -DQTAROUND_NO_NS
39 changes: 26 additions & 13 deletions rpm/qtaround.spec
Expand Up @@ -5,7 +5,7 @@ Name: qtaround
Version: 0.0.0
Release: 1
License: LGPL21
Group: Development/Liraries
Group: System/Libraries
URL: https://github.com/nemomobile/qtaround
Source0: %{name}-%{version}.tar.bz2
BuildRequires: cmake >= 2.8
Expand All @@ -19,37 +19,46 @@ Requires(postun): /sbin/ldconfig
QtAround library used to port the-vault to C++. Mostly consists of
thin wrappers around Qt classes and standard Linux utilities.

%package -n libqtaround2
Group: System/Libraries
Summary: QtAround library
Provides: libqtaround = %{version}-%{release}
Obsoletes: libqtaround < %{version}
%description -n libqtaround2
%summary

%package devel
Summary: QtAround library
Group: Development/Libraries
Requires: qtaround = %{version}-%{release}
Requires: libqtaround2 = %{version}
Requires: pkgconfig(cor) >= 0.1.17
%description devel
QtAround library used to port the-vault to C++. Mostly consists of
thin wrappers around Qt classes and standard Linux utilities.

%package dbus
Summary: QtAround D-Bus wrappers
Group: Development/Libraries
Requires: qtaround = %{version}-%{release}
Requires: libqtaround2 = %{version}
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
%description dbus
QtAround library: D-Bus wrappers

%package dbus-devel
Summary: QtAround D-Bus development files
Group: Development/Libraries
Requires: qtaround = %{version}-%{release}
Requires: qtaround-dbus = %{version}-%{release}
Requires: qtaround-devel = %{version}-%{release}
Requires: libqtaround2 = %{version}
Requires: qtaround-dbus = %{version}
Requires: qtaround-devel = %{version}
%description dbus-devel
%{summary}

%package tests
Summary: Tests for qtaround
License: LGPLv2.1
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-dbus = %{version}-%{release}
Requires: %{name} = %{version}
Requires: %{name}-dbus = %{version}
%if %{undefined suse_version}
Requires: btrfs-progs
%else
Expand All @@ -72,12 +81,14 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT

%files
%files -n libqtaround2
%defattr(-,root,root,-)
%{_libdir}/libqtaround.so*
%{_libdir}/libqtaround.so.2
%{_libdir}/libqtaround.so.%{version}

%files devel
%defattr(-,root,root,-)
%{_libdir}/libqtaround.so
%{_libdir}/pkgconfig/qtaround.pc
%{_libdir}/pkgconfig/qtaround-1.pc
%{_includedir}/qtaround/debug.hpp
Expand All @@ -91,19 +102,21 @@ rm -rf $RPM_BUILD_ROOT

%files dbus
%defattr(-,root,root,-)
%{_libdir}/libqtaround-dbus.so*
%{_libdir}/libqtaround-dbus.so.0
%{_libdir}/libqtaround-dbus.so.%{version}

%files dbus-devel
%defattr(-,root,root,-)
%{_libdir}/libqtaround-dbus.so
%{_libdir}/pkgconfig/qtaround-dbus.pc
%{_includedir}/qtaround/dbus.hpp

%files tests
%defattr(-,root,root,-)
/opt/tests/qtaround/*

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

%post dbus -p /sbin/ldconfig
%postun dbus -p /sbin/ldconfig

0 comments on commit 2ebe73b

Please sign in to comment.