forked from amagnasco/xwpe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxwpe.spec
78 lines (65 loc) · 1.99 KB
/
xwpe.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Summary: X Windows Programming Environment
Name: xwpe
%define version 1.5.30a
Version: %{version}
Release: 1
License: GPL
Url: http://www.identicalsoftware.com/xwpe
Group: Development/Tools
#Source: ftp://ftp.rrzn.uni-hannover.de/pub/systems/unix/xwpe/xwpe-1.4.2.tar.Z
Source: http://www.identicalsoftware.com/xwpe/xwpe-%{version}.tar.gz
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-root
%description
XWPE is actually a package of four programs: we, wpe, xwe, and xwpe.
They are different versions of the same basic programmers editor and
development environment. If you have used some of the Microsoft
Windows programming IDE's and longed for an X Windows equivalent, this
is what you have been looking for! Also included are the text-mode
equivalents of the X programs, enabling you to use xwpe no matter what
your development environment may be.
This package includes the basic xwpe libraries and the text-mode programs;
the X Windows programs are contained in the 'xwpe-X11' package.
%package X11
Summary: X Windows Programming Environment - X11 programs
Group: X11/Applications/Development
Requires: xwpe
%description X11
Includes the 'xwpe' and 'xwe' programs from the xwpe package that are
specific to X Windows.
%prep
%setup -q
%build
patch -p1 <xwpe-conf.patch
autoconf
./configure --prefix=%{prefix} --mandir=%{_mandir}
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr
make prefix=$RPM_BUILD_ROOT/usr MANDIR=$RPM_BUILD_ROOT%{_mandir} install
desktop-file-install --vendor=identical --dir=%{buildroot}%{_datadir}/applications *.desktop
( cd $RPM_BUILD_ROOT/usr/bin
strip we
)
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README CHANGELOG
/usr/bin/we
/usr/bin/wpe
/usr/lib/xwpe/help.key
/usr/lib/xwpe/help.xwpe
/usr/lib/xwpe/syntax_def
/usr/lib/xwpe/libxwpe-term.so
%{_mandir}/man1/wpe.1*
%{_mandir}/man1/we.1*
%{_mandir}/man1/xwpe.1*
%{_mandir}/man1/xwe.1*
%files X11
%defattr(-,root,root)
/usr/bin/xwe
/usr/bin/xwpe
/usr/lib/xwpe/libxwpe-x11.so
%{_datadir}/applications/*.desktop