8a3e06ba3f7a873d666b5a315bf50b03b5e04c05
[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.UTF-8):   Port programu winpopup pod Linuksa
6 Name:           LinPopUp
7 Version:        1.2.0
8 Release:        7
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 URL:            http://www.littleigloo.org/software_002.php3
17 BuildRequires:  gtk+-devel
18 Requires:       samba
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 LinPopUp is a Xwindow graphical port of Winpopup, running over Samba.
23 It permits to communicate with a Windows computer that runs Winpopup,
24 sending or receiving message. (It also provides an alternative way to
25 communicate between Linux computers that run Samba). Please note that
26 LinPopUp is not only a port, as it includes several enhanced features.
27 Also note that it requires to have Samba installed to be fully
28 functional.
29
30 %description -l pl.UTF-8
31 LinPopUp umożliwia wysyłanie krótkich komunikatów tekstowych przy
32 wykorzystaniu Samby spod X Window. Pozwala na komunikację z osobami
33 posługującymi się Winpopupem pod Windows. (Jest także alternatywnym
34 sposobem na komunikację między użytkownikami Linuksa z Sambą.)
35 LinPopUp nie jest tylko portem - zawiera też parę rozszerzeń.
36
37 %prep
38 %setup -q
39 %patch0 -p1
40
41 %build
42 cd src
43 %{__make} \
44         DESTDIR="" \
45         PREFIX="%{_prefix}" \
46         DOC_DIR="%{_docdir}/%{name}-%{version}" \
47         INSTALL_MANPATH='$(DESTDIR)%{_mandir}' \
48         DATA_DIR='$(DESTDIR)/var/lib/linpopup' \
49         CFLAGS="%{rpmcflags} " \
50         LDFLAGS="%{rpmldflags}"
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/linpopup} \
55         $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
56
57 %{__make} install -C src \
58         DESTDIR=$RPM_BUILD_ROOT \
59         PREFIX="%{_prefix}" \
60         INSTALL_MANPATH='$(DESTDIR)%{_mandir}' \
61         DATA_DIR='$(DESTDIR)/var/lib/linpopup' \
62         DOC_DIR="$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}"
63
64 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
65 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
66
67 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/linpopup.1
68 echo ".so LinPopUp.1" >$RPM_BUILD_ROOT%{_mandir}/man1/linpopup.1
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc AUTHORS BUGS ChangeLog INSTALL NEWS README THANKS TODO
76 %attr(755,root,root) %{_bindir}/*
77 %attr(666,nobody,nobody) /var/lib/linpopup/messages.dat # FIXME nobody user/group can't own files! -adapter.awk
78 %{_desktopdir}/*.desktop
79 %{_pixmapsdir}/*
80 %{_mandir}/man1/*
81 %{_datadir}/LinPopUp
82 %dir /var/lib/linpopup
This page took 0.040427 seconds and 2 git commands to generate.