]> git.pld-linux.org Git - packages/compupic.git/blob - compupic.spec
- works tx to fixes from rpm in the evil and dark past
[packages/compupic.git] / compupic.spec
1 Summary:        A commercial picture browsing tool.
2 Summary(pl):    Komercyjna aplikacja do przegl±dania obrazków
3 Name:           compupic
4 Version:        5.1.1063
5 Release:        2
6 ##License:      Proprietary (Free for non-business use. Busines use requires registration.)
7 Copyright:      Photodex Corporation
8 Group:          X11/Applications/Multimedia
9 Source0:        http://www.photodex.com/files.system/linux/%{name}-%{version}-i386-Linux.tar.gz 
10 # NoSource0-md5: 7c4c1f042cfef63055de960933d7a19c
11 NoSource:       0
12 URL:            http://www.photodex.com/products/compupic/index.html
13 BuildRequires:  coreutils
14 ExclusiveArch:  %{ix86}
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 The fastest, easiest to use software for browsing and viewing pictures. 
19 CompuPic gives you unmatched performance paired with a full set of 
20 features for editing, sharing, and using your digital content
21
22 %description -l pl
23 Najszybsze i naj³atwiejsze w u¿yciu narzêdzie do przegl±dania i podgl±du
24 obrazków. 
25
26 %prep
27 %setup -q -n compupic-5.1.1063-i386-Linux
28 > install.sh
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 # create directories if necessary
33 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/compupic,%{_pixmapsdir},%{_desktopdir}}
34
35 tar xf compupic.tar -C $RPM_BUILD_ROOT%{_datadir}/compupic
36 mv -f $RPM_BUILD_ROOT%{_datadir}/compupic/compupic.1 $RPM_BUILD_ROOT%{_mandir}/man1/
37 mv $RPM_BUILD_ROOT%{_datadir}/compupic/*.xpm    $RPM_BUILD_ROOT%{_pixmapsdir}/
38 mv $RPM_BUILD_ROOT%{_datadir}/compupic/LICENSE ./
39 mv $RPM_BUILD_ROOT%{_datadir}/compupic/README ./
40 cd $RPM_BUILD_ROOT%{_datadir}/compupic
41 perl -pi -e 's/libn/FOOB/g' compupic
42 perl -pi -e 's/nss/FOO/g' compupic
43 ln compupic ../../bin/compupic
44 cd -
45
46 cat > $RPM_BUILD_ROOT%{_desktopdir}/compupic.desktop <<_EOF_
47 [Desktop Entry]
48 Encoding=UTF-8
49 Name=Compupic
50 Name[pl]=Compupic
51 Type=Application
52 Exec=compupic
53 GenericName=Picture browser
54 GenericName[pl]=Przegl±darka obrazów
55 _EOF_
56
57 iconv -f iso8859-2 -t utf8 $RPM_BUILD_ROOT%{_desktopdir}/compupic.desktop >> $RPM_BUILD_ROOT%{_desktopdir}/compupic.desktop.1
58 mv $RPM_BUILD_ROOT%{_desktopdir}/compupic.desktop{.1,}
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc README LICENSE
66 %attr(755,root,root) %{_bindir}/compupic
67 %doc %{_datadir}/compupic/english
68 %doc %{_datadir}/compupic/web
69 %{_mandir}/man1/compupic*
70 %attr(755,root,root) %{_datadir}/compupic/compupic
71 %{_datadir}/compupic/cpicoeme.bmp
72 %{_datadir}/compupic/defscr
73 %{_datadir}/compupic/docscr
74 %{_datadir}/compupic/order.txt
75 %{_pixmapsdir}/cpicicon-*.xpm
76 %{_desktopdir}/compupic.desktop
This page took 0.052689 seconds and 3 git commands to generate.