Name: kpassgen Version: 1.3 Release: 1%{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 %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 *Thu Dec 23 2010 siddharth Sharma - 1.3-1 - Initial Release 1