2014-09-25 21:10:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package libguytools2
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-09-25 23:29:01 +00:00
|
|
|
%define soname 2
|
2014-09-25 22:58:41 +00:00
|
|
|
Name: libguytools
|
2014-09-25 21:10:18 +00:00
|
|
|
%define base_name libguytools
|
|
|
|
Version: 2.0.2
|
|
|
|
Release: 0
|
|
|
|
Summary: A small programming toolbox, guymager is based on libguytools
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: Development/Libraries/Other
|
2014-09-25 23:29:01 +00:00
|
|
|
Source: http://downloads.sourceforge.net/project/libguytools/libguytools/LatestSource/tools-2.0.2.tar.gz
|
2014-09-25 21:10:18 +00:00
|
|
|
Url: http://guymager.sourceforge.net/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: qt-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
A small programming toolbox. Guymager is based on libguytools. Given the importance of testability, libguytools only provides a static library to link against. That way the user can test guymager and know that it is not linking to a library that may change over time.
|
|
|
|
|
|
|
|
%package devel
|
2014-09-25 23:29:01 +00:00
|
|
|
Summary: Development files for %{name}
|
2014-09-25 21:10:18 +00:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%package devel-static
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
The %{name}-devel package contains the static library for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2014-09-25 23:29:01 +00:00
|
|
|
%package -n %name%soname
|
|
|
|
Summary: Shared Library for %name
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
|
|
|
%description -n %name%soname
|
|
|
|
A small programming toolbox. Guymager is based on libguytools. Given the importance of testability, libguytools only provides a static library to link against. That way the user can test guymager and know that it is not linking to a library that may change over time.
|
|
|
|
|
2014-09-25 21:10:18 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n tools-%{version}
|
|
|
|
|
|
|
|
#build copied from the debian's rules file
|
|
|
|
|
|
|
|
%build
|
|
|
|
# Debian only
|
|
|
|
# ./create_version_file.sh
|
|
|
|
echo 'VERSION="%{version}"' > libguytools_version.pro.inc
|
|
|
|
qmake toolsstatic.pro
|
|
|
|
%{__make}
|
|
|
|
qmake tools.pro
|
|
|
|
%{__make}
|
|
|
|
|
|
|
|
%install
|
|
|
|
# rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
2014-09-25 23:29:01 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_includedir}/libguytools
|
2014-09-25 21:10:18 +00:00
|
|
|
cp -pPv lib/* $RPM_BUILD_ROOT%{_libdir}
|
2014-09-25 23:29:01 +00:00
|
|
|
cp -rp include/* $RPM_BUILD_ROOT%{_includedir}/libguytools
|
2014-09-25 21:10:18 +00:00
|
|
|
|
2014-09-25 23:29:01 +00:00
|
|
|
%post -n %{name}%soname -p /sbin/ldconfig
|
2014-09-25 21:10:18 +00:00
|
|
|
|
2014-09-25 23:29:01 +00:00
|
|
|
%postun -n %{name}%soname -p /sbin/ldconfig
|
2014-09-25 21:10:18 +00:00
|
|
|
|
2014-09-25 23:29:01 +00:00
|
|
|
%files -n %name%soname
|
2014-09-25 21:10:18 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%exclude %{_libdir}/libguytools.a
|
|
|
|
|
2014-09-25 23:29:01 +00:00
|
|
|
%files devel
|
2014-09-25 21:10:18 +00:00
|
|
|
%defattr(-,root,root,-)
|
2014-09-25 23:29:01 +00:00
|
|
|
%{_includedir}/libguytools/
|
2014-09-25 21:10:18 +00:00
|
|
|
%{_libdir}/libguytools.so
|
|
|
|
|
2014-09-25 23:29:01 +00:00
|
|
|
%files devel-static
|
2014-09-25 21:10:18 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libguytools.a
|
|
|
|
|
|
|
|
%changelog
|