- cleanups; TODO: x86 binary cannot be installed in _datadir!
[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 Vendor:         Photodex Corporation
8 Group:          X11/Applications/Multimedia
9 Source0:        http://www.photodex.com/files.system/linux/%{name}-%{version}-i386-Linux.tar.gz 
10 # Source0-md5:  7c4c1f042cfef63055de960933d7a19c
11 Source1:        %{name}.desktop
12 URL:            http://www.photodex.com/products/compupic/index.html
13 BuildRequires:  perl-base
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
19 pictures. CompuPic gives you unmatched performance paired with a full
20 set of 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
24 podgl±du obrazków. CompuPic daje nieporównywaln± wydajno¶æ po³±czon± z
25 pe³n± gam± mo¿liwo¶ci edycji, udostêpniania oraz u¿ywania cyfrowych
26 zasobów.
27
28 %prep
29 %setup -q -n compupic-5.1.1063-i386-Linux
30 > install.sh
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/compupic,%{_pixmapsdir},%{_desktopdir}}
35
36 tar xf compupic.tar -C $RPM_BUILD_ROOT%{_datadir}/compupic
37 mv -f $RPM_BUILD_ROOT%{_datadir}/compupic/compupic.1 $RPM_BUILD_ROOT%{_mandir}/man1
38 mv $RPM_BUILD_ROOT%{_datadir}/compupic/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
39 mv $RPM_BUILD_ROOT%{_datadir}/compupic/LICENSE .
40 mv $RPM_BUILD_ROOT%{_datadir}/compupic/README .
41 cd $RPM_BUILD_ROOT%{_datadir}/compupic
42 %{__perl} -pi -e 's/libn/FOOB/g' compupic
43 %{__perl} -pi -e 's/nss/FOO/g' compupic
44 ln compupic ../../bin/compupic
45 cd -
46
47 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc README LICENSE
55 %attr(755,root,root) %{_bindir}/compupic
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.066075 seconds and 3 git commands to generate.