From 711d67cbc74c8f14360f74144296c172652f2a64 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 25 Mar 2012 07:47:51 +0000 Subject: [PATCH] - added imgmax patch: add imgmax=d arg to get original size photos Changed files: PicasaWebDownloader-imgmax.patch -> 1.1 PicasaWebDownloader.spec -> 1.4 --- PicasaWebDownloader-imgmax.patch | 11 +++++++++++ PicasaWebDownloader.spec | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 PicasaWebDownloader-imgmax.patch diff --git a/PicasaWebDownloader-imgmax.patch b/PicasaWebDownloader-imgmax.patch new file mode 100644 index 0000000..b2db6ec --- /dev/null +++ b/PicasaWebDownloader-imgmax.patch @@ -0,0 +1,11 @@ +--- PicasaWebDownloader-1.2/Program.cs.orig 2008-09-11 18:10:26.000000000 +0200 ++++ PicasaWebDownloader-1.2/Program.cs 2012-03-25 09:46:04.956436678 +0200 +@@ -64,7 +64,7 @@ + /// corresponding Google data API URLs. + /// + const string GoogleAPIReplacementPattern = +- "http://picasaweb.google.${tld}/data/feed/api/user/${username}/album${qual}/${album}?kind=photo&${authkey}"; ++ "http://picasaweb.google.${tld}/data/feed/api/user/${username}/album${qual}/${album}?kind=photo&imgmax=d&${authkey}"; + + /// + /// A regular expression used to match counter suffixes ("(2)", "(3)" etc.) in filenames. diff --git a/PicasaWebDownloader.spec b/PicasaWebDownloader.spec index 604d648..c4f45f2 100644 --- a/PicasaWebDownloader.spec +++ b/PicasaWebDownloader.spec @@ -7,8 +7,11 @@ License: WTFPL Group: Applications/Graphics Source0: http://www.tomergabel.com/content/binary/PicasaWebDownloader12.zip # Source0-md5: e98b327af6fff08964aeb18fae1a0fc4 +Patch0: %{name}-imgmax.patch URL: http://www.tomergabel.com/PicasaWebDownloader.aspx BuildRequires: mono-csharp +BuildRequires: rpmbuild(macros) >= 1.566 +BuildRequires: sed >= 4.0 BuildRequires: unzip Requires: mono ExcludeArch: i386 @@ -25,6 +28,8 @@ Windows). %prep %setup -q -c +%undos Program.cs +%patch0 -p1 %build gmcs -out:PicasaWebDownloader.exe Program.cs AssemblyInfo.cs -- 2.43.0