From: Jakub Bogusz Date: Mon, 5 Nov 2007 20:16:25 +0000 (+0000) Subject: - new X-Git-Tag: auto/th/PicasaWebDownloader-1_1-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2FPicasaWebDownloader.git;a=commitdiff_plain;h=ee1df370a99af28fc9067139bbc355b34c86e36d - new Changed files: PicasaWebDownloader-url.patch -> 1.1 PicasaWebDownloader.spec -> 1.1 --- ee1df370a99af28fc9067139bbc355b34c86e36d diff --git a/PicasaWebDownloader-url.patch b/PicasaWebDownloader-url.patch new file mode 100644 index 0000000..c8e9637 --- /dev/null +++ b/PicasaWebDownloader-url.patch @@ -0,0 +1,15 @@ +--- PicasaWebDownloader-1.1/Program.cs.orig 2007-08-20 14:10:44.000000000 +0200 ++++ PicasaWebDownloader-1.1/Program.cs 2007-11-05 21:06:28.238055228 +0100 +@@ -36,10 +36,10 @@ + static bool canonizePicasaUrl( string source, out Uri targetUri ) + { + Regex pattern = new Regex( +- @"^(http://picasaweb\.google\.com/" + ++ @"^(http://picasaweb\.google\.(\w|\.)+/" + + @"((?\w(\w|\.)+)/(?\w(\w|\.)+))" + + @"|(data/feed/base/user/(?\w(\w|\.)+)/album(?id)/(?\d+)))" + +- @"(\?.*(?authkey\=\w+))?", ++ @"(\?.*(?authkey\=(\w|-)+))?", + RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace ); + + string replacement = diff --git a/PicasaWebDownloader.spec b/PicasaWebDownloader.spec new file mode 100644 index 0000000..de92f27 --- /dev/null +++ b/PicasaWebDownloader.spec @@ -0,0 +1,43 @@ +Summary: PicasaWeb Downloader +Summary(pl.UTF-8): Narzędzie do ściągania albumów z serwisu PicasaWeb +Name: PicasaWebDownloader +Version: 1.1 +Release: 1 +License: WTFPL +Group: Applications/Graphics +Source0: http://www.tomergabel.com/content/binary/PicasaWebDownloader11.zip +# Source0-md5: 3edba3a4973fce37c884b286a7e3e567 +Patch0: %{name}-url.patch +URL: http://www.tomergabel.com/PicasaWeb+Downloader.aspx +BuildRequires: mono-csharp +Requires: mono +ExcludeArch: i386 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +PicasaWeb Downloader allows you to download albums from PicasaWeb site +without having to use (MS Windows-based) Picasa application. + +%description -l pl.UTF-8 +PicasaWeb Downloader pozwala ściągać albumy z serwisu PicasaWeb bez +potrzeby korzystania z aplikacji Picasa (przeznaczonej dla MS +Windows). + +%prep +%setup -q -c +%patch0 -p1 + +%build +gmcs -out:PicasaWebDownloader.exe Program.cs AssemblyInfo.cs + +%install +rm -rf $RPM_BUILD_ROOT + +install -D PicasaWebDownloader.exe $RPM_BUILD_ROOT%{_bindir}/PicasaWebDownloader.exe + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/PicasaWebDownloader.exe