4349ee3e6391977150cf3df6736c509c5a5ba6ad
[packages/LinPopUp.git] / LinPopUp.spec
1 # TODO:
2 # - evil permissions on /var/lib/linpopup/messages.dat
3 # - nobody user MUST NOT own anything
4 Summary:        Linux enhanced port of winpopup
5 Summary(pl):    Port programu winpopup pod Linuksa
6 Name:           LinPopUp
7 Version:        1.2.0
8 Release:        5
9 License:        GPL
10 Group:          X11/Applications/Networking
11 Source0:        http://www.chez.com/littleigloo/files/%{name}-%{version}.src.tar.gz
12 # Source0-md5:  26503ac44971e334cbbb0a79dd796d93
13 Source1:        %{name}.desktop
14 Source2:        %{name}.png
15 Patch0:         %{name}-prefix.patch
16 Icon:           LinPopUp.gif
17 URL:            http://www.littleigloo.org/software_002.php3
18 BuildRequires:  gtk+-devel
19 Requires:       samba
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 LinPopUp is a Xwindow graphical port of Winpopup, running over Samba.
24 It permits to communicate with a Windows computer that runs Winpopup,
25 sending or receiving message. (It also provides an alternative way to
26 communicate between Linux computers that run Samba). Please note that
27 LinPopUp is not only a port, as it includes several enhanced features.
28 Also note that it requires to have Samba installed to be fully
29 functional.
30
31 %description -l pl
32 LinPopUp umo¿liwia wysy³anie krótkich komunikatów tekstowych przy
33 wykorzystaniu Samby spod X Window. Pozwala na komunikacjê z osobami
34 pos³uguj±cymi siê Winpopupem pod Windows. (Jest tak¿e alternatywnym
35 sposobem na komunikacjê miêdzy u¿ytkownikami Linuksa z Samb±.)
36 LinPopUp nie jest tylko portem - zawiera te¿ parê rozszerzeñ.
37
38 %prep
39 %setup -q
40 %patch -p1
41
42 %build
43 cd src
44 %{__make} \
45         DESTDIR="" \
46         PREFIX="%{_prefix}" \
47         DOC_DIR="%{_defaultdocdir}/%{name}-%{version}" \
48         INSTALL_MANPATH='$(DESTDIR)%{_mandir}' \
49         DATA_DIR='$(DESTDIR)/var/lib/linpopup' \
50         CFLAGS="%{rpmcflags} " \
51         LDFLAGS="%{rpmldflags}"
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/linpopup} \
56         $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Network/Communications}
57
58 %{__make} install -C src \
59         DESTDIR=$RPM_BUILD_ROOT \
60         PREFIX="%{_prefix}" \
61         INSTALL_MANPATH='$(DESTDIR)%{_mandir}' \
62         DATA_DIR='$(DESTDIR)/var/lib/linpopup' \
63         DOC_DIR="$RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}"
64
65 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications
66 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
67
68 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/linpopup.1
69 echo ".so LinPopUp.1" >$RPM_BUILD_ROOT%{_mandir}/man1/linpopup.1
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc AUTHORS BUGS ChangeLog INSTALL NEWS README THANKS TODO
77 %attr(755,root,root) %{_bindir}/*
78 %attr(666,nobody,nobody) /var/lib/linpopup/messages.dat
79 %{_applnkdir}/Network/Communications/*
80 %{_pixmapsdir}/*
81 %{_mandir}/man1/*
82 %{_datadir}/LinPopUp
83 %dir /var/lib/linpopup
This page took 0.028575 seconds and 2 git commands to generate.