]> git.pld-linux.org Git - packages/album.git/blobdiff - album.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/album.git] / album.spec
index e916cbf6c713f21a68374db27c86209b9c26190d..783c82b86666be759cc96974678833bf443f9065 100644 (file)
@@ -1,18 +1,16 @@
-%include       /usr/lib/rpm/macros.perl
 Summary:       HTML photo album generator
-Summary(pl):   Generator albumów foto
+Summary(pl.UTF-8):     Generator albumów fotograficznych w HTML-u
 Name:          album
-Version:       2.35
+Version:       4.07
 Release:       1
 License:       distributable
 Group:         Applications/Graphics
 Source0:       http://marginalhacks.com/bin/%{name}.tar.gz
-Patch0:                %{name}-OS.patch
+# Source0-md5: f607cb16da7c24b4deadb41bcb434fdc
 URL:           http://marginalhacks.com/Hacks/album/
-Buildarch:     noarch
 BuildRequires: rpm-perlprov >= 3.0.3-18
 Requires:      ImageMagick
-%requires_eq   perl
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -21,35 +19,42 @@ directory of images and creates all the thumbnails and HTML that you
 need. It's fast, easy to use, and very powerful.
 
 Features:
-    - You can use themes to choose or redesign the album "look and feel."
-    - Recursively descends directories to make a hierarchy of photo albums
-    - Maintains aspect ratio while constraining size of thumbnails
-
-%description -l pl
-
+- You can use themes to choose or redesign the album "look and feel."
+- Recursively descends directories to make a hierarchy of photo albums
+- Maintains aspect ratio while constraining size of thumbnails
+
+%description -l pl.UTF-8
+Generator albumów fotograficznych z obsługą motywów. Przyjmuje katalog
+ze zdjęciami i tworzy wszystkie potrzebne miniaturki oraz pliki HTML.
+Jest szybki, prosty w użyciu i ma duże możliwości.
+
+Możliwości:
+- pozwala na używanie motywów do wybrania lub zmiany "look and feel"
+  albumu
+- rekurencyjnie przegląda katalogi tworząc hierarchię albumów
+  fotograficznych
+- zachowuje proporcje przy ograniczaniu rozmiaru miniaturek.
 
 %prep
-%setup -qc %{name}-%{version}
-REAL_VERSION=`./album --version | awk '/album version/ { print $5 }'`
-if [ "$REAL_VERSION" != "%{version}" ] ; then
+%setup -q
+REAL_VERSION=`./album --version 2>&1 | grep '^This' | awk '/This\ is\ album/ { print $4 }'`
+if [ "$REAL_VERSION" != "v%{version}" ] ; then
        echo "Package/Source version mismatch!"
        exit 1
 fi
-%patch0 -p1
-
-%build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 
-install album caption_index  $RPM_BUILD_ROOT%{_bindir}
-cp -R Themes $RPM_BUILD_ROOT%{_datadir}/%{name}
+install album $RPM_BUILD_ROOT%{_bindir}
+install album.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
+%doc Docs/* License.txt
+%attr(755,root,root) %{_bindir}/album
+%{_mandir}/man1/album.1*
This page took 0.063534 seconds and 4 git commands to generate.