Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 23e865860feb38d6f8d5a8a3989996fc > files > 3

kpassgen-1.3-3.fc15.src.rpm

Name: kpassgen
Version: 1.3
Release: 3%{dist}
Summary: Random password creator

Group: Applications/System
License: GPLv2
URL: http://kde-apps.org/content/show.php/KPassGen?content=108673
Source0: http://sourceforge.net/projects/kpassgen/files/1.x/kpassgen-%{version}.tar.gz
Source1: kpassgen.png
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: kdelibs4-devel cmake make qt-devel desktop-file-utils
Requires: qt qt-x11

%description
Generates a set of random passwords of any length that can include the letter
a-z,A-Z,numbers,symbols and characters that QString can handle or hex values

%prep
%setup -q -n kpassgen

%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} .. -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed"
popd
make %{?_smp_mflags} -C %{_target_platform}

%install
rm -rf %{buildroot}
make install/fast -C %{_target_platform} DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
desktop-file-validate %{buildroot}/%{_datadir}/applications/kde4/kpassgen.desktop

%clean
rm -rf %{buildroot}

%post
touch --no-create %{_datadir}/pixmaps &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/pixmaps &>/dev/null
gtk-update-icon-cache %{_datadir}/pixmaps &>/dev/null || :
fi

%posttrans
gtk-update-icon-cache %{_datadir}/pixmaps &>/dev/null || :

%files
%defattr(-,root,root,-)
%doc COPYING
%{_kde4_bindir}/kpassgen
%{_kde4_datadir}/applications/kde4/kpassgen.desktop
%{_kde4_datadir}/config.kcfg/*.kcfg
%{_kde4_datadir}/kde4/apps/kpassgen/kpassgenui.rc
%{_datadir}/pixmaps/%{name}.png
%changelog
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild


* Sat Jan 29 2011 siddharth Sharma <siddharths@fedoraproject.org> - 1.3-2
 - Build Require fix and Require fix
 - BuildRequires: desktop-file-utils
 - Requires: qt qt-x11

* Thu Dec 23 2010 siddharth Sharma <siddharths@fedoraproject.org> - 1.3-1
 - Initial Release 1