]> git.pld-linux.org Git - packages/compupic.git/blobdiff - compupic.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/compupic.git] / compupic.spec
index 5a52cf8da6811b251a520c51bd8ea1d130a9822f..d30fca41b95ec98c931073a07e4ec8c5ba3c047f 100644 (file)
@@ -1,15 +1,15 @@
 Summary:       A commercial picture browsing tool
 Summary:       A commercial picture browsing tool
-Summary(pl):   Komercyjna aplikacja do przegl±dania obrazków
+Summary(pl.UTF-8):     Komercyjna aplikacja do przeglądania obrazków
 Name:          compupic
 Version:       5.1.1063
 Name:          compupic
 Version:       5.1.1063
-Release:       2
+Release:       3
 License:       Proprietary (Free for non-business use. Busines use requires registration.)
 Group:         X11/Applications/Multimedia
 Source0:       http://www.photodex.com/files.system/linux/%{name}-%{version}-i386-Linux.tar.gz
 # Source0-md5: 7c4c1f042cfef63055de960933d7a19c
 Source1:       %{name}.desktop
 URL:           http://www.photodex.com/products/compupic/index.html
 License:       Proprietary (Free for non-business use. Busines use requires registration.)
 Group:         X11/Applications/Multimedia
 Source0:       http://www.photodex.com/files.system/linux/%{name}-%{version}-i386-Linux.tar.gz
 # Source0-md5: 7c4c1f042cfef63055de960933d7a19c
 Source1:       %{name}.desktop
 URL:           http://www.photodex.com/products/compupic/index.html
-BuildRequires: perl-base
+BuildRequires: sed >= 4.0
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -18,32 +18,32 @@ The fastest, easiest to use software for browsing and viewing
 pictures. CompuPic gives you unmatched performance paired with a full
 set of features for editing, sharing, and using your digital content.
 
 pictures. CompuPic gives you unmatched performance paired with a full
 set of features for editing, sharing, and using your digital content.
 
-%description -l pl
-Najszybsze i naj³atwiejsze w u¿yciu narzêdzie do przegl±dania i
-podgl±du obrazków. CompuPic daje nieporównywaln± wydajno¶æ po³±czon± z
-pe³n± gam± mo¿liwo¶ci edycji, udostêpniania oraz u¿ywania cyfrowych
-zasobów.
+%description -l pl.UTF-8
+Najszybsze i najłatwiejsze w użyciu narzędzie do przeglądania i
+podglądu obrazków. CompuPic daje nieporównywalną wydajność połączoną z
+pełną gamą możliwości edycji, udostępniania oraz używania cyfrowych
+zasobów.
 
 %prep
 %setup -q -n %{name}-%{version}-i386-Linux
 > install.sh
 
 %prep
 %setup -q -n %{name}-%{version}-i386-Linux
 > install.sh
+mkdir -p compupic
+tar xf compupic.tar -C compupic
+mv compupic/compupic.1 .
+mv compupic/LICENSE .
+mv compupic/README .
+mv compupic/*.xpm .
+%{__sed} -i -e 's/libn/FOOB/g;s/nss/FOO/g' compupic/compupic
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/compupic,%{_pixmapsdir},%{_desktopdir}}
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/compupic,%{_pixmapsdir},%{_desktopdir}}
 
-tar xf compupic.tar -C $RPM_BUILD_ROOT%{_datadir}/compupic
-mv -f $RPM_BUILD_ROOT%{_datadir}/compupic/compupic.1 $RPM_BUILD_ROOT%{_mandir}/man1
-mv $RPM_BUILD_ROOT%{_datadir}/compupic/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
-mv $RPM_BUILD_ROOT%{_datadir}/compupic/LICENSE .
-mv $RPM_BUILD_ROOT%{_datadir}/compupic/README .
-cd $RPM_BUILD_ROOT%{_datadir}/compupic
-%{__perl} -pi -e 's/libn/FOOB/g' compupic
-%{__perl} -pi -e 's/nss/FOO/g' compupic
-ln compupic ../../bin/compupic
-cd -
-
-install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+cp -a compupic/* $RPM_BUILD_ROOT%{_datadir}/compupic
+cp -a compupic.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -a *.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+ln -s %{_datadir}/compupic/compupic $RPM_BUILD_ROOT%{_bindir}/compupic
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -53,7 +53,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc README LICENSE
 %attr(755,root,root) %{_bindir}/compupic
 %dir %{_datadir}/compupic
 %doc README LICENSE
 %attr(755,root,root) %{_bindir}/compupic
 %dir %{_datadir}/compupic
-# XXX: it can't be in %{_datadir}
+# XXX: x86 binary can't be in %{_datadir}
 %attr(755,root,root) %{_datadir}/compupic/compupic
 %doc %{_datadir}/compupic/english
 %doc %{_datadir}/compupic/web
 %attr(755,root,root) %{_datadir}/compupic/compupic
 %doc %{_datadir}/compupic/english
 %doc %{_datadir}/compupic/web
This page took 0.096026 seconds and 4 git commands to generate.