]> git.pld-linux.org Git - packages/compupic.git/blob - compupic.spec
- added %post - make symlink to binary placed in %{_datadir}/compupic
[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 Group:          X11/Applications/Multimedia
8 Source0:        http://www.photodex.com/files.system/linux/%{name}-%{version}-i386-Linux.tar.gz
9 # Source0-md5:  7c4c1f042cfef63055de960933d7a19c
10 Source1:        %{name}.desktop
11 URL:            http://www.photodex.com/products/compupic/index.html
12 BuildRequires:  perl-base
13 ExclusiveArch:  %{ix86}
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 The fastest, easiest to use software for browsing and viewing
18 pictures. CompuPic gives you unmatched performance paired with a full
19 set of features for editing, sharing, and using your digital content.
20
21 %description -l pl
22 Najszybsze i naj³atwiejsze w u¿yciu narzêdzie do przegl±dania i
23 podgl±du obrazków. CompuPic daje nieporównywaln± wydajno¶æ po³±czon± z
24 pe³n± gam± mo¿liwo¶ci edycji, udostêpniania oraz u¿ywania cyfrowych
25 zasobów.
26
27 %prep
28 %setup -q -n %{name}-%{version}-i386-Linux
29 > install.sh
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
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 cd -
44
45 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 ln -s %{_datadir}/compupic/compupic /usr/bin/compupic
52
53 %files
54 %defattr(644,root,root,755)
55 %doc README LICENSE
56 %dir %{_datadir}/compupic
57 # XXX: it can't be in %{_datadir}
58 %attr(755,root,root) %{_datadir}/compupic/compupic
59 %doc %{_datadir}/compupic/english
60 %doc %{_datadir}/compupic/web
61 %{_datadir}/compupic/cpicoeme.bmp
62 %{_datadir}/compupic/defscr
63 %{_datadir}/compupic/docscr
64 %{_datadir}/compupic/order.txt
65 %{_pixmapsdir}/cpicicon-*.xpm
66 %{_desktopdir}/compupic.desktop
67 %{_mandir}/man1/compupic.1*
This page took 0.107452 seconds and 3 git commands to generate.