Name: cpm Version: 0.23 Release: 0.1.beta%{?dist} Summary: Console Password Manager Group: Applications/Databases License: GPLv2+ URL: http://www.harry-b.de/dokuwiki/doku.php?id=harry:cpm Source0: http://dl.sf.net/%{name}/%{name}-%{version}beta.tar.gz Source1: cpm.pod Patch0: cpm-0.23beta-make.patch Patch1: cpm-0.23beta-disclaimer.patch Patch2: cpm-0.23beta-sigint.patch Patch3: cpm-0.23beta-open.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cracklib-devel, cracklib-dicts BuildRequires: gpgme-devel BuildRequires: cdk-devel BuildRequires: dotconf-devel BuildRequires: ncurses-devel BuildRequires: libxml2-devel >= 2.6.16, BuildRequires: zlib-devel BuildRequires: gettext %description CPM is a ncurses based console tool to manage passwords and store them public key encrypted in a file - even for more than one person. The encryption is handled via GnuPG so the programs data can be accessed via gpg as well, in case you want to have a look inside. The data is stored as as zlib compressed XML so it’s even possible to reuse the data for some other purpose. %prep %setup -q -n %{name}-%{version}beta %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 for file in docs/changelog docs/ChangeLog docs/cpm.txt docs/GPLv2 docs/README; do mv $file timestamp iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp touch -r timestamp $file done %build %configure --with-crack-dict=%{_libdir}/cracklib_dict CFLAGS="-I/usr/include/cdk/ %{optflags}" make %{?_smp_mflags} pod2man --release=%{name}-%{version}beta --center="%{summary}" --name=%{name} %{SOURCE1} ./docs/cpm.1 %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT mandir="%{_mandir}" install -D -p -m 644 conf/cpmrc-default $RPM_BUILD_ROOT%{_sysconfdir}/cpmrc %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc conf/cpmrc-default docs/ChangeLog docs/changelog docs/GPLv2 docs/README ./share/cpm/* %attr (4755,root,root) %{_bindir}/cpm %config(noreplace) %{_sysconfdir}/cpmrc %{_mandir}/man1/cpm* %changelog * Mon Jan 5 2009 Marek Mahut - 0.23beta-1 - Initial build