b9cbca1
Name:           krecipes
5ec24a6
Version:        1.0
05d9c83
Release:        0.3.beta2%{?dist}
0dbba00
Summary:        Application to manage recipes and shopping-lists
b9cbca1
b9cbca1
Group:          Applications/Productivity
f6e9fbd
License:        GPLv2+
b9cbca1
URL:            http://krecipes.sourceforge.net/
5ec24a6
Source0:        http://download.sourceforge.net/krecipes/krecipes-%{version}-beta2.tar.gz
b9cbca1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b9cbca1
541c252
BuildRequires:  desktop-file-utils
541c252
BuildRequires:  gettext
541c252
BuildRequires:  kdelibs3-devel
541c252
BuildRequires:  sqlite-devel
210e8e2
BuildRequires:  mysql-devel
210e8e2
BuildRequires:  postgresql-devel
b9cbca1
b9cbca1
%description
0dbba00
Krecipes is a program that lets you to manage your recipes, create
0dbba00
shopping lists, choose a recipe based on available ingredients and plan
0dbba00
your menu/diet in advance.
0dbba00
b9cbca1
b9cbca1
%prep
5ec24a6
%setup -q -n %{name}-%{version}-beta2
b9cbca1
b9cbca1
%build
b9cbca1
unset QTDIR || : ; . /etc/profile.d/qt.sh
541c252
541c252
%configure \
541c252
  --disable-rpath \
210e8e2
  --with-mysql \
210e8e2
  --with-postgresql \
210e8e2
  --with-sqlite
541c252
b9cbca1
make %{?_smp_mflags}
b9cbca1
b9cbca1
b9cbca1
%install
b9cbca1
rm -rf $RPM_BUILD_ROOT
b9cbca1
make install DESTDIR=$RPM_BUILD_ROOT
b9cbca1
b9cbca1
desktop-file-install \
b9cbca1
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
b9cbca1
--vendor=fedora \
b9cbca1
--add-category=Application \
b9cbca1
--add-category=Utility \
b9cbca1
--add-category=KDE \
b9cbca1
--add-category=Qt \
b9cbca1
--delete-original \
b9cbca1
$RPM_BUILD_ROOT%{_datadir}/applnk/Utilities/krecipes.desktop
541c252
b9cbca1
## File lists
b9cbca1
# locale's
b9cbca1
%find_lang %{name} || touch %{name}.lang
b9cbca1
# HTML
b9cbca1
HTML_DIR=$(kde-config --expandvars --install html)
b9cbca1
if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then
b9cbca1
for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do
b9cbca1
   lang=$(basename $lang_dir)
b9cbca1
   echo "%lang($lang) %doc $HTML_DIR/$lang/*" >> %{name}.lang
b9cbca1
done
b9cbca1
fi
b9cbca1
b9cbca1
%clean
b9cbca1
rm -rf $RPM_BUILD_ROOT
b9cbca1
dd4c5a1
%post
dd4c5a1
touch --no-create %{_datadir}/icons/hicolor || :
fb4674b
touch --no-create %{_datadir}/icons/crystalsvg || :
dd4c5a1
dd4c5a1
%postun
dd4c5a1
touch --no-create %{_datadir}/icons/hicolor || :
fb4674b
touch --no-create %{_datadir}/icons/crystalsvg || :
dd4c5a1
b9cbca1
b9cbca1
%files -f %{name}.lang
b9cbca1
%defattr(-,root,root,-)
d537ed8
%doc TODO AUTHORS README COPYING ChangeLog
b9cbca1
%{_bindir}/krecipes
b9cbca1
%{_datadir}/applications/fedora-krecipes.desktop
b9cbca1
%{_datadir}/apps/krecipes
b9cbca1
%{_datadir}/icons/hicolor/*/apps/*
fb4674b
%{_datadir}/icons/crystalsvg/*/mimetypes/krecipes_file.png
fb4674b
%{_datadir}/mimelnk/*/*.desktop
b9cbca1
b9cbca1
%changelog
05d9c83
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.3.beta2
05d9c83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
05d9c83
060a2c2
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.2.beta2
060a2c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
060a2c2
5ec24a6
* Mon Aug 17 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-0.1.beta2
5ec24a6
- Update to 1.0beta2 as it fixes a crash that prevents krecipes from starting
5ec24a6
  with sqlite backend.
5ec24a6
3779366
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-12
3779366
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3779366
210e8e2
* Tue Jun 16 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.1-11
210e8e2
- re-enable mysql/postgresql support
210e8e2
- re-enable mostly harmless X11 patch 
210e8e2
3828354
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-10
3828354
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3828354
541c252
* Mon Mar 31 2008 Rex Dieter <rdieter@fedoraproject.org> - 0.9.1-9
541c252
- gcc43 patch (#433986)
541c252
- BR: gettext
541c252
- --without-mysql --without-postgresql
541c252
49a3aa1
* Thu Mar 13 2008 Dennis Gilmore <dennis@ausil.us> - 0.9.1-8
49a3aa1
- fix BuildRequires
49a3aa1
90803d2
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-7
90803d2
- Autorebuild for GCC 4.3
90803d2
f6e9fbd
* Wed Aug 29 2007 Dennis Gilmore <dennis@ausil.us> - 0.9.1-6
f6e9fbd
- rebuild for F8
f6e9fbd
- clarify license GPLv2+
f6e9fbd
7bbcd5e
* Sat Sep 02 2006 Dennis Gilmore <dennis@ausil.us> - 0.9.1-5
7bbcd5e
- rebuild for fc6
7bbcd5e
d34e20d
* Sat Feb 18 2006 Dennis Gilmore <dennis@ausil.us> - 0.9.1-4
d34e20d
-rebuild for fc5 
d34e20d
a81ba42
* Wed Dec 21 2005 Dennis Gilmore <dennis@ausil.us> - 0.9.1-3
a81ba42
-Rebuild for gcc 4.1
75ba40e
* Mon Dec 05 2005 Dennis Gilmore <dennis@ausil.us> - 0.9.1-2
75ba40e
- retag because patch wasnt uploaded
a93d525
* Sun Dec 04 2005 Dennis Gilmore <dennis@ausil.us> - 0.9.1-1
a93d525
- update to 0.9.1  this fixes a bug in mysql database creation
46cf3fc
* Sat Dec 03 2005 Dennis Gilmore <dennis@ausil.us> - 0.9-3
46cf3fc
- fix BuildRequies for libacl and add patch for X check.
46cf3fc
* Wed Nov 30 2005 Dennis Gilmore <dennis@ausil.us> - 0.9-2
fb4674b
- fix missing files
46cf3fc
* Wed Nov 30 2005 Dennis Gilmore <dennis@ausil.us> - 0.9-1
dc7c026
- update to 0.9
dd4c5a1
* Sat Oct 20 2005 Dennis Gilmore <dennis@ausil.us> - 0.8.1-3%{?dist}
dd4c5a1
- add BuildRequires desktop-file-utils  http://fedoraproject.org/wiki/QAChecklist
dd4c5a1
- add %post and %postun scriptlets  to notify of new icons per
dd4c5a1
- http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#implementation_notes
d537ed8
* Sat Jul 30 2005 <dennis@ausil.us> - 0.8.1-2%{?dist}
d537ed8
- Remove hard requirement for qt-MySQL and qt-Postgresql
d537ed8
- add exlicit QT lib and include dirs  for x86_64 build
d537ed8
- Fix summary to not read like a marketing ploy.
0dbba00
b9cbca1
* Sun Jul 24 2005 <dennis@ausil.us> - 0.8.1-1%{?dist}
b9cbca1
- Initial build