File pws.spec of Package pws
#
# spec file for package pws (Version 0.3.1)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: pws
Version: 0.3.1
Release: 1
#
License: GPLv2
Group: Productivity/Security
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libgcrypt-devel libqt4-devel >= 4.3
#
Url: http://www.pwsafe.de/
Source: http://www.pwsafe.de/releases/unstable/pws-%{version}.tar.bz2
#
Summary: A fully compatible passwordsafe implementation
%description
pws aims to be a fully compatible passwordsafe implementation.
heart of the project is libpws, a general library for reading and
writing passwordsafe compatible files. currently passwordsafe files
format v2 and passwordsafe files format v3.2 are supported.
Authors:
--------
Timo Benk <tbenk@pwsafe.de>
%define library_name libpws0_1
%define debug_package_requires %{library_name} = %{version}-%{release}
%package -n %{library_name}
Group: Development/Libraries/C and C++
License: GPLv2
#
Summary: Shared library from pws
%description -n %{library_name}
pws aims to be a fully compatible passwordsafe implementation.
heart of the project is libpws, a general library for reading and
writing passwordsafe compatible files. currently passwordsafe files
format v2 and passwordsafe files format v3.2 are supported.
This package holds the shared library from pws.
Authors:
--------
Timo Benk <tbenk@pwsafe.de>
%package devel
Group: Development/Libraries/C and C++
License: GPLv3
Requires: %{library_name} = %{version}
#
Summary: Development files for libpws
%description devel
pws aims to be a fully compatible passwordsafe implementation.
heart of the project is libpws, a general library for reading and
writing passwordsafe compatible files. currently passwordsafe files
format v2 and passwordsafe files format v3.2 are supported.
This package holds the shared library from pws.
Authors:
--------
Timo Benk <tbenk@pwsafe.de>
%prep
%setup
%build
%configure
%{__make}
%install
%makeinstall STRIP="true"
%{__ln_s} -f libpws.so.0.1.3 %{buildroot}%{_libdir}/libpws.so.0.1
%{__ln_s} -f libpws.so.0.1 %{buildroot}%{_libdir}/libpws.so
%{__chmod} a-x %{buildroot}%{_includedir}/libpws/*.h
%clean
%{__rm} -rf %{buildroot}
%post -n %{library_name} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc misc/* README.txt CHANGELOG
%{_bindir}/pws
%files -n %{library_name}
%defattr(-,root,root,-)
%{_libdir}/libpws.so.*
%files devel
%defattr(-,root,root,-)
%{_libdir}/libpws.so
%{_includedir}/libpws/
%changelog