summaryrefslogtreecommitdiff
path: root/v.spec
blob: 6c44a7fcc1b66503071e6d1f11c11119bf384757 (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# TODO:
# - fix build with current gcc
# - opt patch (RPM_OPT_FLAGS is not used)
# - review %files (*.so*)
Summary:	V C++ GUI Framework
Summary(pl.UTF-8):	V - biblioteka do tworzenia GUI dla C++
Name:		v
Version:	1.24a
Release:	2
License:	GPL
Group:		Libraries
Source0:	ftp://ftp.objectcentral.com/%{name}-%{version}.tar.gz
# Source0-md5:	6336c1e2e9f7fa734cb021fffbfa0a95
Source1:	ftp://ftp.objectcentral.com/%{name}ref.pdf
# Source1-md5:	0ed281664d7cb0dedaf054aa890b6189
Patch0:		%{name}-config.fix
BuildRequires:	XFree86-devel >= 3.3.5
BuildRequires:	motif-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
V is a free, multiple platform C++ graphical user interface framework
designed to make it the easiest way to write C++ GUI applications
available -- commercial, shareware, or freeware. V is available for X
Athena, X Motif/Lesstif, all Windows platforms, and now including
OS/2.

%description -l pl.UTF-8
V jest wieloplatformową biblioteką dla C++ do tworzenia GUI. Jest
dostępna dla środowiska X-Window wraz z Ahtena Widgets,
Motifem/Lesstifem, wszystkich platform Windowsowych, a teraz także dla
OS/2.

%package devel
Summary:	V Development
Summary(pl.UTF-8):	Dla programistów V
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description devel
Development for V library.

%description devel -l pl.UTF-8
Pliki nagłówkowe dla biblioteki V.

%package static
Summary:	V static library
Summary(pl.UTF-8):	Biblioteka statyczna V
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
V static library.

%description static -l pl.UTF-8
Biblioteka statyczna V.

%package utils
Summary:	V library utilities
Summary(pl.UTF-8):	Narzędzia dla biblioteki V
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description utils
V library utilities.

%description utils -l pl.UTF-8
Narzędzia dla biblioteki V.

%prep
%setup -q -n %{name}
%patch0 -p0

%build
# Make with Motif/Lesstif
cp -f Configs/ConfigM.mk Config.mk

# set HOMEV to %{_prefix}
# and ARCH to %{_ARCH} ?????
%{__make} all \
	HOMEV=`pwd` \
	Arch=linuxelf \
	RPM_OPT_FLAGS="%{rpmcflags}"

# run make again to create static libraries
%{__make} \
	RPM_OPT_FLAGS="%{rpmcflags}"

install %{SOURCE1} .

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir}/v}

install lib/libV.so.* $RPM_BUILD_ROOT%{_libdir}
install lib/libVgl.so.* $RPM_BUILD_ROOT%{_libdir}

install lib/*.a $RPM_BUILD_ROOT%{_libdir}

install includex/v/*  $RPM_BUILD_ROOT%{_includedir}/v

rm -f bin/ThisIs
install bin/* $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/proto
%attr(755,root,root) %{_bindir}/tutapp
%attr(755,root,root) %{_bindir}/icondemo
%attr(755,root,root) %{_bindir}/vdrawex
%attr(755,root,root) %{_bindir}/vtestlib
%attr(755,root,root) %{_libdir}/libV*.so*

%files devel
%defattr(644,root,root,755)
%doc vref.pdf
%{_includedir}/v

%files static
%defattr(644,root,root,755)
%{_libdir}/libV*.a

%files utils
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/vgen
%attr(755,root,root) %{_bindir}/viconed
%attr(755,root,root) %{_bindir}/vdraw
%attr(755,root,root) %{_bindir}/b2v
%attr(755,root,root) %{_bindir}/vide